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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-01T14:11:06.068Z
- **Modified:** 2026-08-05T08:56:43.886Z

## Who should check

- Anyone running Linux \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< d59722d088a9d86ce6d9d39979e5d1d669d249f7; \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< 7b189b0aa8dab14b49c31c65af8a982e96e25b62; \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< cbdeaee94a415800c65a8c3fa04d9664a8b8fb3a
- Anyone running Linux 5.14

## 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.

## Affected and fixed versions

- Linux: \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< d59722d088a9d86ce6d9d39979e5d1d669d249f7; \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< 7b189b0aa8dab14b49c31c65af8a982e96e25b62; \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< cbdeaee94a415800c65a8c3fa04d9664a8b8fb3a (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49928. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49928.md
Affected: Linux >= baea99445dd4675a834e8a5987d2f368adb62e6c, < d59722d088a9d86ce6d9d39979e5d1d669d249f7; >= baea99445dd4675a834e8a5987d2f368adb62e6c, < 7b189b0aa8dab14b49c31c65af8a982e96e25b62; >= baea99445dd4675a834e8a5987d2f368adb62e6c, < cbdeaee94a415800c65a8c3fa04d9664a8b8fb3a; Linux 5.14
Fixed in: Linux 7b189b0aa8dab14b49c31c65af8a982e96e25b62

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49928 being exploited?

There is no confirmed exploitation: CVE-2022-49928 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49928?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-49928?

Linux \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< d59722d088a9d86ce6d9d39979e5d1d669d249f7; \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< 7b189b0aa8dab14b49c31c65af8a982e96e25b62; \>= baea99445dd4675a834e8a5987d2f368adb62e6c, \< cbdeaee94a415800c65a8c3fa04d9664a8b8fb3a; Linux 5.14.

### Is there a fix for CVE-2022-49928?

Yes. Fixed in Linux 7b189b0aa8dab14b49c31c65af8a982e96e25b62. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-49928?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49928>

HTML: <https://flawdb.com/CVE-2022-49928> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49928>
