CVE Vulnerabilities

CVE-2025-5991

Use After Free

Published: Jun 11, 2025 | Modified: Jun 12, 2025
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.6 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Ubuntu
MEDIUM

There is a Use After Free vulnerability in Qts QHttp2ProtocolHandler in the QtNetwork module. This only affects HTTP/2 handling, HTTP handling is not affected by this at all. This happens due to a race condition between how QHttp2Stream uploads the body of a POST request and the simultaneous handling of HTTP error responses.

This issue only affects Qt 6.9.0 and has been fixed for Qt 6.9.1.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

Name Vendor Start Version End Version
Qt6-base Ubuntu oracular *
Qtbase-opensource-src Ubuntu devel *
Qtbase-opensource-src Ubuntu esm-apps/focal *
Qtbase-opensource-src Ubuntu esm-apps/jammy *
Qtbase-opensource-src Ubuntu esm-apps/noble *
Qtbase-opensource-src Ubuntu esm-infra/bionic *
Qtbase-opensource-src Ubuntu esm-infra/xenial *
Qtbase-opensource-src Ubuntu jammy *
Qtbase-opensource-src Ubuntu noble *
Qtbase-opensource-src Ubuntu oracular *
Qtbase-opensource-src Ubuntu plucky *
Qtbase-opensource-src Ubuntu upstream *
Qtbase-opensource-src-gles Ubuntu oracular *

Potential Mitigations

References