1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-22 16:06:04 -05:00
linux/drivers/block/zram
Kairui Song 212fe1c0df zram: fix potential UAF of zram table
If zram_meta_alloc failed early, it frees allocated zram->table without
setting it NULL.  Which will potentially cause zram_meta_free to access
the table if user reset an failed and uninitialized device.

Link: https://lkml.kernel.org/r/20250107065446.86928-1-ryncsn@gmail.com
Fixes: 74363ec674 ("zram: fix uninitialized ZRAM not releasing backing device")
Signed-off-by: Kairui Song <kasong@tencent.com>
Reviewed-by:  Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-01-12 19:03:37 -08:00
..
backend_842.c
backend_842.h
backend_deflate.c
backend_deflate.h
backend_lz4.c
backend_lz4.h
backend_lz4hc.c
backend_lz4hc.h
backend_lzo.c
backend_lzo.h
backend_lzorle.c
backend_lzorle.h
backend_zstd.c
backend_zstd.h
Kconfig zram: ZRAM_DEF_COMP should depend on ZRAM 2024-11-11 17:22:27 -08:00
Makefile
zcomp.c
zcomp.h
zram_drv.c zram: fix potential UAF of zram table 2025-01-12 19:03:37 -08:00
zram_drv.h zram: remove UNDER_WB and simplify writeback 2024-11-05 16:56:23 -08:00