What’s Vulnerable › Vulnerabilities
CVE-2024-56706: s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex
- Severity: medium (CVSS 6.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-12-28 · updated 2026-08-04
- Weakness: CWE-125
Description
In the Linux kernel, the following vulnerability has been resolved: s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex Reservation of the PMU hardware is done at first event creation and is protected by a pair of mutex_lock() and mutex_unlock(). After reservation of the PMU hardware the memory required for the PMUs the event is to be installed on is allocated by allocate_buffers() and alloc_sampling_buffer(). This done outside of the mutex protection. Without mutex protection two or more concurrent invocations of perf_event_init() may run in parallel. This can lead to allocation of Sample Data Blocks (SDBs) multiple times for the same PMU. Prevent this and protect memory allocation of SDBs by mutex.
Affected products
- Linux kernel: from 6.12 before 6.12.2 — fixed in 6.12.2
How to fix
Upgrade to a fixed version: Linux kernel 6.12.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/4b3bdfa89635db6a53e02955548bd07bebcae233
- https://git.kernel.org/stable/c/f55bd479d8663a4a4e403b3d308d3d1aa33d92df
Get alerted when CVE-2024-56706 or the next vulnerability affects your stack