CVE-2024-40909CWE-416

CVE-2024-40909

High · published July 12, 2024

CVSS v3.1
7.8
EPSS
0%
Percentile
19.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00278 · 19.1th percentile
Weakness
CWE-416 · Use After Free
Published
2024-07-12T17:15Z
Affected products (4)
ProductVersionsFixed in
linux/linux_kernel≥ 6.6.26, < 6.6.356.6.35
linux/linux_kernel≥ 6.9, < 6.9.66.9.6
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (6)
EPSS history
Timeline
  • 12 JUL 12:20Z
    bpf: Fix a potential use-after-free in bpf_link_free()
    cvelistv5