CVE-2024-56706 s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex
A race condition in the s390 CPU measurement facility allows concurrent allocations, potentially causing memory corruption or information disclosure.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-56706?
CVE-2024-56706 is a high-severity vulnerability in Linux kernel, published on 28 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-56706?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-56706?
Apply the vendor's patch.
Is CVE-2024-56706 being exploited?
There is no known exploitation of CVE-2024-56706 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-56706, GHSA-m2p9-vjrp-wj7v, UBUNTU-CVE-2024-56706.