PT-2023-9727 · Linux+7 · Linux Kernel+7

Munehisa Kamata

·

Published

2023-02-15

·

Updated

2025-09-29

·

CVE-2023-52707

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 versions prior to 6.2.0-rc6
Description The issue is related to a use-after-free vulnerability in the Linux kernel's sched/psi component. This vulnerability can be exploited when a non-root cgroup is removed while a thread is still polling on a pressure file within the cgroup. The polling waitqueue gets freed, but the polling thread still has a reference to the pressure file and will access the freed waitqueue when the file is closed or upon exit. This results in a use-after-free error.
The fundamental problem is that cgroup file release() is not tied to the file's real lifetime, and using wake up pollfree() might be less than ideal. However, it is in line with the comment at commit 42288cb44c4b ("wait: add wake up pollfree()") since the waitqueue's lifetime is not tied to the file's one and can be considered as another special case.
Recommendations To resolve this issue, update the Linux kernel to a version that includes the fix for this vulnerability. Specifically, versions 6.2.0-rc6 and later should be used.
At the moment, there is no information about additional mitigation measures or workarounds for this vulnerability.

Exploit

Fix

Use After Free

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:5101
ALSA-2024:5102
ALSA-2025_16880
BDU:2024-10367
CESA-2024_5101
CESA-2024_5102
CVE-2023-52707
INFSA-2024_5101
INFSA-2024_5102
OESA-2024-2257
OPENSUSE-SU-2024_2189-1
OPENSUSE-SU-2024_2362-1
RHSA-2023:6583
RHSA-2023_6583
RHSA-2024:4823
RHSA-2024:4831
RHSA-2024:5101
RHSA-2024:5102
RHSA-2024_5101
RHSA-2024_5102
RLSA-2024:5101
RLSA-2024:5102
RXSA-2024:5101
SUSE-SU-2024:2008-1
SUSE-SU-2024:2011-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2189-1
SUSE-SU-2024:2190-1
SUSE-SU-2024:2362-1
SUSE-SU-2024:2365-1
SUSE-SU-2024:2384-1

Affected Products

Almalinux
Astra Linux
Centos
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse