# CVE-2024-27431: cpumap: Zero-initialise xdp\_rxq\_info struct before running XDP program

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-05-17T12:02:10.274Z
- **Modified:** 2026-10-15T01:17:40.920Z

## Who should check

- Anyone running Linux \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 5f4e51abfbe6eb444fa91906a5cd083044278297; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< f0363af9619c77730764f10360e36c6445c12f7b; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< f562e4c4aab00986dde3093c4be919c3f2b85a4a; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< eaa7cb836659ced2d9f814ac32aa3ec193803ed6; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 2487007aa3b9fafbd2cb14068f49791ce1d7ede5
- Anyone running Linux 5.9

## Description

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.

## Affected and fixed versions

- Linux: \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 5f4e51abfbe6eb444fa91906a5cd083044278297; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< f0363af9619c77730764f10360e36c6445c12f7b; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< f562e4c4aab00986dde3093c4be919c3f2b85a4a; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< eaa7cb836659ced2d9f814ac32aa3ec193803ed6; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 2487007aa3b9fafbd2cb14068f49791ce1d7ede5 (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- Upgrade Linux to 2487007aa3b9fafbd2cb14068f49791ce1d7ede5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-27431. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27431.md
Affected: Linux >= 9216477449f33cdbc9c9a99d49f500b7fbb81702, < 5f4e51abfbe6eb444fa91906a5cd083044278297; >= 9216477449f33cdbc9c9a99d49f500b7fbb81702, < f0363af9619c77730764f10360e36c6445c12f7b; >= 9216477449f33cdbc9c9a99d49f500b7fbb81702, < 3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95; >= 9216477449f33cdbc9c9a99…
Fixed in: Linux 5f4e51abfbe6eb444fa91906a5cd083044278297, Linux 3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95, Linux 2487007aa3b9fafbd2cb14068f49791ce1d7ede5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-27431 being exploited?

There is no confirmed exploitation: CVE-2024-27431 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-27431?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-27431?

Linux \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 5f4e51abfbe6eb444fa91906a5cd083044278297; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< f0363af9619c77730764f10360e36c6445c12f7b; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< f562e4c4aab00986dde3093c4be919c3f2b85a4a; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< eaa7cb836659ced2d9f814ac32aa3ec193803ed6; \>= 9216477449f33cdbc9c9a99d49f500b7fbb81702, \< 2487007aa3b9fafbd2cb14068f49791ce1d7ede5; Linux 5.9.

### Is there a fix for CVE-2024-27431?

Yes. Fixed in Linux 5f4e51abfbe6eb444fa91906a5cd083044278297, Linux 3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95, Linux 2487007aa3b9fafbd2cb14068f49791ce1d7ede5. Upgrade Linux to 2487007aa3b9fafbd2cb14068f49791ce1d7ede5 or later.

### How do I check if I'm affected by CVE-2024-27431?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/5f4e51abfbe6eb444fa91906a5cd083044278297>
- patch: <https://git.kernel.org/stable/c/f0363af9619c77730764f10360e36c6445c12f7b>
- patch: <https://git.kernel.org/stable/c/3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95>
- patch: <https://git.kernel.org/stable/c/f562e4c4aab00986dde3093c4be919c3f2b85a4a>
- patch: <https://git.kernel.org/stable/c/eaa7cb836659ced2d9f814ac32aa3ec193803ed6>
- patch: <https://git.kernel.org/stable/c/2487007aa3b9fafbd2cb14068f49791ce1d7ede5>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-27431>

HTML: <https://flawdb.com/CVE-2024-27431> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-27431>
