Skip to main content
← All vulnerabilities
CVE-2024-56694

bpf: fix recursive lock when verdict program return SK_PASS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.10.233, 5.15.174, 6.1.120, 6.6.64, 6.9
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 5.10.223 · fixed in 5.10.233; From 5.15.159 · fixed in 5.15.174; From 6.1.91 · fixed in 6.1.120; From 6.6.31 · fixed in 6.6.64; From 6.8.10 · fixed in 6.9

  • Linux Linux

    6.9

References 7

git.kernel.org