CVE-2024-27431: cpumap: Zero-initialise xdp_rxq_info struct before running XDP program
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.
Security readout for executives and security teams
Plain-English summary
A Linux XDP networking flaw can expose uninitialized kernel memory to an XDP program running through a CPU map. The program may receive unpredictable data instead of a valid receive-queue index. The supplied record rates it high severity, but exploitation requires local privileges and the specific XDP cpumap configuration.
Executive priority
Prioritize remediation for network-facing infrastructure and appliances that actively use XDP cpumap processing. Treat general Linux fleets as an inventory-and-triage task rather than assuming universal exposure. Accelerate patching where untrusted or lower-privileged users can interact with relevant XDP functionality.
Technical view
The kernel failed to initialize xdp_rxq_info before invoking an XDP program attached to a cpumap entry. Consequently, xdp_md->rx_queue_index could contain residual memory data. This is classified as CWE-908. The kernel fix zero-initializes the receive-queue structure before program execution.
Likely exposure
Exposure is most likely on affected Linux kernels that run XDP programs attached to cpumap entries. Systems without that configuration are less likely to reach the vulnerable path. The supplied version data spans Linux 5.9 through 6.8 but is ambiguous; confirm exact package status with the distribution or equipment vendor.
Exploitation context
The supplied CVSS vector describes a local, low-complexity attack requiring low privileges and no user interaction. CISA KEV status is false, and the provided sources do not establish active exploitation or a public weaponized exploit. Practical impact depends on an attacker reaching the affected XDP cpumap execution path.
Researcher notes
The observable defect is unintended disclosure of uninitialized data through rx_queue_index. Although the supplied CVSS assigns high confidentiality, integrity, and availability impacts, the description directly substantiates memory disclosure and unpredictable metadata only. The bundle does not explain a demonstrated path to broader compromise, so those consequences should not be assumed.
Mitigation direction
Install a vendor-supported kernel containing the referenced zero-initialization fix.
Check distribution and appliance advisories for the exact corrected package version.
Prioritize systems using XDP programs attached to cpumap entries.
Where updating is delayed, assess whether the affected XDP cpumap configuration can be safely disabled.
Validation and detection
Inventory active kernel versions across Linux hosts, appliances, and embedded systems.
Identify systems running XDP programs attached to cpumap entries.
Compare installed packages with applicable vendor advisories and referenced stable commits.
After updating, verify the corrected kernel is active following any required reboot.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-908: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-908 · source CWE mapping
Use of Uninitialized Resource
Use of Uninitialized Resource represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.