CVE-2024-40909 - CVE House
Back to Database
Status published Unknown CVE-2024-40909

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

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-40909

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
876941f533e7b47fc69977fc4551c02f2d18af97, 1a80dbcb2dbaf6e4c216e62e30fa7d3daa8001ce, 5d8d447777564b35f67000e7838e7ccb64d525c8, 6.6.26, 6.8.5, 6.9, 0, 6.6.35, 6.9.6, 6.10

Timeline

Official Publish: July 12th, 2024
Last Modified: May 23rd, 2026
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.