CVE-2022-49925: RDMA/core: Fix null-ptr-deref in ib_core_cleanup()
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Fix null-ptr-deref in ib_core_cleanup()
KASAN reported a null-ptr-deref error:
KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f]
CPU: 1 PID: 379
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996)
RIP: 0010:destroy_workqueue+0x2f/0x740
RSP: 0018:ffff888016137df8 EFLAGS: 00000202
...
Call Trace:
ib_core_cleanup+0xa/0xa1 [ib_core]
__do_sys_delete_module.constprop.0+0x34f/0x5b0
do_syscall_64+0x3a/0x90
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa1a0d221b7
...
It is because the fail of roce_gid_mgmt_init() is ignored:
ib_core_init()
roce_gid_mgmt_init()
gid_cache_wq = alloc_ordered_workqueue # fail
...
ib_core_cleanup()
roce_gid_mgmt_cleanup()
destroy_workqueue(gid_cache_wq)
# destroy an unallocated wq
Fix this by catching the fail of roce_gid_mgmt_init() in ib_core_init().
Security readout for executives and security teams
Plain-English summary
CVE-2022-49925 is a Linux kernel RDMA core bug that can crash the kernel in a cleanup path after an initialization failure. The business impact is availability loss on affected Linux systems. The CVE is rated medium, requires local access, and is not listed as known exploited in CISA KEV.
Executive priority
Treat as routine-to-priority patching for Linux systems where availability matters, especially multi-user servers and RDMA-capable environments. It is not currently a KEV-listed emergency, but a local crash risk can still affect service reliability.
Technical view
The flaw is a NULL pointer dereference in ib_core_cleanup(). If roce_gid_mgmt_init() fails, gid_cache_wq may remain unallocated, but cleanup later calls destroy_workqueue() on it. The issue is classified as CWE-476 with CVSS 3.1 score 5.5: local, low complexity, low privileges, no user interaction, high availability impact.
Likely exposure
Exposure is limited to Linux systems running affected kernel versions with RDMA core functionality present. The source lists Linux kernel versions including 4.3 and fixes across stable branches. Distribution backports may change exposure, so asset owners should compare running kernels against vendor advisories and the referenced stable commits.
Exploitation context
The provided sources do not report active exploitation. The CVSS vector indicates exploitation requires local privileges and primarily affects availability. The documented trigger involves an RDMA core initialization failure followed by module cleanup, causing a kernel NULL pointer dereference.
Researcher notes
Evidence is limited to the CVE record and Linux stable commit references. The record describes the root cause and fix direction but does not provide distribution-specific package names, exploit reports, or operational mitigations beyond applying fixed kernels.
Mitigation direction
Apply Linux kernel updates that include the referenced stable fixes.
Check your Linux distribution’s advisory for backported fixes.
Prioritize systems where local users or workloads can access affected kernels.
Review whether RDMA-related kernel modules are present or used.
If no vendor package is available, follow vendor guidance before changing kernel modules.
Validation and detection
Inventory running Linux kernel versions across servers and appliances.
Map kernel builds to distribution security advisories and stable commits.
Confirm whether RDMA core modules are installed, loadable, or active.
Verify updated systems run a kernel containing the fix.
Monitor logs for kernel crashes involving ib_core_cleanup or destroy_workqueue.
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.