We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-56706

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



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.

Reserved 2024-12-27 | Published 2024-12-28 | Updated 2025-01-20 | Assigner Linux

Product status

Default status
unaffected

8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 before 4b3bdfa89635db6a53e02955548bd07bebcae233
affected

8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 before f55bd479d8663a4a4e403b3d308d3d1aa33d92df
affected

Default status
affected

6.12
affected

Any version before 6.12
unaffected

6.12.2
unaffected

6.13
unaffected

References

git.kernel.org/...c/4b3bdfa89635db6a53e02955548bd07bebcae233

git.kernel.org/...c/f55bd479d8663a4a4e403b3d308d3d1aa33d92df

cve.org (CVE-2024-56706)

nvd.nist.gov (CVE-2024-56706)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-56706

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.