Skip to main content
Mallory
HighVulnerability

CVE-2025-21999: Use-after-free in Linux kernel proc_get_inode()

Published Apr 3, 2025 · Updated 18 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.33%19th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2025-21999CWE-416 · Use After Free

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

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.
Activity feed

Recent activity

13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+7 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.