{"id":"CVE-2024-56706","summary":"s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/cpum_sf: Fix and protect memory allocation of SDBs with mutex\n\nReservation of the PMU hardware is done at first event creation\nand is protected by a pair of mutex_lock() and mutex_unlock().\nAfter reservation of the PMU hardware the memory\nrequired for the PMUs the event is to be installed on is\nallocated by allocate_buffers() and alloc_sampling_buffer().\nThis done outside of the mutex protection.\nWithout mutex protection two or more concurrent invocations of\nperf_event_init() may run in parallel.\nThis can lead to allocation of Sample Data Blocks (SDBs)\nmultiple times for the same PMU.\nPrevent this and protect memory allocation of SDBs by\nmutex.","modified":"2026-04-02T12:25:09.501405Z","published":"2024-12-28T09:46:27.297Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56706.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4b3bdfa89635db6a53e02955548bd07bebcae233"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f55bd479d8663a4a4e403b3d308d3d1aa33d92df"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56706.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56706"},{"type":"PACKAGE","url":"https://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"},{"fixed":"f55bd479d8663a4a4e403b3d308d3d1aa33d92df"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56706.json"}}],"schema_version":"1.7.5"}