CVE-2024-25580: Buffer Overflow

Published Feb 15, 2024
·
Updated

An issue was discovered in gui/util/qktxhandler.cpp in Qt before 5.15.17 6.x before 6.2.12 6.3.x through 6.5.x before 6.5.5 and 6.6.x before 6.6.2. A buffer overflow and application crash can occur via a crafted KTX image file.

Other sources

An issue was discovered in gui/util/qktxhandler.cpp in Qt before 5.15.17, 6.x before 6.2.12, 6.3.x through 6.5.x before 6.5.5, and 6.6.x before 6.6.2. A buffer overflow and application crash can occur via a crafted KTX image file.

— MITRE

CVE-2024-25580: A recently reported potential buffer overflow issue in Qt’s KTX’s image handling has been assigned the CVE id CVE-2024-25580. An issue was discovered in Qt from 5.12.0 through 5.15.17, 6.x before 6.2.12, 6.3.x through 6.5.x before 6.5.5, and 6.6.x before 6.6.2. With a specifically crafted KTX image file it is possible that the application reading it could cause an overflow and subsequently a crash.

Fixed qtbase-6.6.2 is already in-tree (pending stable), qtgui will need: https://download.qt.io/officialreleases/qt/5.15/CVE-2024-25580-qtbase-5.15.diff

— Red Hat

Affected Software

35 affected componentsFixes available
redhat/qtbase<6.6.2
6.6.2
Qt QT>=5.12.0<5.15.17
Qt QT>=6.0.0<6.2.12
Qt QT>=6.3.0<6.5.5
Qt QT>=6.6.0<6.6.2
Microsoft cbl2 qt5-qtbase 5.12.11-15
Microsoft cbl2 qt5-qtbase 5.12.11-15
Microsoft azl3 qtbase 6.6.1-1
Microsoft azl3 qtbase 6.6.2-1
debian/qt6-base*
debian/qt6-base<6.6.2+dfsg-8
6.6.2+dfsg-8
debian/qt6-base<6.6.2+dfsg-8
6.6.2+dfsg-8
debian/qtbase-opensource-src<5.15.8+dfsg-11+deb12u2
5.15.8+dfsg-11+deb12u2
debian/qtbase-opensource-src<5.15.10+dfsg-7
5.15.10+dfsg-7
debian/qtbase-opensource-src<5.15.10+dfsg-7
5.15.10+dfsg-7
debian/qtbase-opensource-src-gles*
debian/qtbase-opensource-src-gles<5.15.10+dfsg-5
5.15.10+dfsg-5
debian/qtbase-opensource-src-gles<5.15.10+dfsg-5
5.15.10+dfsg-5
debian/qt6-base<=6.4.2+dfsg-10
6.8.2+dfsg-9+deb13u26.11.2+dfsg-7
debian/qtbase-opensource-src
5.15.8+dfsg-11+deb12u35.15.15+dfsg-6+deb13u15.15.19+dfsg-6
debian/qtbase-opensource-src-gles<=5.15.8+dfsg-3
5.15.15+dfsg-25.15.19+dfsg-2
ubuntu/qtbase-opensource-src-gles*
ubuntu/qtbase-opensource-src<5.12.8+dfsg-0ubuntu2.1+esm2
5.12.8+dfsg-0ubuntu2.1+esm2
ubuntu/qtbase-opensource-src-gles*
ubuntu/qtbase-opensource-src-gles*
ubuntu/qt6-base*
ubuntu/qtbase-opensource-src<5.15.3+dfsg-2ubuntu0.2+esm2
5.15.3+dfsg-2ubuntu0.2+esm2
ubuntu/qtbase-opensource-src-gles*
ubuntu/qt6-base*
ubuntu/qt6-base*
ubuntu/qtbase-opensource-src-gles*
ubuntu/qt6-base*
ubuntu/qtbase-opensource-src-gles*
ubuntu/qtbase-opensource-src-gles*
ubuntu/qt6-base*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/qtbase to a version that resolves this vulnerability.

    Fixed in 6.6.2
  2. Upgrade

    Upgrade debian/qt6-base to a version that resolves this vulnerability.

    Fixed in 6.6.2+dfsg-8
  3. Upgrade

    Upgrade debian/qtbase-opensource-src to a version that resolves this vulnerability.

    Fixed in 5.15.8+dfsg-11+deb12u2
  4. Upgrade

    Upgrade debian/qtbase-opensource-src to a version that resolves this vulnerability.

    Fixed in 5.15.10+dfsg-7
  5. Upgrade

    Upgrade debian/qtbase-opensource-src-gles to a version that resolves this vulnerability.

    Fixed in 5.15.10+dfsg-5
  6. Upgrade

    Upgrade debian/qt6-base to a version that resolves this vulnerability.

    Fixed in 6.8.2+dfsg-9+deb13u2Fixed in 6.11.2+dfsg-7
  7. Upgrade

    Upgrade debian/qtbase-opensource-src to a version that resolves this vulnerability.

    Fixed in 5.15.8+dfsg-11+deb12u3Fixed in 5.15.15+dfsg-6+deb13u1Fixed in 5.15.19+dfsg-6
  8. Upgrade

    Upgrade debian/qtbase-opensource-src-gles to a version that resolves this vulnerability.

    Fixed in 5.15.15+dfsg-2Fixed in 5.15.19+dfsg-2
  9. Upgrade

    Upgrade ubuntu/qtbase-opensource-src to a version that resolves this vulnerability.

    Fixed in 5.12.8+dfsg-0ubuntu2.1+esm2
  10. Upgrade

    Upgrade ubuntu/qtbase-opensource-src to a version that resolves this vulnerability.

    Fixed in 5.15.3+dfsg-2ubuntu0.2+esm2
  11. Upgrade

    Upgrade Qt to a version that resolves this vulnerability.

    Fixed in 5.15.17
  12. Upgrade

    Upgrade Qt to a version that resolves this vulnerability.

    Fixed in 6.2.12
  13. Upgrade

    Upgrade Qt to a version that resolves this vulnerability.

    Fixed in 6.5.5
  14. Upgrade

    Upgrade Qt to a version that resolves this vulnerability.

    Fixed in 6.6.2

Event History

Feb 15, 2024
Data Sourced
via Red Hat·02:40 PM
DescriptionSeverityAffected Software
Mar 27, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·03:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:15 AM
Description
Jun 30, 2024
Data Sourced
via Microsoft·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·02:00 PM
Affected Software
Oct 29, 2024
Data Sourced
via NVD·08:35 PM
SeverityWeakness
Event
via NVD·08:35 PM
Jun 30, 2025
Data Sourced
via NVD·12:17 PM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-25580?

CVE-2024-25580 has a high severity rating due to the potential for a buffer overflow leading to application crashes.

2

How do I fix CVE-2024-25580?

To fix CVE-2024-25580, upgrade to the latest version of Qt, specifically version 6.6.2 or higher.

3

What are the impacted versions for CVE-2024-25580?

The impacted versions for CVE-2024-25580 include Qt versions before 5.15.17, 6.x before 6.2.12, 6.3.x through 6.5.x before 6.5.5, and 6.6.x before 6.6.2.

4

Can CVE-2024-25580 be exploited remotely?

Yes, CVE-2024-25580 can be exploited through a crafted KTX image file which may allow attackers to execute a buffer overflow.

5

What types of applications are affected by CVE-2024-25580?

Applications using vulnerable versions of the Qt framework for processing KTX image files are affected by CVE-2024-25580.

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