{"id":"CVE-2024-26884","aliases":["CVE-2024-26884"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Fix hashtab overflow check on 32-bit arches","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix hashtab overflow check on 32-bit arches\n\nThe hashtab code relies on roundup_pow_of_two() to compute the number of\nhash buckets, and contains an overflow check by checking if the\nresulting value is 0. However, on 32-bit arches, the roundup code itself\ncan overflow by doing a 32-bit left-shift of an unsigned long value,\nwhich is undefined behaviour, so it is not guaranteed to truncate\nneatly. This was triggered by syzbot on the DEVMAP_HASH type, which\ncontains the same check, copied from the hashtab code. So apply the same\nfix to hashtab, by moving the overflow check to before the roundup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix hashtab overflow check on 32-bit arches\n\nThe hashtab code relies on roundup_pow_of_two() to compute the number of\nhash buckets, and contains an overflow check by checking if the\nresulting value is 0. However, on 32-bit arches, the roundup code itself\ncan overflow by doing a 32-bit left-shift of an unsigned long value,\nwhich is undefined behaviour, so it is not guaranteed to truncate\nneatly. This was triggered by syzbot on the DEVMAP_HASH type, which\ncontains the same check, copied from the hashtab code. So apply the same\nfix to hashtab, by moving the overflow check to before the roundup.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: corrige la comprobación de desbordamiento de hashtab en arcos de 32 bits. El código hashtab se basa en roundup_pow_of_two() para calcular el número de depósitos de hash y contiene una comprobación de desbordamiento comprobando si el valor resultante es 0. Sin embargo, en arcos de 32 bits, el código de resumen en sí puede desbordarse al realizar un desplazamiento hacia la izquierda de 32 bits de un valor largo sin signo, lo cual es un comportamiento indefinido, por lo que no se garantiza que se trunque claramente. Esto fue activado por syzbot en el tipo DEVMAP_HASH, que contiene la misma verificación, copiada del código hashtab. Así que aplique la misma solución a hashtab, moviendo la verificación de desbordamiento antes del resumen.","source":"nvd"}],"published":"2024-04-17T10:27:39.672Z","modified":"2026-10-15T01:17:28.903Z","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:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","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"}],"cwes":["CWE-119","CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"33ec04cadb77605b71d9298311919303d390c4d5","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"92c81fbb3ed2e0dfc33a4183a67135e1ab566ace","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"64f00b4df0597590b199b62a37a165473bf658a6","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"3b08cfc65f07b1132c1979d73f014ae6e04de55d","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"a83fdaeaea3677b83a53f72ace2d73a19bcd6d93","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"8435f0961bf3dc65e204094349bd9aeaac1f8868","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"d817f0d34d927f2deb17dadbfe212c9a6a32ac3e","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"a6fa75b5096c0f9826a4fabe22d907b0a5bb1016","status":"affected"},{"type":"git","introduced":"daaf427c6ab392bedcd018e326b2ffa1e1110cd6","fixed":"6787d916c2cf9850c97a0a3f73e08c43e7d973b1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.19","status":"unaffected"},{"type":"semver","introduced":"4.19.311","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.273","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.214","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.153","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.83","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.23","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.11","lastAffected":"6.7.*","status":"unaffected"},{"type":"semver","introduced":"6.8.2","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.19","fixed":"4.19.311"},{"status":"affected","introduced":"4.20","fixed":"5.4.273"},{"status":"affected","introduced":"5.5","fixed":"5.10.214"},{"status":"affected","introduced":"5.11","fixed":"5.15.153"},{"status":"affected","introduced":"5.16","fixed":"6.1.83"},{"status":"affected","introduced":"6.2","fixed":"6.6.23"},{"status":"affected","introduced":"6.7","fixed":"6.7.11"},{"status":"affected","introduced":"6.8","fixed":"6.8.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/33ec04cadb77605b71d9298311919303d390c4d5","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92c81fbb3ed2e0dfc33a4183a67135e1ab566ace","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64f00b4df0597590b199b62a37a165473bf658a6","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b08cfc65f07b1132c1979d73f014ae6e04de55d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a83fdaeaea3677b83a53f72ace2d73a19bcd6d93","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8435f0961bf3dc65e204094349bd9aeaac1f8868","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d817f0d34d927f2deb17dadbfe212c9a6a32ac3e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a6fa75b5096c0f9826a4fabe22d907b0a5bb1016","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6787d916c2cf9850c97a0a3f73e08c43e7d973b1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["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":"total","date":"2024-10-30T19:28:25.440Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26884","url":"https://www.cve.org/CVERecord?id=CVE-2024-26884","licence":"CVE Terms of Use","modified":"2026-10-15T00:39:06.476Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26884","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26884","licence":"Public domain","modified":"2026-10-15T01:17:28.903Z"}],"updatedAt":"2026-11-25T22:58:39.378Z","epss":{"score":0.00251,"percentile":0.17603,"date":"2026-12-01T12:00:22.000Z"}}