| عنوان | kyz libmspack commit 55d5019 (master, 2026-07-21) Out-of-bounds Read |
|---|
| الوصف | A vulnerability was found in libmspack commit 55d5019 and classified as high 7.1. Affected is the chminfo test tool component (test/chminfo.c). The manipulation of crafted CHM files 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 chminfo on the attacker-supplied file.
Technical Details
- Affected file/function: test/chminfo.c / main() line 226 (via load_sys_data() line 30) and print_dir() line 161
- Vulnerable parameter: declared length of the ::DataSpace/Storage/MSCompressed/ControlData internal entry; PMGI chunk num_entries/density fields driving the quickref walk
- Attack vector: Network
- Privileges required: None
- Trigger condition: run chminfo on a crafted CHM that declares a 16-byte ControlData entry (main() prints fixed-offset fields data[0..24] without checking the loaded length, reading 3 bytes past the buffer) or whose PMGI chunk keeps the unguarded quickref walk running until the unsigned index k underflows and the chunk[k] read hits an unmapped page (SEGV). Both issues are located in the test tool itself; the library parser did not crash on these inputs in this path. They are independent of the 2018 library-side CVE-2018-14679/80/81/82; no incomplete-fix relationship is claimed.
Impact
- Confidentiality: Low (adjacent heap bytes are parsed and printed as ControlData/ResetTable fields)
- Integrity: None (both 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
Check the length returned by load_sys_data() before every fixed-offset print block in main() (len >= 28 for the ControlData prints at lines 222-228, len >= 36 for the ResetTable prints at lines 237-243, and bound the case-4/case-8 table walks so pos + 4 / pos + 8 stay below len), and add the PMGL-branch lower-bound guard (if (k < (chm->chunk_size - quickref_size)) break;) to the PMGI quickref walk in print_dir(). |
|---|
| المصدر | ⚠️ https://github.com/kyz/libmspack/issues/61 |
|---|
| المستخدم | muteki (UID 102683) |
|---|
| ارسال | 03/11/2026 02:20 AM (25 أيام منذ) |
|---|
| الاعتدال | 28/11/2026 08:28 AM (25 days later) |
|---|
| الحالة | تمت الموافقة |
|---|
| إدخال VulDB | 445085 [kyz libmspack حتى 1.11 CHM File test/chminfo.c print_dir الكشف عن المعلومات] |
|---|
| النقاط | 20 |
|---|