{"id":"CVE-2024-27431","aliases":["CVE-2024-27431"],"related":[],"kind":"vulnerability","state":"published","title":"cpumap: Zero-initialise xdp_rxq_info struct before running XDP program","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpumap: Zero-initialise xdp_rxq_info struct before running XDP program\n\nWhen running an XDP program that is attached to a cpumap entry, we don't\ninitialise the xdp_rxq_info data structure being used in the xdp_buff\nthat backs the XDP program invocation. Tobias noticed that this leads to\nrandom values being returned as the xdp_md->rx_queue_index value for XDP\nprograms running in a cpumap.\n\nThis means we're basically returning the contents of the uninitialised\nmemory, which is bad. Fix this by zero-initialising the rxq data\nstructure before running the XDP program.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncpumap: Zero-initialise xdp_rxq_info struct before running XDP program\n\nWhen running an XDP program that is attached to a cpumap entry, we don't\ninitialise the xdp_rxq_info data structure being used in the xdp_buff\nthat backs the XDP program invocation. Tobias noticed that this leads to\nrandom values being returned as the xdp_md->rx_queue_index value for XDP\nprograms running in a cpumap.\n\nThis means we're basically returning the contents of the uninitialised\nmemory, which is bad. Fix this by zero-initialising the rxq data\nstructure before running the XDP program.","source":"cvelist"},{"lang":"es","text":"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-&gt;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.","source":"nvd"}],"published":"2024-05-17T12:02:10.274Z","modified":"2026-10-15T01:17:40.920Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"git","introduced":"9216477449f33cdbc9c9a99d49f500b7fbb81702","fixed":"5f4e51abfbe6eb444fa91906a5cd083044278297","status":"affected"},{"type":"git","introduced":"9216477449f33cdbc9c9a99d49f500b7fbb81702","fixed":"f0363af9619c77730764f10360e36c6445c12f7b","status":"affected"},{"type":"git","introduced":"9216477449f33cdbc9c9a99d49f500b7fbb81702","fixed":"3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95","status":"affected"},{"type":"git","introduced":"9216477449f33cdbc9c9a99d49f500b7fbb81702","fixed":"f562e4c4aab00986dde3093c4be919c3f2b85a4a","status":"affected"},{"type":"git","introduced":"9216477449f33cdbc9c9a99d49f500b7fbb81702","fixed":"eaa7cb836659ced2d9f814ac32aa3ec193803ed6","status":"affected"},{"type":"git","introduced":"9216477449f33cdbc9c9a99d49f500b7fbb81702","fixed":"2487007aa3b9fafbd2cb14068f49791ce1d7ede5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.9","status":"unaffected"},{"type":"semver","introduced":"5.10.213","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.152","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.82","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.22","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.10","lastAffected":"6.7.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.8","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"9216477449f3","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"5.9","status":"affected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:a:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"0","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:a:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"5.10.213","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"5.15.152","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"6.1.82","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"6.6.22","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"6.7.10","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:a:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"6.8","status":"unaffected"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:a:linux:linux_kernel:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.9","fixed":"5.10.213"},{"status":"affected","introduced":"5.11","fixed":"5.15.152"},{"status":"affected","introduced":"5.16","fixed":"6.1.82"},{"status":"affected","introduced":"6.2","fixed":"6.6.22"},{"status":"affected","introduced":"6.7","fixed":"6.7.10"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5f4e51abfbe6eb444fa91906a5cd083044278297","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0363af9619c77730764f10360e36c6445c12f7b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3420b3ff1ff489c177ea1cb7bd9fbbc4e9a0be95","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f562e4c4aab00986dde3093c4be919c3f2b85a4a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eaa7cb836659ced2d9f814ac32aa3ec193803ed6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2487007aa3b9fafbd2cb14068f49791ce1d7ede5","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-17T16:29:06.840Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-27431","url":"https://www.cve.org/CVERecord?id=CVE-2024-27431","licence":"CVE Terms of Use","modified":"2026-10-15T00:40:19.620Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-27431","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27431","licence":"Public domain","modified":"2026-10-15T01:17:40.920Z"}],"updatedAt":"2026-11-25T22:58:40.502Z","epss":{"score":0.00232,"percentile":0.15099,"date":"2026-12-01T12:00:22.000Z"}}