Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-39881

published high CVSS 3.1 · 7.8

kernfs: Fix UAF in polling when open file is released

Published
23 Sep 2025, 06:00:50 UTC
Updated
05 Aug 2026, 12:05:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux34f26a15611afb03c33df6819359d36f5b382589 to < 34d9cafd469c69ad85e6a36b4303c78382cf5c79 · 34f26a15611afb03c33df6819359d36f5b382589 to < 854baafc00c433cccbe0ab4231b77aeb9b637b77 · 34f26a15611afb03c33df6819359d36f5b382589 to < 7e64474aba78d240f7804f48f2d454dcca78b15f · 34f26a15611afb03c33df6819359d36f5b382589 to < ac5cda4fae8818cf1963317bb699f7f2f85b60af · 34f26a15611afb03c33df6819359d36f5b382589 to < 3c9ba2777d6c86025e1ba4186dc5cd930e40ec5f · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.1 (affected) · 0 to < 6.1 (unaffected · semver) · 6.1.153 through 6.1.* (unaffected · semver) · 6.6.107 through 6.6.* (unaffected · semver) · 6.12.48 through 6.12.* (unaffected · semver) · 6.16.8 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1223 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1227 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-55.42.1.el10_0 ALSA-2025:19469
Debian bullseye linux-6.1 Advisory build 6.1.153-1~deb11u1 DLA-4328-1
Oracle Linux 10 kernelx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 10 kernel-doc Advisory build 6.12.0-55.42.1.el10_0 ALSA-2025:19469
Oracle Linux 10 kernelx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-abi-stablelistsx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-abi-stablelistsx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-corex86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-corex86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-cross-headersaarch64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-cross-headersaarch64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-cross-headersx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-cross-headersx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debugx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debugx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debug-corex86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debug-corex86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debug-develx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debug-develx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debug-devel-matchedx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debug-devel-matchedx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debug-modulesx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debug-modulesx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debug-modules-corex86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debug-modules-corex86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debug-modules-extrax86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debug-modules-extrax86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-debug-uki-virtx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-debug-uki-virtx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-develx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-develx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-devel-matchedx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-devel-matchedx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-docx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-docx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-headersaarch64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-headersaarch64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-headersx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-headersx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-modulesx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-modulesx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-modules-corex86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-modules-corex86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-modules-extrax86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-modules-extrax86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-modules-extra-matchedx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-toolsaarch64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-toolsaarch64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-toolsx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-toolsx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-tools-libsaarch64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-tools-libsaarch64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-tools-libsx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-tools-libsx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-tools-libs-develaarch64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-tools-libs-develaarch64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-tools-libs-develx86_64 Advisory build 0:6.12.0-124.13.1.el10_1 ELSA-2025-21118
Oracle Linux 10 kernel-tools-libs-develx86_64 Advisory build 0:6.12.0-55.42.1.0.1.el10_0 ELSA-2025-19469
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-103.40.4.4.el10uek ELSA-2025-20649
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-104.43.4.3.el10uek ELSA-2025-20719
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-105.51.5.el10uek ELSA-2025-25754

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: kernfs: Fix UAF in polling when open file is released A use-after-free (UAF) vulnerability was identified in the PSI (Pressure Stall Information) monitoring mechanism: BUG: KASAN: slab-use-after-free in psi_trigger_poll+0x3c/0x140 Read of size 8 at addr ffff3de3d50bd308 by task systemd/1 psi_trigger_poll+0x3c/0x140 cgroup_pressure_poll+0x70/0xa0 cgroup_file_poll+0x8c/0x100 kernfs_fop_poll+0x11c/0x1c0 ep_item_poll.isra.0+0x188/0x2c0 Allocated by task 1: cgroup_file_open+0x88/0x388 kernfs_fop_open+0x73c/0xaf0 do_dentry_open+0x5fc/0x1200 vfs_open+0xa0/0x3f0 do_open+0x7e8/0xd08 path_openat+0x2fc/0x6b0 do_filp_open+0x174/0x368 Freed by task 8462: cgroup_file_release+0x130/0x1f8 kernfs_drain_open_files+0x17c/0x440 kernfs_drain+0x2dc/0x360 kernfs_show+0x1b8/0x288 cgroup_file_show+0x150/0x268 cgroup_pressure_write+0x1dc/0x340 cgroup_file_write+0x274/0x548 Reproduction Steps: 1. Open test/cpu.pressure and establish epoll monitoring 2. Disable monitoring: echo 0 > test/cgroup.pressure 3. Re-enable monitoring: echo 1 > test/cgroup.pressure The race condition occurs because: 1. When cgroup.pressure is disabled (echo 0 > cgroup.pressure), it: - Releases PSI triggers via cgroup_file_release() - Frees of->priv through kernfs_drain_open_files() 2. While epoll still holds reference to the file and continues polling 3. Re-enabling (echo 1 > cgroup.pressure) accesses freed of->priv epolling disable/enable cgroup.pressure fd=open(cpu.pressure) while(1) ... epoll_wait kernfs_fop_poll kernfs_get_active = true echo 0 > cgroup.pressure ... cgroup_file_show kernfs_show // inactive kn kernfs_drain_open_files cft->release(of); kfree(ctx); ... kernfs_get_active = false echo 1 > cgroup.pressure kernfs_show kernfs_activate_one(kn); kernfs_fop_poll kernfs_get_active = true cgroup_file_poll psi_trigger_poll // UAF ... end: close(fd) To address this issue, introduce kernfs_get_active_of() for kernfs open files to obtain active references. This function will fail if the open file has been released. Replace kernfs_get_active() with kernfs_get_active_of() to prevent further operations on released file descriptors.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

47

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The attack requires local access to the cgroup2 filesystem — opening `cpu.pressure` with epoll and writing to `cgroup.pressure` via ordinary file syscalls. There is no network-facing path to `kernfs_fop_poll()`/`cgroup_pressure_write()`. AC:L - The reproduction is a deterministic three-step sequence (open+epoll, `echo 0 > cgroup.pressure`, `echo 1 > cgroup.pressure`) fully driven by the attacker, with no timing window to win. The gap between the `kfree()` and the re-activated poll is attacker-controlled and arbitrarily long, allowing reliable heap spraying of the kmalloc-192 slot. PR:L - An unprivileged local user suffices: `cgroup_add_file()` stamps created cgroup files with `current_fsuid()`, so any user with a delegated subtree (systemd `user@$UID.service`, containers, rootless podman) owns and can write both `cgroup.pressure` and `cpu.pressure` in a cgroup they `mkdir`. No capability check exists on this path, and cgroup2 is `FS_USERNS_MOUNT`. UI:N - The attacker performs the poll and both `cgroup.pressure` writes itself; no victim action is needed. (A privileged poller such as systemd/systemd-oomd can additionally be victimized, but that is not required.) S:U - The freed object, the corrupting write, and the resulting compromise all live in the kernel's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - The stale `of->priv` yields an attacker-controlled `struct psi_trigger *` in `psi_trigger_poll()`, and the subsequent `t->of` / `of_on(of)` / `atomic_read(&on->event)` dereferences turn that into an arbitrary kernel-memory read primitive, disclosing sensitive kernel data. I:H - `poll_wait()` on the forged `t->event_wait` inserts a wait-queue entry at an attacker-chosen address (arbitrary linked-list write), `cmpxchg(&t->event, 1, 0)` adds a conditional write, and the eventual `wake_up()` calls a `wait_queue_entry->func` pointer from corrupted memory — a viable control-flow hijack and local privilege escalation. A:H - Even without exploitation the use-after-free reliably produces a KASAN slab-use-after-free / oops on a wild pointer dereference, and a failed spray attempt panics the kernel — a full denial of service triggerable at will by an unprivileged user.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 34f26a15611afb03c33df6819359d36f5b382589 to < 34d9cafd469c69ad85e6a36b4303c78382cf5c79 (affected · git)34f26a15611afb03c33df6819359d36f5b382589 to < 854baafc00c433cccbe0ab4231b77aeb9b637b77 (affected · git)34f26a15611afb03c33df6819359d36f5b382589 to < 7e64474aba78d240f7804f48f2d454dcca78b15f (affected · git)34f26a15611afb03c33df6819359d36f5b382589 to < ac5cda4fae8818cf1963317bb699f7f2f85b60af (affected · git)34f26a15611afb03c33df6819359d36f5b382589 to < 3c9ba2777d6c86025e1ba4186dc5cd930e40ec5f (affected · git)Default: unaffected Linux · cna
Linux Linux 6.1 (affected)0 to < 6.1 (unaffected · semver)6.1.153 through 6.1.* (unaffected · semver)6.6.107 through 6.6.* (unaffected · semver)6.12.48 through 6.12.* (unaffected · semver)6.16.8 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

2

Linux · cna

kernfs: Fix UAF in polling when open file is released

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
0b0924a274740a74ebcdea66242d40f5d1a8264be051b32424e2312228839d04
Ingested
23 Sep 2026, 08:47:06 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected