{"id":"CVE-2024-40909","aliases":["CVE-2024-40909"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Fix a potential use-after-free in bpf_link_free()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix a potential use-after-free in bpf_link_free()\n\nAfter commit 1a80dbcb2dba, bpf_link can be freed by\nlink->ops->dealloc_deferred, but the code still tests and uses\nlink->ops->dealloc afterward, which leads to a use-after-free as\nreported by syzbot. Actually, one of them should be sufficient, so\njust call one of them instead of both. Also add a WARN_ON() in case\nof any problematic implementation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix a potential use-after-free in bpf_link_free()\n\nAfter commit 1a80dbcb2dba, bpf_link can be freed by\nlink->ops->dealloc_deferred, but the code still tests and uses\nlink->ops->dealloc afterward, which leads to a use-after-free as\nreported by syzbot. Actually, one of them should be sufficient, so\njust call one of them instead of both. Also add a WARN_ON() in case\nof any problematic implementation.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: bpf: corrige un posible use-after-free en bpf_link_free() Después del commit 1a80dbcb2dba, bpf_link se puede liberar mediante link-&gt;ops-&gt;dealloc_deferred, pero el código aún prueba y usa link-&gt;ops-&gt;dealloc después, lo que conduce a un use-after-free según lo informado por syzbot. En realidad, uno de ellos debería ser suficiente, así que llame a uno de ellos en lugar de a ambos. También agregue WARN_ON() en caso de cualquier implementación problemática.","source":"nvd"}],"published":"2024-07-12T12:20:48.447Z","modified":"2026-10-30T13:17:29.717Z","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-416"],"affected":[{"ranges":[{"type":"git","introduced":"ac48dc6ac9240f73bf08d29edf65c2deca93ee5d","fixed":"e8ccda39b395169622855607085cdeef4d376e0f","status":"affected"},{"type":"git","introduced":"876941f533e7b47fc69977fc4551c02f2d18af97","fixed":"91cff53136daeff50816b0baeafd38a6976f6209","status":"affected"},{"type":"git","introduced":"1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce","fixed":"fa97b8fed9896f1e89cb657513e483a152d4c382","status":"affected"},{"type":"git","introduced":"1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce","fixed":"2884dc7d08d98a89d8d65121524bb7533183a63a","status":"affected"},{"type":"git","version":"5d8d447777564b35f67000e7838e7ccb64d525c8","status":"affected"},{"type":"semver","introduced":"6.6.26","fixed":"6.6.35","status":"affected"},{"type":"semver","introduced":"6.8.5","fixed":"6.9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.6.35","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.6","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","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":"6.6.26","fixed":"6.6.35"},{"status":"affected","introduced":"6.9","fixed":"6.9.6"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e8ccda39b395169622855607085cdeef4d376e0f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/91cff53136daeff50816b0baeafd38a6976f6209","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fa97b8fed9896f1e89cb657513e483a152d4c382","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2884dc7d08d98a89d8d65121524bb7533183a63a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:06:09.099Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-40909","url":"https://www.cve.org/CVERecord?id=CVE-2024-40909","licence":"CVE Terms of Use","modified":"2026-10-30T12:18:36.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-40909","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40909","licence":"Public domain","modified":"2026-10-30T13:17:29.717Z"}],"updatedAt":"2026-11-25T22:58:42.832Z","epss":{"score":0.00279,"percentile":0.21777,"date":"2026-12-01T12:00:22.000Z"}}