CVE-2024-56694: bpf: fix recursive lock when verdict program return SK_PASS
In the Linux kernel, the following vulnerability has been resolved:
bpf: fix recursive lock when verdict program return SKPASS
When the streamverdict program returns SKPASS, it places the received skb into its own receive queue, but a recursive lock eventually occurs, leading to an operating system deadlock. This issue has been present since v6.9.
''' skpsockstrpdataready writelockbh(&sk->skcallbacklock) strpdataready strpreadsock readsock -> tcpreadsock strprecv cb.rcvmsg -> skpsockstrpread # now streamverdict return SKPASS without peer sock assign SKPASS = skpsockmapverd(SKPASS, NULL) skpsockverdictapply skpsockskbingressself skpsockskbingressenqueue skpsockdataready readlockbh(&sk->skcallbacklock) <= dead lock
'''
This topic has been discussed before, but it has not been fixed. Previous discussion: https://lore.kernel.org/all/6684a5864ec86403d20898@john.notmuch
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 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-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
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56694?
CVE-2024-56694 has a severity rating that indicates it can cause significant issues related to recursive locking in the Linux kernel.
How do I fix CVE-2024-56694?
To address CVE-2024-56694, users should update their Linux kernel to a version that is not affected, specifically versions beyond those listed in the vulnerability description.
What versions of the Linux kernel are impacted by CVE-2024-56694?
CVE-2024-56694 affects multiple versions of the Linux kernel, including versions from 5.10.223 to 5.11, 5.15.159 to 5.15.174, 6.1.91 to 6.1.120, 6.6.31 to 6.6.64, 6.8.10 to 6.11.11, and other versions up to 6.12.
What type of vulnerability is CVE-2024-56694?
CVE-2024-56694 is identified as a bug within the BPF (Berkeley Packet Filter) related to recursive locking during packet handling.
Does CVE-2024-56694 affect any specific distributions of Linux?
Yes, CVE-2024-56694 can potentially affect any Linux distribution that utilizes the affected versions of the Linux kernel mentioned in the vulnerability report.