CVE-2024-56706

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-56706
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56706.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-56706
Downstream
Published
2024-12-28T09:46:27.297Z
Modified
2025-11-20T07:26:48.974022Z
Summary
s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex
Details

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 mutexlock() and mutexunlock(). After reservation of the PMU hardware the memory required for the PMUs the event is to be installed on is allocated by allocatebuffers() and allocsamplingbuffer(). This done outside of the mutex protection. Without mutex protection two or more concurrent invocations of perfevent_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.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8
Fixed
4b3bdfa89635db6a53e02955548bd07bebcae233
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8
Fixed
f55bd479d8663a4a4e403b3d308d3d1aa33d92df

Affected versions

v6.*

v6.11
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.2