CVE-2025-21999: Use-after-free in Linux kernel proc_get_inode()
- Vendor
- Linux
CVE-2025-21999 is a use-after-free vulnerability in the Linux kernel procfs implementation caused by a race between kernel module unloading and inode instantiation. The proc_get_inode() function can dereference a proc entry's module-owned proc_ops structure after the owning module has been freed, including when checking proc_read_iter. Holding a reference to the proc directory entry does not protect the lifetime of the module-owned operations structure. The race can cause an invalid kernel memory access and kernel oops. The fix stores the information required for inode instantiation in the proc directory entry before proc_register(), avoiding subsequent dereferences of module-owned proc_ops.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The demonstrated impact is a kernel page fault and oops during a procfs lookup, potentially causing denial of service. Memory disclosure, memory corruption, and unauthorized code execution are potential consequences associated with the use-after-free, but successful privilege escalation or code execution has not been demonstrated for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict kernel module unloading to trusted administrators and avoid unloading modules that expose procfs entries while those entries may be accessed. Restricting CAP_SYS_MODULE reduces the ability to deliberately initiate the required module-removal race, but does not prevent it during legitimate administrative unloading. No validated general-purpose workaround is established.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update containing the proc_get_inode() fix and reboot into the updated kernel. Upstream fixed releases include 6.1.132, 6.6.85, 6.12.21, 6.13.9, and 6.14; use the latest supported release for the applicable branch rather than comparing versions across branches. Red Hat fixes include RHSA-2025:9080 for RHEL 9 and RHSA-2025:9348 for RHEL 10, with separate updates for extended-support streams. The fix caches inode-instantiation information before proc entry registration instead of accessing module-owned proc_ops afterward. Updating to a maintained fixed kernel is preferred over cherry-picking individual commits.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-21999 exploited in the wild?
- As of Nov 10, 2026, Mallory has no reports of CVE-2025-21999 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-21999?
- As of Nov 10, 2026, Mallory has found no public exploit for CVE-2025-21999.
- Is there a patch for CVE-2025-21999?
- Install a vendor-supported kernel update containing the proc_get_inode() fix and reboot into the updated kernel. Upstream fixed releases include 6.1.132, 6.6.85, 6.12.21, 6.13.9, and 6.14; use the latest supported release for the applicable branch rather than comparing versions across branches.
- What products are affected by CVE-2025-21999?
- Linux Kernel.
- How severe is CVE-2025-21999?
- CVE-2025-21999 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.33% (19th percentile) as of Nov 10, 2026.
Recent activity
13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.