7.8high
cpumap: Zero-initialise xdp_rxq_info struct before running XDP program
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | CVE List, NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cpumap: Inicializa a cero la estructura xdp_rxq_info antes de ejecutar el programa XDP Cuando ejecutas un programa XDP que está adjunto a una entrada de cpumap, no inicializamos la estructura de datos xdp_rxq_info que se utiliza en xdp_buff que respalda la invocación del programa XDP. Tobias notó que esto lleva a que se devuelvan valores aleatorios como el valor xdp_md->rx_queue_index para programas XDP que se ejecutan en un cpumap. Esto significa que básicamente estamos devolviendo el contenido de la memoria no inicializada, lo cual es malo. Solucione este problema inicializando a cero la estructura de datos rxq antes de ejecutar el programa XDP.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27431 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2024-27431 changed 2026-10-15 | Public domain |