CVE-2024-40909

Source
https://cve.org/CVERecord?id=CVE-2024-40909
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40909.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-40909
Downstream
BELL (1)
DEBIAN (1)
openSUSE (1)
SUSE (39)
UBUNTU (1)
Related
Published
2024-07-12T12:20:48Z
Modified
2026-10-08T02:48:31Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
bpf: Fix a potential use-after-free in bpf_link_free()
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40909.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
876941f533e7b47fc69977fc4551c02f2d18af97
Fixed
91cff53136daeff50816b0baeafd38a6976f6209
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce
Fixed
fa97b8fed9896f1e89cb657513e483a152d4c382
Fixed
2884dc7d08d98a89d8d65121524bb7533183a63a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.6.26
Fixed
6.6.35
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.8.5
Fixed
6.9
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5d8d447777564b35f67000e7838e7ccb64d525c8

Affected versions

v6.*
v6.6.26
v6.6.27
v6.6.28
v6.6.29
v6.6.30
v6.6.31
v6.6.32
v6.6.33
v6.6.34
v6.8.10
v6.8.11
v6.8.12
v6.8.5
v6.8.6
v6.8.7
v6.8.8
v6.8.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40909.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
6.6.35
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.9.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40909.json"