PT-2025-3595 · Linux+7 · Linux Kernel+7

Published

2025-01-11

·

Updated

2026-03-14

·

CVE-2024-57849

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.6.74
Description The issue arises from the handling of CPU hotplug removal during sampling in the Linux kernel. When a CPU is removed, the s390 pmu sf offline cpu() function is called, which deallocates sampling data buffers (SDBs) and clears the PMU F RESERVED bit. However, if an event is still active on the removed CPU, the kernel's performance subsystem triggers a series of function calls to stop and remove the event, including perf event exit cpu(), cpumsf pmu del(), and hw perf event update(). During this process, the sampling device driver attempts to read remaining samples from the SDBs, which may have already been freed and reassigned, leading to a use-after-free situation. This can result in invalid samples being read. The kernel now checks if the CPU is still in a reserved state (i.e., the PMU F RESERVED bit is set) before attempting to access the SDBs.
Recommendations For Linux kernel versions prior to 6.6.74, update to version 6.6.74 or later to resolve the issue. As a temporary workaround, consider disabling CPU hotplug removal during sampling to minimize the risk of exploitation. Restrict access to the s390 pmu sf offline cpu() function and related performance subsystem functions to prevent unauthorized use. Avoid using the PMU F RESERVED bit as a means of validating SDB access, as this may lead to use-after-free situations.

Exploit

Fix

Use After Free

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

Weakness Enumeration

Related Identifiers

ALT-PU-2025-12647
BDU:2025-06153
CVE-2024-57849
DLA-4076-1
MGASA-2025-0030
MGASA-2025-0032
OESA-2025-1158
OESA-2025-1159
OESA-2025-1160
OESA-2025-1162
OPENSUSE-SU-2025_0428-1
OPENSUSE-SU-2025_0499-1
OPENSUSE-SU-2025_0517-1
OPENSUSE-SU-2025_0517-2
OPENSUSE-SU-2025_0556-1
OPENSUSE-SU-2025_0557-1
OPENSUSE-SU-2025_0576-1
OPENSUSE-SU-2025_0577-1
OPENSUSE-SU-2025_0771-1
SUSE-SU-2025:0236-1
SUSE-SU-2025:0289-1
SUSE-SU-2025:0428-1
SUSE-SU-2025:0499-1
SUSE-SU-2025:0555-1
SUSE-SU-2025:0556-1
SUSE-SU-2025:0557-1
SUSE-SU-2025:0576-1
SUSE-SU-2025:0577-1
SUSE-SU-2025:0577-2
SUSE-SU-2025:0771-1
SUSE-SU-2025:0867-1
SUSE-SU-2025:20165-1
SUSE-SU-2025:20166-1
SUSE-SU-2025:20248-1
SUSE-SU-2025:20249-1
SUSE-SU-2025_0236-1
SUSE-SU-2025_0428-1
SUSE-SU-2025_0499-1
SUSE-SU-2025_0517-1
SUSE-SU-2025_0517-2
SUSE-SU-2025_0557-1
SUSE-SU-2025_0577-1
SUSE-SU-2025_0577-2
SUSE-SU-2026:0154-1
SUSE-SU-2026:0166-1
SUSE-SU-2026:0173-1
SUSE-SU-2026:0174-1
SUSE-SU-2026:0246-1
SUSE-SU-2026:0269-1
SUSE-SU-2026:20255-1
SUSE-SU-2026:20376-1
USN-7379-1
USN-7379-2
USN-7380-1
USN-7381-1
USN-7382-1
USN-7387-1
USN-7387-2
USN-7387-3
USN-7388-1
USN-7389-1
USN-7390-1
USN-7391-1
USN-7392-1
USN-7392-2
USN-7392-3
USN-7392-4
USN-7393-1
USN-7401-1
USN-7407-1
USN-7413-1
USN-7421-1
USN-7449-1
USN-7449-2
USN-7450-1
USN-7451-1
USN-7452-1
USN-7453-1
USN-7458-1
USN-7459-1
USN-7459-2
USN-7463-1
USN-7468-1
USN-7523-1
USN-7524-1
USN-7539-1
USN-7540-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu