CVE-2022-49928: SUNRPC: Fix null-ptr-deref when xps sysfs alloc failed
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.
Security readout for executives and security teams
Plain-English summary
CVE-2022-49928 is a Linux kernel SUNRPC flaw that can crash the kernel under a failed sysfs allocation path. The likely business impact is availability loss, not data theft. Exploitation requires local access with low privileges according to CVSS, so prioritize affected Linux servers where untrusted users or workloads can run code.
Executive priority
Treat as a moderate availability risk. Patch during normal kernel maintenance, faster for shared Linux infrastructure where local users or workloads are not fully trusted.
Technical view
The bug is a CWE-476 null pointer dereference in SUNRPC xprt_switch sysfs handling. If xps sysfs allocation fails, later link creation or teardown can dereference NULL and oops the kernel. The CVE record lists CVSS 5.5: AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Likely exposure
Linux systems running affected kernel versions in the CVE record, especially hosts using SUNRPC-related paths such as NFS or gssproxy. Exposure is local, not network-direct, based on the CVSS vector.
Exploitation context
No source provided indicates active exploitation, and KEV is false. The reported trigger involves a local write path through gssproxy/SUNRPC and a memory allocation failure condition, producing kernel oops or denial of service.
Researcher notes
The public description is kernel-resolution focused and does not provide a full affected-version range narrative. Avoid assuming remote exploitability. Validate through kernel source history, distribution backports, and presence of the SUNRPC fix commits.
Mitigation direction
Update to a vendor kernel containing the referenced stable Linux fixes.
Check Linux distribution advisories for backported fixes for CVE-2022-49928.
Prioritize multi-user systems and shared workload hosts before single-purpose appliances.
If patching is delayed, reduce local shell and workload access where practical.
Validation and detection
Inventory Linux kernel versions across servers and container hosts.
Compare installed kernels against vendor advisories for CVE-2022-49928.
Confirm whether the referenced stable commits are present or backported.
Review crash logs for SUNRPC, gssproxy, sysfs, or null pointer dereference oops messages.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.