CVE-2024-56664: bpf, sockmap: Fix race between element replace and close()
bpf, sockmap: Fix race between element replace and close()
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch bpf, sockmap: Fix race between element replace and close() - Configuration
Apply the kernel code fix described in the report: in __sock_map_delete(), do not unref sock map elements that may have been replaced (avoid unconditionally unrefing the wrong element when element replacement races with socket close/link popping & unlinking).
Linux kernel BPF sockmap Fix __sock_map_delete() behavior = Do not allow sock_map_unref() on elements that may have been replaced; avoid unconditionally unrefing the wrong element during element replace/close race
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56664?
CVE-2024-56664 has been classified with a severity rating that indicates it presents potential risks depending on the system configuration and usage.
How do I fix CVE-2024-56664?
To mitigate CVE-2024-56664, it is recommended to update the Linux kernel to a version that includes the fix for this vulnerability.
What systems are affected by CVE-2024-56664?
CVE-2024-56664 affects multiple versions of the Linux kernel, specifically those ranging from 4.20 to 6.12.6 and the release candidates 6.13-rc1 and 6.13-rc2.
What type of vulnerability is CVE-2024-56664?
CVE-2024-56664 is a race condition vulnerability in the bpf and sockmap components of the Linux kernel.
What are the potential consequences of CVE-2024-56664?
Exploitation of CVE-2024-56664 could allow for unexpected behavior in socket operations, possibly leading to denial of service conditions.