# CVE-2022-49928: SUNRPC: Fix null-ptr-deref when xps sysfs alloc failed

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2025-05-01T14:11:06.068Z
- Modified: 2026-08-05T08:56:43.886Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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:
   <TASK>
   dump_stack_lvl+0x34/0x44
   kasan_report+0xa3/0x120
   sysfs_do_create_link_sd+0x40/0xd0
   rpc_sysfs_client_setup+0x161/0x1b0
   rpc_new_client+0x3fc/0x6e0
   rpc_create_xprt+0x71/0x220
   rpc_create+0x1d4/0x350
   gssp_rpc_create+0xc3/0x160
   set_gssp_clnt+0xbc/0x140
   write_gssp+0x116/0x1a0
   proc_reg_write+0xd6/0x130
   vfs_write+0x177/0x690
   ksys_write+0xb9/0x150
   do_syscall_64+0x35/0x80
   entry_SYSCALL_64_after_hwframe+0x46/0xb0

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.

(As written by CVE List.)

## Affected

- Linux Linux: from baea99445dd4675a834e8a5987d2f368adb62e6c before d59722d088a9d86ce6d9d39979e5d1d669d249f7; from baea99445dd4675a834e8a5987d2f368adb62e6c before 7b189b0aa8dab14b49c31c65af8a982e96e25b62; from baea99445dd4675a834e8a5987d2f368adb62e6c before cbdeaee94a415800c65a8c3fa04d9664a8b8fb3a; 5.14 (not affected: before 5.14; from 5.15.78 up to 5.15.*; from 6.0.8 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.14 before 5.15.78; from 5.16 before 6.0.8; 6.1

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/d59722d088a9d86ce6d9d39979e5d1d669d249f7> (patch)
- <https://git.kernel.org/stable/c/7b189b0aa8dab14b49c31c65af8a982e96e25b62> (patch)
- <https://git.kernel.org/stable/c/cbdeaee94a415800c65a8c3fa04d9664a8b8fb3a> (patch)

## Sources

- CVE List: [CVE-2022-49928](https://www.cve.org/CVERecord?id=CVE-2022-49928), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49928](https://nvd.nist.gov/vuln/detail/CVE-2022-49928), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2022-49928 · Whole record: https://cve.day/CVE-2022-49928.json · Rebuilt by cve.day 2026-11-25T22:58:20.942Z
