aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorKairui Song <[email protected]>2025-01-07 06:54:46 +0000
committerAndrew Morton <[email protected]>2025-01-13 03:03:37 +0000
commit212fe1c0df4a150fb6298db2cfff267ceaba5402 (patch)
treeede7fb9e7142bab77a0481f45304244462af815e /net/unix/sysctl_net_unix.c
parentselftests/mm: set allocated memory to non-zero content in cow test (diff)
downloadkernel-212fe1c0df4a150fb6298db2cfff267ceaba5402.tar.gz
kernel-212fe1c0df4a150fb6298db2cfff267ceaba5402.zip
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/[email protected] Fixes: 74363ec674cb ("zram: fix uninitialized ZRAM not releasing backing device") Signed-off-by: Kairui Song <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions