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

Published May 17, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

cpumap: Zero-initialise xdprxqinfo struct before running XDP program

The Linux kernel CVE team has assigned CVE-2024-27431 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051723-CVE-2024-27431-30ae@gregkh/T

Other sources

In the Linux kernel, the following vulnerability has been resolved:

cpumap: Zero-initialise xdprxqinfo struct before running XDP program

When running an XDP program that is attached to a cpumap entry, we don't initialise the xdprxqinfo data structure being used in the xdpbuff that backs the XDP program invocation. Tobias noticed that this leads to random values being returned as the xdpmd->rxqueueindex 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.

NVD

Affected Software

20 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<5.10.213
5.10.213
redhat/kernel<5.15.152
5.15.152
redhat/kernel<6.1.82
6.1.82
redhat/kernel<6.6.22
6.6.22
redhat/kernel<6.7.10
6.7.10
redhat/kernel<6.8
6.8
Linux Linux kernel>=5.9<5.10.213
Linux Linux kernel>=5.11<5.15.152
Linux Linux kernel>=5.16<6.1.82
Linux Linux kernel>=6.2<6.6.22
Linux Linux kernel>=6.7<6.7.10
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
Linux Linux kernel=6.8-rc3
Linux Linux kernel=6.8-rc4
Linux Linux kernel=6.8-rc5
Linux Linux kernel=6.8-rc6
Linux Linux kernel=6.8-rc7
Debian Debian Linux=10.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.10.213
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.15.152
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.1.82
  5. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.22
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.7.10
  7. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2024-27431
  9. Compensating control

    For affected cpumap-attached XDP programs, ensure the xdp_rxq_info data structure in the xdp_buff backing the XDP invocation is zero-initialised before running the XDP program (as described: “Zero-initialise xdp_rxq_info struct before running XDP program”).

Event History

May 17, 2024
CVE Published
via MITRE·12:02 PM
Data Sourced
via MITRE·12:02 PM
DescriptionSeverity
Data Sourced
via NVD·12:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 PM
RemedyAffected Software
Data Sourced
via Red Hat·09:17 PM
DescriptionSeverityAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:14 AM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·06:17 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27431?

CVE-2024-27431 is categorized as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-27431?

To fix CVE-2024-27431, update the Linux kernel to the patched versions such as 5.10.213, 5.15.152, 6.1.82, 6.6.22, 6.7.10, or 6.8.

3

Which Linux kernel versions are affected by CVE-2024-27431?

CVE-2024-27431 affects multiple Linux kernel versions including those prior to 5.10.213, 5.15.152, 6.1.82, 6.6.22, 6.7.10, and 6.8.

4

What is the nature of the vulnerability CVE-2024-27431?

CVE-2024-27431 involves a failure to zero-initialize the xdp_rxq_info structure before executing an XDP program in the Linux kernel.

5

Is CVE-2024-27431 specific to any Linux distributions?

Yes, CVE-2024-27431 has been identified in the Red Hat and Debian versions of the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203