CVE-2024-40909

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix a potential use-after-free in bpf_link_free() After commit 1a80dbcb2dba, bpf_link can be freed by link->ops->dealloc_deferred, but the code still tests and uses link->ops->dealloc afterward, which leads to a use-after-free as reported by syzbot. Actually, one of them should be sufficient, so just call one of them instead of both. Also add a WARN_ON() in case of any problematic implementation.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:*

History

29 Aug 2024, 13:55

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
First Time Linux linux Kernel
Linux
CWE CWE-416
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:*
Summary
  • (es) 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->ops->dealloc_deferred, pero el código aún prueba y usa link->ops->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.
References () https://git.kernel.org/stable/c/2884dc7d08d98a89d8d65121524bb7533183a63a - () https://git.kernel.org/stable/c/2884dc7d08d98a89d8d65121524bb7533183a63a - Patch
References () https://git.kernel.org/stable/c/91cff53136daeff50816b0baeafd38a6976f6209 - () https://git.kernel.org/stable/c/91cff53136daeff50816b0baeafd38a6976f6209 - Patch
References () https://git.kernel.org/stable/c/fa97b8fed9896f1e89cb657513e483a152d4c382 - () https://git.kernel.org/stable/c/fa97b8fed9896f1e89cb657513e483a152d4c382 - Patch

12 Jul 2024, 13:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-07-12 13:15

Updated : 2024-08-29 13:55


NVD link : CVE-2024-40909

Mitre link : CVE-2024-40909

CVE.ORG link : CVE-2024-40909


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free