Skip to main content
Network Thinking Solutions Logo

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.

All CVEs
CVE-2024-40909Published 7/12/2024

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.

Vendor advisory
CVSS7.8High

Overview

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.

Published
7/12/2024
Last modified
10/30/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 6.6.26, < 6.6.35

Verify advisory

Source
linux kernel
linux
≥ 6.9, < 6.9.6

Verify advisory

Source
linux kernel
linux
6.10

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ ac48dc6ac9240f73bf08d29edf65c2deca93ee5d, < e8ccda39b395169622855607085cdeef4d376e0f

Verify advisory

Source
Linux
Linux
≥ 876941f533e7b47fc69977fc4551c02f2d18af97, < 91cff53136daeff50816b0baeafd38a6976f6209

Verify advisory

Source
Linux
Linux
≥ 1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce, < fa97b8fed9896f1e89cb657513e483a152d4c382

Verify advisory

Source
Linux
Linux
≥ 1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce, < 2884dc7d08d98a89d8d65121524bb7533183a63a

Verify advisory

Source
Linux
Linux
5d8d447777564b35f67000e7838e7ccb64d525c8

Verify advisory

Source
Linux
Linux
≥ 6.6.26, < 6.6.35

Verify advisory

Source
Linux
Linux
≥ 6.8.5, < 6.9

Verify advisory

Source
Linux
Linux
6.9

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.