This series fixes a heap disclosure vulnerability in the DMG block driver's LZFSE decompression path (CVE-2026-116483) and adds a regression test.
Specifically, this series (1) updates `dmg_uncompress_lzfse_do()` to decode with one extra byte of capacity (pre-allocated in `dmg_open()`) so that exact decodes can be reliably distinguished from short or oversized LZFSE streams, preventing unzeroed chunk tail leakage. It also (2) introduces a new qemu-iotest (`dmg-lzfse-short`) that constructs a crafted DMG with a short LZFSE stream and verifies that reading the chunk correctly fails with an I/O error. Signed-off-by: Julio Faracco <[email protected]> --- Julio Faracco (2): block/dmg-lzfse: reject short LZFSE decodes tests/qemu-iotests: cover the dmg LZFSE short-decode fix block/dmg-lzfse.c | 27 +++-- block/dmg.c | 8 +- tests/qemu-iotests/tests/dmg-lzfse-short | 142 +++++++++++++++++++++++++++ tests/qemu-iotests/tests/dmg-lzfse-short.out | 2 + 4 files changed, 170 insertions(+), 9 deletions(-) --- base-commit: 29760efaf96bbe5928f8111881eddbf5ac06439e change-id: 20261112-dmg-short-decode-69099ac44700 Best regards, -- Julio Faracco <[email protected]>
