PT-2025-39138 · Linux+5 · Linux Kernel+5

Published

2025-08-22

·

Updated

2026-05-07

·

CVE-2025-39881

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description A use-after-free (UAF) issue exists in the PSI (Pressure Stall Information) monitoring mechanism within the Linux kernel. The problem occurs when a file descriptor is accessed after it has been freed, specifically during polling operations related to cgroup pressure monitoring. The race condition happens when disabling and then re-enabling cgroup pressure monitoring (cgroup.pressure) after establishing epoll monitoring. Disabling the monitoring releases PSI triggers and frees associated memory, while re-enabling it attempts to access the freed memory, leading to a UAF condition. The vulnerability is triggered through interactions with the kernfs file system and involves functions like cgroup file release(), kernfs drain open files(), kernfs get active(), psi trigger poll(), and cgroup pressure poll(). The issue is reproducible by opening test/cpu.pressure, establishing epoll monitoring, disabling monitoring, and then re-enabling it. The root cause is the lack of proper reference counting for kernfs open files, allowing access to freed memory.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

RCE

Use After Free

Weakness Enumeration

Related Identifiers

ALSA-2025:19469
AZL-67637
BDU:2025-13884
CVE-2025-39881
DLA-4328-1
ECHO-2EC8-E465-DC83
INFSA-2025_21469
MGASA-2025-0309
MGASA-2025-0310
OPENSUSE-SU-2025:20091-1
RHSA-2025:21118
RHSA-2025_21469
SUSE-SU-2025:21040-1
SUSE-SU-2025:21052-1
SUSE-SU-2025:21056-1
SUSE-SU-2025:21064-1
SUSE-SU-2025:21080-1
SUSE-SU-2025:21147-1
SUSE-SU-2025:21180-1
SUSE-SU-2025:4057-1
SUSE-SU-2025:4128-1
SUSE-SU-2025:4132-1
SUSE-SU-2025:4140-1
SUSE-SU-2025:4141-1
SUSE-SU-2025:4301-1
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8100-1
USN-8125-1
USN-8126-1
USN-8165-1
USN-8261-1

Affected Products

Astra Linux
Linuxmint
Linux Kernel
Red Hat
Suse
Ubuntu