# CVE-2024-27431: cpumap: Zero-initialise xdp_rxq_info struct before running XDP program

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-17T12:02:10.274Z
- Modified: 2026-10-15T01:17:40.920Z
- Weaknesses: CWE-908
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9216477449f33cdbc9c9a99d49f500b7fbb81702 before 5f4e51abfbe6eb444fa91906a5cd083044278297; from 9216477449f33cdbc9c9a99d49f500b7fbb81702 before f0363af9619c77730764f10360e36c6445c12f7b; from 9216477449f33cdbc9c9a99d49f500b7fbb81702 before 3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95; from 9216477449f33cdbc9c9a99d49f500b7fbb81702 before f562e4c4aab00986dde3093c4be919c3f2b85a4a; from 9216477449f33cdbc9c9a99d49f500b7fbb81702 before eaa7cb836659ced2d9f814ac32aa3ec193803ed6; from 9216477449f33cdbc9c9a99d49f500b7fbb81702 before 2487007aa3b9fafbd2cb14068f49791ce1d7ede5; 5.9 (not affected: before 5.9; from 5.10.213 up to 5.10.*; from 5.15.152 up to 5.15.*; from 6.1.82 up to 6.1.*; from 6.6.22 up to 6.6.*; from 6.7.10 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: 9216477449f3; 5.9; from 5.9 before 5.10.213; from 5.11 before 5.15.152; from 5.16 before 6.1.82; from 6.2 before 6.6.22; from 6.7 before 6.7.10; 6.8 (not affected: 0; 5.10.213; 5.15.152; 6.1.82; 6.6.22; 6.7.10; 6.8)
- debian debian_linux: 10.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-27431](https://www.cve.org/CVERecord?id=CVE-2024-27431), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-27431](https://nvd.nist.gov/vuln/detail/CVE-2024-27431), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-27431 · Whole record: https://cve.day/CVE-2024-27431.json · Rebuilt by cve.day 2026-11-25T22:58:40.502Z
