diff options
author | Kairui Song <kasong@tencent.com> | 2025-01-07 14:54:46 +0800 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-12 19:03:37 -0800 |
commit | 212fe1c0df4a150fb6298db2cfff267ceaba5402 (patch) | |
tree | ede7fb9e7142bab77a0481f45304244462af815e /scripts/lib/kdoc/kdoc_output.py | |
parent | a32bf5bb7933fde6f39747499f8ec232b5b5400f (diff) |
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions