Skip to content
Heist/ feed
High

cpumap: Zero-initialise xdp_rxq_info struct before running XDP program

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: cpumap: Zero-initialise xdp_rxq_info struct before running XDP program When running an XDP program that is attached to a cpumap entry, we don't initialise the xdp_rxq_info data structure being used in the xdp_buff that backs the XDP program invocation. Tobias noticed that this leads to random values being returned as the xdp_md->rx_queue_index value for XDP programs running in a cpumap. This means we're basically returning the contents of the uninitialised memory, which is bad. Fix this by zero-initialising the rxq data structure before running the XDP program.

Announced Group revision 1
Original source ↗

CVE-2024-27431

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2024-27431

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "9216477449f33cdbc9c9a99d49f500b7fbb81702",
        "lessThan": "5f4e51abfbe6eb444fa91906a5cd083044278297",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9216477449f33cdbc9c9a99d49f500b7fbb81702",
        "lessThan": "f0363af9619c77730764f10360e36c6445c12f7b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9216477449f33cdbc9c9a99d49f500b7fbb81702",
        "lessThan": "3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9216477449f33cdbc9c9a99d49f500b7fbb81702",
        "lessThan": "f562e4c4aab00986dde3093c4be919c3f2b85a4a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9216477449f33cdbc9c9a99d49f500b7fbb81702",
        "lessThan": "eaa7cb836659ced2d9f814ac32aa3ec193803ed6",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9216477449f33cdbc9c9a99d49f500b7fbb81702",
        "lessThan": "2487007aa3b9fafbd2cb14068f49791ce1d7ede5",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/bpf/cpumap.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.9"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.9",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.213",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.152",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.82",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.22",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7.10",
        "versionType": "semver",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/bpf/cpumap.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2024-27431

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#26497 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement