CVE-2024-56706

published 28 Dec 2024 · updated 5 Aug 2026

s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4b3bdfa89635db6a53e02955548bd07bebcae233 and Kernel f55bd479d8663a4a4e403b3d308d3d1aa33d92df.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.12, >=8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 <4b3bdfa89635db6a53e02955548bd07bebcae233, >=8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 <f55bd479d8663a4a4e403b3d308d3d1aa33d92df4b3bdfa89635db6a53e02955548bd07bebcae233, f55bd479d8663a4a4e403b3d308d3d1aa33d92df

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-56706 severity on Zeptric[![CVE-2024-56706](https://zeptric.io/badge/cve/CVE-2024-56706.svg)](https://zeptric.io/cve/CVE-2024-56706)