| Titel | Khronos Group KTX-Software commit 6a719e8 (v5.0-6a719e8, master 2026-10-23) Out-of-bounds Read |
|---|
| Beschreibung | A vulnerability was found in KTX-Software commit 6a719e8 (v5.0-6a719e8) and classified as high 7.1. Affected is the ktx info command (lib/src/info.c printKTX2Info2/printLevelIndex and tools/ktx/validate.cpp ValidationContext::validateDFD). The manipulation of the header-declared dataFormatDescriptor.byteLength and levelCount fields in a crafted KTX2 file leads to a heap out-of-bounds read. It is possible to launch the attack remotely. User interaction is required because a victim must run ktx info (or a workflow using the same validation code) on the attacker-supplied file.
Technical Details
- Affected file/function: lib/src/info.c / printKTX2Info2() line 762 and printLevelIndex() line 640; tools/ktx/validate.cpp / ktx::ValidationContext::validateDFD() line 792
- Vulnerable parameter: dataFormatDescriptor.byteLength and levelCount fields of the KTX2 header
- Attack vector: Network
- Privileges required: None
- Trigger condition: run ktx info on a crafted KTX2 file that declares a 1-byte or 2-byte DFD block (the tool dereferences/copies 4 bytes without a minimum-size check) or levelCount 0xC0000000 (the 32-bit levelIndexSize computation sizeof(ktxLevelIndexEntry) * numLevels truncates to 0 and printLevelIndex iterates 64 entries over an empty allocation)
Impact
- Confidentiality: Low (adjacent heap words are parsed and partially printed as level-index / DFD fields)
- Integrity: None (all three crash signatures are read-only)
- Availability: High (the tool aborts deterministically on each crafted input)
CVSS v3.1
Score: 7.1 (High)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Timeline
- Discovered: 2026-11-01
- Vendor notified: [pending]
- Patch released: [pending]
- Public disclosure: [pending]
Countermeasure
Validate header-derived block sizes and counts before allocation or dereference: require dataFormatDescriptor.byteLength / dfdByteLength >= sizeof(uint32_t) before the 4-byte reads at info.c:762 and validate.cpp:792, and compute levelIndexSize in 64-bit while rejecting levelCount values whose sizeof(ktxLevelIndexEntry) * levelCount product overflows 32 bits or exceeds the remaining stream length.
|
|---|
| Quelle | ⚠️ https://github.com/KhronosGroup/KTX-Software/issues/1315 |
|---|
| Benutzer | muteki (UID 102683) |
|---|
| Einreichung | 03.11.2026 02:17 (vor 25 Tagen) |
|---|
| Moderieren | 28.11.2026 08:28 (25 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 445082 [KhronosGroup KTX-Software bis 5.0.0-rc2 lib/src/info.c validateDFD Information Disclosure] |
|---|
| Punkte | 20 |
|---|