{"id":"CVE-2024-35905","aliases":["CVE-2024-35905"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Protect against int overflow for stack access size","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Protect against int overflow for stack access size\n\nThis patch re-introduces protection against the size of access to stack\nmemory being negative; the access size can appear negative as a result\nof overflowing its signed int representation. This should not actually\nhappen, as there are other protections along the way, but we should\nprotect against it anyway. One code path was missing such protections\n(fixed in the previous patch in the series), causing out-of-bounds array\naccesses in check_stack_range_initialized(). This patch causes the\nverification of a program with such a non-sensical access size to fail.\n\nThis check used to exist in a more indirect way, but was inadvertendly\nremoved in a833a17aeac7.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Protect against int overflow for stack access size\n\nThis patch re-introduces protection against the size of access to stack\nmemory being negative; the access size can appear negative as a result\nof overflowing its signed int representation. This should not actually\nhappen, as there are other protections along the way, but we should\nprotect against it anyway. One code path was missing such protections\n(fixed in the previous patch in the series), causing out-of-bounds array\naccesses in check_stack_range_initialized(). This patch causes the\nverification of a program with such a non-sensical access size to fail.\n\nThis check used to exist in a more indirect way, but was inadvertendly\nremoved in a833a17aeac7.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bpf: Protección contra desbordamiento int para el tamaño de acceso a la pila. Este parche reintroduce la protección contra que el tamaño de acceso a la memoria de la pila sea negativo; el tamaño de acceso puede parecer negativo como resultado de desbordar su representación int firmada. En realidad, esto no debería suceder, ya que existen otras protecciones en el camino, pero debemos protegernos contra ello de todos modos. A una ruta de código le faltaban dichas protecciones (corregidas en el parche anterior de la serie), lo que provocaba accesos a matrices fuera de los límites en check_stack_range_initialized(). Este parche hace que falle la verificación de un programa con un tamaño de acceso tan absurdo. Esta verificación solía existir de una manera más indirecta, pero se eliminó inadvertidamente en a833a17aeac7.","source":"nvd"}],"published":"2024-05-19T08:34:58.347Z","modified":"2026-10-15T01:17:52.303Z","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":"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-129","CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"afea95d319ccb4ad2060dece9ac5e2e364dec543","fixed":"9970e059af471478455f9534e8c3db82f8c5496d","status":"affected"},{"type":"git","introduced":"02962684258eb53f414a8a59854767be526e6abb","fixed":"37dc1718dc0c4392dbfcb9adec22a776e745dd69","status":"affected"},{"type":"git","introduced":"b1d4d54d32ce6342f5faffe71bae736540ce7cb5","fixed":"98cdac206b112bec63852e94802791e316acc2c1","status":"affected"},{"type":"git","introduced":"08b91babccbb168353f8d43fea0ed28a4cad568c","fixed":"3f0784b2f1eb9147973d8c43ba085c5fdf44ff69","status":"affected"},{"type":"git","introduced":"a833a17aeac73b33f79433d7cee68d5cafd71e4f","fixed":"203a68151e8eeb331d4a64ab78303f3a15faf103","status":"affected"},{"type":"git","introduced":"a833a17aeac73b33f79433d7cee68d5cafd71e4f","fixed":"ecc6a2101840177e57c925c102d2d29f260d37c8","status":"affected"},{"type":"git","version":"1858b8a331937f3976d8482cd5f6e1f945294ad3","status":"affected"},{"type":"semver","introduced":"5.10.209","fixed":"5.10.215","status":"affected"},{"type":"semver","introduced":"5.15.148","fixed":"5.15.154","status":"affected"},{"type":"semver","introduced":"6.1.75","fixed":"6.1.85","status":"affected"},{"type":"semver","introduced":"6.6.14","fixed":"6.6.26","status":"affected"},{"type":"semver","introduced":"6.7.2","fixed":"6.8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.8","status":"unaffected"},{"type":"semver","introduced":"5.10.215","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.154","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.85","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.26","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.5","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":"5.10.209","fixed":"5.10.215"},{"status":"affected","introduced":"5.15.148","fixed":"5.15.154"},{"status":"affected","introduced":"6.1.75","fixed":"6.1.85"},{"status":"affected","introduced":"6.6.14","fixed":"6.6.26"},{"status":"affected","introduced":"6.7.2","fixed":"6.8.5"},{"status":"affected","version":"6.9"}],"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/9970e059af471478455f9534e8c3db82f8c5496d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/37dc1718dc0c4392dbfcb9adec22a776e745dd69","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98cdac206b112bec63852e94802791e316acc2c1","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f0784b2f1eb9147973d8c43ba085c5fdf44ff69","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/203a68151e8eeb331d4a64ab78303f3a15faf103","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ecc6a2101840177e57c925c102d2d29f260d37c8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["mailing-list","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-21T15:34:20.280Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35905","url":"https://www.cve.org/CVERecord?id=CVE-2024-35905","licence":"CVE Terms of Use","modified":"2026-10-15T00:41:21.914Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35905","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35905","licence":"Public domain","modified":"2026-10-15T01:17:52.303Z"}],"updatedAt":"2026-11-25T22:58:40.594Z","epss":{"score":0.00225,"percentile":0.14082,"date":"2026-12-01T12:00:22.000Z"}}