All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] block/dmg-lzfse: fix short-decode heap disclosure and add regression test
@ 2026-11-12 15:33 Julio Faracco
  2026-11-12 15:33 ` [PATCH 1/2] block/dmg-lzfse: reject short LZFSE decodes Julio Faracco
  2026-11-12 15:33 ` [PATCH 2/2] tests/qemu-iotests: cover the dmg LZFSE short-decode fix Julio Faracco
  0 siblings, 2 replies; 6+ messages in thread
From: Julio Faracco @ 2026-11-12 15:33 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Hanna Reitz, Stefan Hajnoczi, qemu-block,
	Julio Faracco, oxsignal

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 <jcfaracco@gmail.com>
---
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 <jcfaracco@gmail.com>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-16 22:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-12 15:33 [PATCH 0/2] block/dmg-lzfse: fix short-decode heap disclosure and add regression test Julio Faracco
2026-11-12 15:33 ` [PATCH 1/2] block/dmg-lzfse: reject short LZFSE decodes Julio Faracco
2026-11-16 17:03   ` Kevin Wolf
2026-11-16 22:09   ` Stefan Hajnoczi
2026-11-12 15:33 ` [PATCH 2/2] tests/qemu-iotests: cover the dmg LZFSE short-decode fix Julio Faracco
2026-11-16 16:49   ` Kevin Wolf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.