Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-40909

published high CVSS 3.1 · 7.8

bpf: Fix a potential use-after-free in bpf_link_free()

Published
12 Jul 2024, 12:20:48 UTC
Updated
30 Oct 2026, 12:18:36 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxac48dc6ac9240f73bf08d29edf65c2deca93ee5d to < e8ccda39b395169622855607085cdeef4d376e0f · 876941f533e7b47fc69977fc4551c02f2d18af97 to < 91cff53136daeff50816b0baeafd38a6976f6209 · 1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce to < fa97b8fed9896f1e89cb657513e483a152d4c382 · 1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce to < 2884dc7d08d98a89d8d65121524bb7533183a63a · 5d8d447777564b35f67000e7838e7ccb64d525c8 · 6.6.26 to < 6.6.35 · 6.8.5 to < 6.9 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.6.35 through 6.6.* (unaffected · semver) · 6.9.6 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-15-SP5 cluster-md-kmp-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 dlm-kmp-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 gfs2-kmp-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-64kbaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-64kb-develaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-azureaarch64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-azurex86_64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-azure-develaarch64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-azure-develx86_64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-baseaarch64 Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-baseppc64le Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-basex86_64 Advisory build 5.14.21-150500.55.73.1.150500.6.33.8 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-devels390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-develx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-extrax86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatchppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatchs390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatchx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatch-develppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatch-devels390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-default-livepatch-develx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-develnoarch Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-devel-azurenoarch Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-devel-rtnoarch Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-docsnoarch Advisory build 5.14.21-150500.55.73.2 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_58-rtx86_64 Advisory build 3-150500.11.6.1 SUSE-SU-2024:3319-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_58-rtx86_64 Advisory build 4-150500.11.6.1 SUSE-SU-2024:3636-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_58-rtx86_64 Advisory build 5-150500.11.6.1 SUSE-SU-2024:3833-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_58-rtx86_64 Advisory build 6-150500.11.6.1 SUSE-SU-2024:4127-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_61-rtx86_64 Advisory build 2-150500.11.6.1 SUSE-SU-2024:3627-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_61-rtx86_64 Advisory build 3-150500.11.6.1 SUSE-SU-2024:3856-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_61-rtx86_64 Advisory build 4-150500.11.6.1 SUSE-SU-2024:4128-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_13_64-rtx86_64 Advisory build 1-150500.11.3.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultppc64le Advisory build 3-150500.11.6.2 SUSE-SU-2024:3350-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultppc64le Advisory build 4-150500.11.6.1 SUSE-SU-2024:3702-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultppc64le Advisory build 5-150500.11.6.1 SUSE-SU-2024:3840-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultppc64le Advisory build 6-150500.11.6.1 SUSE-SU-2024:4228-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultppc64le Advisory build 7-150500.11.6.1 SUSE-SU-2025:0138-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultppc64le Advisory build 8-150500.11.6.1 SUSE-SU-2025:0260-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaults390x Advisory build 3-150500.11.6.2 SUSE-SU-2024:3350-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaults390x Advisory build 4-150500.11.6.1 SUSE-SU-2024:3702-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaults390x Advisory build 5-150500.11.6.1 SUSE-SU-2024:3840-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaults390x Advisory build 6-150500.11.6.1 SUSE-SU-2024:4228-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaults390x Advisory build 7-150500.11.6.1 SUSE-SU-2025:0138-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaults390x Advisory build 8-150500.11.6.1 SUSE-SU-2025:0260-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultx86_64 Advisory build 3-150500.11.6.2 SUSE-SU-2024:3350-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultx86_64 Advisory build 4-150500.11.6.1 SUSE-SU-2024:3702-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultx86_64 Advisory build 5-150500.11.6.1 SUSE-SU-2024:3840-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultx86_64 Advisory build 6-150500.11.6.1 SUSE-SU-2024:4228-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultx86_64 Advisory build 7-150500.11.6.1 SUSE-SU-2025:0138-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_68-defaultx86_64 Advisory build 8-150500.11.6.1 SUSE-SU-2025:0260-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_73-defaultppc64le Advisory build 1-150500.11.3.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_73-defaults390x Advisory build 1-150500.11.3.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-livepatch-5_14_21-150500_55_73-defaultx86_64 Advisory build 1-150500.11.3.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-macrosnoarch Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-obs-buildaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-obs-buildppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-obs-builds390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-obs-buildx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-rt-develx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-rt-vdsox86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-rt_debugx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-rt_debug-develx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-rt_debug-vdsox86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-sourcenoarch Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-source-azurenoarch Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-source-rtnoarch Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-symsaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-symsppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-symss390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-symsx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 kernel-syms-azureaarch64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-syms-azurex86_64 Advisory build 5.14.21-150500.33.63.1 SUSE-SU-2024:2947-1
SUSE / openSUSE SLE-15-SP5 kernel-syms-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 kernel-zfcpdumps390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 ocfs2-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 ocfs2-kmp-defaultppc64le Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 ocfs2-kmp-defaults390x Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 ocfs2-kmp-defaultx86_64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1
SUSE / openSUSE SLE-15-SP5 ocfs2-kmp-rtx86_64 Advisory build 5.14.21-150500.13.64.1 SUSE-SU-2024:2894-1
SUSE / openSUSE SLE-15-SP5 reiserfs-kmp-defaultaarch64 Advisory build 5.14.21-150500.55.73.1 SUSE-SU-2024:2939-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

55

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached exclusively through the local `bpf()` syscall — creating a raw_tracepoint/kprobe_multi/uprobe_multi link and then closing its file descriptor. No network or remote-peer data is involved. AC:L - The attacker drives the free side directly and can repeat the create/close cycle in an unbounded loop across all CPUs while generating scheduling and RCU load to force preemption between `call_rcu()` and the stale `link->ops` read; syzbot triggered it in practice, so the window is reachable without relying on conditions outside attacker influence. PR:L - `bpf_token_capable()` grants BPF/PERFMON at `ns_capable()` level when a BPF token is delegated (kernel/bpf/token.c:17-28), so a process unprivileged in the init namespace inside a container can load these tracing programs and create the affected links; the same path is reachable by ordinary non-root service accounts holding only CAP_BPF+CAP_PERFMON, which is not administrative control of the host. UI:N - The entire sequence — link creation and fd close — is performed by the attacker's own process with no action required from any other user. S:U - The corruption and its consequences are confined to the kernel's own memory and privilege domain; no hypervisor, IOMMU, or other security-authority boundary is crossed. C:H - The use-after-free reads the `ops` pointer out of a freed slab object that the attacker can reallocate and fill via heap spraying, yielding an arbitrary kernel pointer dereference and an arbitrary-read primitive over kernel memory. I:H - After the stale `link->ops` read, the code performs `link->ops->dealloc(link)` — an indirect call through an attacker-controlled function pointer table, giving control-flow hijack and full kernel-integrity compromise. A:H - Even unweaponized, dereferencing and calling through a freed/recycled `ops` pointer produces a wild indirect branch and immediate kernel oops or panic, and the attacker can trigger it repeatedly.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ac48dc6ac9240f73bf08d29edf65c2deca93ee5d to < e8ccda39b395169622855607085cdeef4d376e0f (affected · git)876941f533e7b47fc69977fc4551c02f2d18af97 to < 91cff53136daeff50816b0baeafd38a6976f6209 (affected · git)1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce to < fa97b8fed9896f1e89cb657513e483a152d4c382 (affected · git)1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce to < 2884dc7d08d98a89d8d65121524bb7533183a63a (affected · git)5d8d447777564b35f67000e7838e7ccb64d525c8 (affected · git)6.6.26 to < 6.6.35 (affected · semver)6.8.5 to < 6.9 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.9 (affected)0 to < 6.9 (unaffected · semver)6.6.35 through 6.6.* (unaffected · semver)6.9.6 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

3

Linux · cna

bpf: Fix a potential use-after-free in bpf_link_free()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
1606f581faf8e939fedf94c3f42fd36d08cefa68093eafa16b84a2db140779c4
Ingested
30 Oct 2026, 12:31:36 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected