CWE
667
Advisory Published
Updated

CVE-2024-56694: bpf: fix recursive lock when verdict program return SK_PASS

First published: Sat Dec 28 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: bpf: fix recursive lock when verdict program return SK_PASS When the stream_verdict program returns SK_PASS, 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. ''' sk_psock_strp_data_ready write_lock_bh(&sk->sk_callback_lock) strp_data_ready strp_read_sock read_sock -> tcp_read_sock strp_recv cb.rcv_msg -> sk_psock_strp_read # now stream_verdict return SK_PASS without peer sock assign __SK_PASS = sk_psock_map_verd(SK_PASS, NULL) sk_psock_verdict_apply sk_psock_skb_ingress_self sk_psock_skb_ingress_enqueue sk_psock_data_ready read_lock_bh(&sk->sk_callback_lock) <= dead lock ''' This topic has been discussed before, but it has not been fixed. Previous discussion: https://lore.kernel.org/all/6684a5864ec86_403d20898@john.notmuch

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=5.10.223<5.11
Linux Kernel>=5.15.159<5.15.174
Linux Kernel>=6.1.91<6.1.120
Linux Kernel>=6.6.31<6.6.64
Linux Kernel>=6.8.10<6.11.11
Linux Kernel>=6.12<6.12.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203