CVE-2025-39881: Linux kernel kernfs PSI polling use-after-free
- Vendors
- Debian ProjectLinux
CVE-2025-39881 is a use-after-free vulnerability in the Linux kernel's kernfs polling path affecting cgroup Pressure Stall Information (PSI) monitoring. Disabling cgroup pressure monitoring invokes cgroup_file_release() through kernfs_drain_open_files(), releasing PSI triggers and freeing the open file's private context, of->priv. An epoll instance can retain a reference to that file after its private resources have been released. When monitoring is re-enabled, kernfs_fop_poll() can acquire an active reference to the reactivated kernfs node without recognizing that the associated open file has been released. Subsequent calls through cgroup_file_poll() and cgroup_pressure_poll() reach psi_trigger_poll(), which accesses freed memory. A KASAN diagnostic identified an eight-byte slab-use-after-free read.
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 vulnerability permits access to freed kernel memory during PSI polling and can cause kernel instability or a crash, resulting in denial of service. Potential privilege escalation and compromise of confidentiality and integrity depend on exploitability in the affected kernel build and configuration; these outcomes are not demonstrated by the documented reproduction. The listed CVSS v3.0 assessment is 7.8, with local access, low privileges, no user interaction, and high confidentiality, integrity, and availability impacts.
Mitigation
If you can’t patch tonight, do this now.
Until patched, restrict untrusted local users and containers from accessing PSI monitoring interfaces or modifying cgroup pressure-monitoring controls. Limit cgroup delegation and apply least-privilege permissions to these interfaces. Avoid disabling and re-enabling cgroup pressure monitoring while existing pressure-file descriptors remain registered with epoll. These measures reduce exposure to the documented trigger but do not replace the kernel fix.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update containing the kernfs open-file lifetime fix, then reboot into the updated kernel. The fix introduces kernfs_get_active_of(), which rejects active-reference acquisition for released open files, and replaces the relevant kernfs_get_active() calls. Applicable Red Hat updates include RHSA-2025:19469 and RHSA-2025:21118 for RHEL 10, RHSA-2025:21469 for RHEL 9, and RHSA-2025:22392 for RHEL 9.6 support channels; the latter supplies kernel 5.14.0-570.69.1.el9_6. Echo identifies linux 6.1.153-1 or later as fixed. For SUSE and Google Container-Optimized OS, apply the fixed kernel update appropriate to the installed product, kernel flavor, and release channel rather than comparing version numbers across distributions.
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-39881 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2025-39881 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-39881?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2025-39881.
- Is there a patch for CVE-2025-39881?
- Install a vendor-supported kernel update containing the kernfs open-file lifetime fix, then reboot into the updated kernel. The fix introduces kernfs_get_active_of(), which rejects active-reference acquisition for released open files, and replaces the relevant kernfs_get_active() calls.
- What products are affected by CVE-2025-39881?
- Linux Kernel and Debian Project Debian Linux.
- How severe is CVE-2025-39881?
- CVE-2025-39881 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.24% (9th percentile) as of Oct 25, 2026.
Recent activity
27 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.