Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.2
CVEs
CVE-2024-56706
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 13:44 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 28 Dec 2024, 09:46 UTC

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.

osv:CVE-2024-56706

Kernel

Fixed versions: 6.12.2

Complete source record
{
  "id": "dace259914fa8e8cb69ca2755b584d65dfc4f14d838ae6d4a8f4de0fe13d2a84",
  "url": "https://osv.dev/vulnerability/CVE-2024-56706",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "s390/cpum_sf: Fix and protect memory allocation of SDBs with mutex",
    "summary": "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.",
    "evidence": "osv:CVE-2024-56706",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-56706",
      "aliases": [
        "CVE-2024-56706"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8a6fe8f21ec4f049a7b1fe120ad50a5065a9c7a8"
                },
                {
                  "fixed": "4b3bdfa89635db6a53e02955548bd07bebcae233"
                },
                {
                  "fixed": "f55bd479d8663a4a4e403b3d308d3d1aa33d92df"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56706.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.12.0"
                },
                {
                  "fixed": "6.12.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56706.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:29.375934415Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4b3bdfa89635db6a53e02955548bd07bebcae233",
        "https://git.kernel.org/stable/c/f55bd479d8663a4a4e403b3d308d3d1aa33d92df",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56706.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-56706",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56706.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-56706",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 496050,
  "published_at": "2024-12-28T09:46:27.297+00:00"
}