CVE-2026-9499

Publication date 21 July 2026

Last updated 24 November 2026


Ubuntu priority

Description

An 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.

Read the notes from the security team

Status

Package Ubuntu Release Status
qt6-5compat 26.10 stonking
Not affected
26.04 LTS resolute
Fixed in 6.10.2-1ubuntu0.26.04.1~esm1
24.04 LTS noble
Fixed in 6.4.2-4ubuntu0.24.04.1~esm1
22.04 LTS jammy
Fixed in 6.2.4-1ubuntu0.22.04.1~esm1
qtbase-opensource-src 26.10 stonking
Vulnerable
26.04 LTS resolute
Vulnerable
24.04 LTS noble
Vulnerable
22.04 LTS jammy
Vulnerable
20.04 LTS focal
Vulnerable
18.04 LTS bionic
Vulnerable
16.04 LTS xenial
Vulnerable

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Notes


john-breton

qtbase: no public QT 5 fix. Use the qt5compat fix 894079b on src/corelib/codecs/qtextcodec.cpp.

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
qt6-5compat
qtbase-opensource-src

Severity score breakdown

CVSS version: CVSS v4.0

Base score 6.3 · Medium

Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N


Access our resources on patching vulnerabilities