public inbox for linux-erofs@ozlabs.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] erofs-utils: lib: fix ZSTD decompression safety issues
@ 2026-03-17  4:55 Utkal Singh
  2026-03-17  4:55 ` [PATCH v2 1/2] erofs-utils: lib: validate ZSTD frame content size in decompression Utkal Singh
  2026-03-17  4:55 ` [PATCH v2 2/2] erofs-utils: lib: return error on ZSTD decompression length mismatch Utkal Singh
  0 siblings, 2 replies; 5+ messages in thread
From: Utkal Singh @ 2026-03-17  4:55 UTC (permalink / raw)
  To: linux-erofs; +Cc: hsiangkao, yifan.yfzhao, singhutkal015

Changes since v1:
- Added reproducer per maintainer request

This series fixes two issues in z_erofs_decompress_zstd() that can
be triggered by crafted EROFS filesystem images.

Patch 1/2 validates ZSTD frame content size against decodedlength.
Patch 2/2 fixes a missing error return on decompression length mismatch.

Utkal Singh (2):
  erofs-utils: lib: validate ZSTD frame content size in decompression
  erofs-utils: lib: return error on ZSTD decompression length mismatch

 lib/decompress.c | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
2.43.0



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

end of thread, other threads:[~2026-03-17 10:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17  4:55 [PATCH v2 0/2] erofs-utils: lib: fix ZSTD decompression safety issues Utkal Singh
2026-03-17  4:55 ` [PATCH v2 1/2] erofs-utils: lib: validate ZSTD frame content size in decompression Utkal Singh
2026-03-17  9:53   ` Gao Xiang
2026-03-17 10:00     ` Utkal Singh
2026-03-17  4:55 ` [PATCH v2 2/2] erofs-utils: lib: return error on ZSTD decompression length mismatch Utkal Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox