CVE-2026-9499: Out-of-bounds read in QTextCodec::codecForName() in Qt

Published Jul 21, 2026
·
Updated

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.

Affected Software

12 affected componentsFixes available
Qt Qt5Compat>=6.0.0
Qt Qt Core>=4.x<6.0.0
ubuntu/qtbase-opensource-src*
ubuntu/qtbase-opensource-src*
ubuntu/qtbase-opensource-src*
ubuntu/qt6-5compat<6.2.4-1ubuntu0.22.04.1~esm1
6.2.4-1ubuntu0.22.04.1~esm1
ubuntu/qtbase-opensource-src*
ubuntu/qt6-5compat<6.4.2-4ubuntu0.24.04.1~esm1
6.4.2-4ubuntu0.24.04.1~esm1
ubuntu/qtbase-opensource-src*
ubuntu/qtbase-opensource-src*
ubuntu/qtbase-opensource-src*
ubuntu/qt6-5compat<6.10.2-1ubuntu0.26.04.1~esm1
6.10.2-1ubuntu0.26.04.1~esm1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/qt6-5compat to a version that resolves this vulnerability.

    Fixed in 6.2.4-1ubuntu0.22.04.1~esm1
  2. Upgrade

    Upgrade ubuntu/qt6-5compat to a version that resolves this vulnerability.

    Fixed in 6.4.2-4ubuntu0.24.04.1~esm1
  3. Upgrade

    Upgrade ubuntu/qt6-5compat to a version that resolves this vulnerability.

    Fixed in 6.10.2-1ubuntu0.26.04.1~esm1
  4. Upgrade

    Upgrade Qt (QTextCodec::codecForName) to a version that resolves this vulnerability.

    Fixed in 6.8.8
  5. Upgrade

    Upgrade Qt (QTextCodec::codecForName) to a version that resolves this vulnerability.

    Fixed in 6.11.1
  6. Upgrade

    Upgrade Qt (QTextCodec::codecForName) to a version that resolves this vulnerability.

    Fixed in 6.12.0
  7. Compensating control

    Ensure applications do not call QTextCodec::codecForName() with QByteArrays that are not NUL-terminated (e.g., avoid QByteArray::fromRawData() inputs), since this triggers the bounded out-of-bounds read and can cause a crash (DoS).

Event History

Jul 21, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
RemedyDescriptionWeakness
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·02:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeakness
Sep 10, 2026
Event
via FIRST·12:00 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-9499?

The severity of CVE-2026-9499 is classified as medium with a CVSS score of 6.3.

2

What is the nature of the vulnerability in CVE-2026-9499?

CVE-2026-9499 describes an out-of-bounds read vulnerability in QTextCodec::codecForName() in Qt.

3

How does CVE-2026-9499 affect applications using Qt?

Applications using Qt and calling QTextCodec::codecForName() with a non-NUL-terminated QByteArray may experience buffer over-reads.

4

Is there a workaround for CVE-2026-9499?

To mitigate CVE-2026-9499, ensure that any QByteArray passed to QTextCodec::codecForName() is properly NUL-terminated.

5

What versions of Qt are impacted by CVE-2026-9499?

CVE-2026-9499 affects Qt 6 and the Qt5Compat module.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203