CVE-2026-9499

NameCVE-2026-9499
DescriptionAn out-of-bounds read (buffer over-read) vulnerability exists in QTextCodec::codecForName() in Qt. When the function is called with a QByteArray that is not NUL-terminated (for example, one created with QByteArray::fromRawData()), the codec-name matching routine reads past the end of the supplied buffer. In most cases this results in an incorrect text codec being selected; in the worst case, if the over-read reaches unmapped memory, the process crashes (denial of service). The over-read is bounded by the length of the longest codec-name candidate, and the out-of-bounds bytes are only compared internally against Qt's fixed list of codec names, so no data is disclosed to an attacker. Applications that do not pass non-NUL-terminated QByteArrays to QTextCodec::codecForName() are not exposed. The affected code resides in the Qt5Compat module from Qt 6.0.0 onward, and in Qt Core (qtbase) in Qt 4.x and Qt 5.x.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1142690, 1142691

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
qt6-5compat (PTS)bookworm6.4.2-1vulnerable
trixie6.8.2-3vulnerable
forky, sid6.10.2-4fixed
qtbase-opensource-src (PTS)bullseye5.15.2+dfsg-9+deb11u1vulnerable
bullseye (security)5.15.2+dfsg-9+deb11u2vulnerable
bookworm5.15.8+dfsg-11+deb12u3vulnerable
trixie5.15.15+dfsg-6+deb13u1vulnerable
forky, sid5.15.19+dfsg-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
qt6-5compatsource(unstable)6.10.2-41142690
qtbase-opensource-srcsource(unstable)5.15.19+dfsg-41142691

Notes

[trixie] - qt6-5compat <no-dsa> (Minor issue)
[bookworm] - qt6-5compat <postponed> (Minor issue)
[trixie] - qtbase-opensource-src <no-dsa> (Minor issue)
[bookworm] - qtbase-opensource-src <postponed> (Minor issue)
[bullseye] - qtbase-opensource-src <postponed> (Minor issue)
https://codereview.qt-project.org/c/qt/qt5compat/+/723911
https://codereview.qt-project.org/c/qt/qt5compat/+/724348 (6.11 branch)
https://codereview.qt-project.org/c/qt/qt5compat/+/724995 (6.10 branch)

Search for package or bug name: Reporting problems