CVE-2022-49928 Information
Description
In the Linux kernel the following vulnerability has been resolved:
SUNRPC: Fix null-ptr-deref when xps sysfs alloc failed
There is a null-ptr-deref when xps sysfs alloc failed: BUG: KASAN: null-ptr-deref in sysfs_do_create_link_sd+0x40/0xd0 Read of size 8 at addr 0000000000000030 by task gssproxy/457
CPU: 5 PID: 457 Comm: gssproxy Not tainted 6.0.0-09040-g02357b27ee03 9
Call Trace:
When the xprt_switch sysfs alloc failed should not add xprt and switch sysfs to it otherwise maybe null-ptr-deref; also initialize the ‘xps_sysfs’ to NULL to avoid oops when destroy it.
Reference
https://git.kernel.org/stable/c/7b189b0aa8dab14b49c31c65af8a982e96e25b62 https://git.kernel.org/stable/c/cbdeaee94a415800c65a8c3fa04d9664a8b8fb3a https://git.kernel.org/stable/c/d59722d088a9d86ce6d9d39979e5d1d669d249f7
Share on: