Kairui Song 045191a877 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: 74363ec674cb ("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-11 23:17:29 -08:00
..
2024-12-26 10:43:25 -08:00
2024-11-25 17:12:54 -08:00
2024-12-21 15:45:06 -08:00
2024-12-05 10:06:47 -08:00
2024-11-25 10:31:39 -08:00
2024-11-09 09:14:12 -08:00
2024-12-21 10:56:34 -08:00
2024-12-31 10:41:58 -07:00
2024-12-22 08:40:23 -08:00
2024-12-30 11:20:42 -08:00
2024-11-15 00:32:29 +11:00
2024-11-29 11:43:29 -08:00
2024-11-30 14:45:29 -08:00
2024-11-21 08:28:08 -08:00
2024-11-12 15:48:08 +01:00
2024-12-14 09:31:19 -08:00
2024-12-11 13:48:25 -08:00