CVE-2024-56706

MEDIUM

Linux Kernel 6.12-6.12.1 - Out-of-bounds Read in SDB Memory Allocation

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 6.3
EPSS 0.0016
EPSS Percentile 5.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:H

Details

CWE
CWE-125 CWE-362
Status published
Products (8)
linux/Kernel 6.12.0 - 6.12.2linux
Linux/Linux < 6.12
Linux/Linux 6.12
Linux/Linux 6.12.2 - 6.12.*
Linux/Linux 6.13
Linux/Linux 8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 - 4b3bdfa89635db6a53e02955548bd07bebcae233
Linux/Linux 8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8 - f55bd479d8663a4a4e403b3d308d3d1aa33d92df
linux/linux_kernel 6.12 - 6.12.2
Published Dec 28, 2024
Tracked Since Feb 18, 2026