# CVE-2024-56694: bpf: fix recursive lock when verdict program return SK\_PASS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.71% (percentile 50, 2026-11-28)
- **CWE:** CWE-667
- **Published:** 2024-12-28T09:46:18.826Z
- **Modified:** 2026-08-05T11:46:08.180Z

## Who should check

- Anyone running Linux \>= c0809c128dad4c3413818384eb06a341633db973, \< 221109ba2127eabd0aa64718543638b58b15df56; \>= 5965bc7535fb87510b724e5465ccc1a1cf00916d, \< 6694f7acd625ed854bf6342926e771d65dad7f69; \>= 39dc9e1442385d6e9be0b6491ee488dddd55ae27, \< 386efa339e08563dd33e83bc951aea5d407fe578; \>= b397a0ab8582c533ec0c6b732392f141fc364f87, \< da2bc8a0c8f3ac66fdf980fc59936f851a083561; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< 01f1b88acfd79103da0610b45471f6c88ea98d72; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< f84c5ef6ca23cc2f72f3b830d74f67944684bb05; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< 8ca2a1eeadf09862190b2810697702d803ceef2d; 772d5729b5ff0df0d37b32db600ce635b2172f80; \>= 5.10.223, \< 5.10.233; \>= 5.15.159, \< 5.15.174; …
- Anyone running Linux 6.9

## Description

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

## Affected and fixed versions

- Linux: \>= c0809c128dad4c3413818384eb06a341633db973, \< 221109ba2127eabd0aa64718543638b58b15df56; \>= 5965bc7535fb87510b724e5465ccc1a1cf00916d, \< 6694f7acd625ed854bf6342926e771d65dad7f69; \>= 39dc9e1442385d6e9be0b6491ee488dddd55ae27, \< 386efa339e08563dd33e83bc951aea5d407fe578; \>= b397a0ab8582c533ec0c6b732392f141fc364f87, \< da2bc8a0c8f3ac66fdf980fc59936f851a083561; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< 01f1b88acfd79103da0610b45471f6c88ea98d72; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< f84c5ef6ca23cc2f72f3b830d74f67944684bb05; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< 8ca2a1eeadf09862190b2810697702d803ceef2d; 772d5729b5ff0df0d37b32db600ce635b2172f80; \>= 5.10.223, \< 5.10.233; \>= 5.15.159, \< 5.15.174; … (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56694. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56694.md
Affected: Linux >= c0809c128dad4c3413818384eb06a341633db973, < 221109ba2127eabd0aa64718543638b58b15df56; >= 5965bc7535fb87510b724e5465ccc1a1cf00916d, < 6694f7acd625ed854bf6342926e771d65dad7f69; >= 39dc9e1442385d6e9be0b6491ee488dddd55ae27, < 386efa339e08563dd33e83bc951aea5d407fe578; >= b397a0ab8582c533ec0c6b7…
Fixed in: Linux 221109ba2127eabd0aa64718543638b58b15df56, Linux 6694f7acd625ed854bf6342926e771d65dad7f69, Linux 386efa339e08563dd33e83bc951aea5d407fe578, Linux 01f1b88acfd79103da0610b45471f6c88ea98d72, Linux 8ca2a1eeadf09862190b2810697702d803ceef2d, Linux 5.10.233, Linux 5.15.174

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56694 being exploited?

There is no confirmed exploitation: CVE-2024-56694 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.71% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-56694?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-56694?

Linux \>= c0809c128dad4c3413818384eb06a341633db973, \< 221109ba2127eabd0aa64718543638b58b15df56; \>= 5965bc7535fb87510b724e5465ccc1a1cf00916d, \< 6694f7acd625ed854bf6342926e771d65dad7f69; \>= 39dc9e1442385d6e9be0b6491ee488dddd55ae27, \< 386efa339e08563dd33e83bc951aea5d407fe578; \>= b397a0ab8582c533ec0c6b732392f141fc364f87, \< da2bc8a0c8f3ac66fdf980fc59936f851a083561; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< 01f1b88acfd79103da0610b45471f6c88ea98d72; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< f84c5ef6ca23cc2f72f3b830d74f67944684bb05; \>= 6648e613226e18897231ab5e42ffc29e63fa3365, \< 8ca2a1eeadf09862190b2810697702d803ceef2d; 772d5729b5ff0df0d37b32db600ce635b2172f80; \>= 5.10.223, \< 5.10.233; \>= 5.15.159, \< 5.15.174; …; Linux 6.9.

### Is there a fix for CVE-2024-56694?

Yes. Fixed in Linux 221109ba2127eabd0aa64718543638b58b15df56, Linux 6694f7acd625ed854bf6342926e771d65dad7f69, Linux 386efa339e08563dd33e83bc951aea5d407fe578, Linux 01f1b88acfd79103da0610b45471f6c88ea98d72, Linux 8ca2a1eeadf09862190b2810697702d803ceef2d, Linux 5.10.233, Linux 5.15.174. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-56694?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6694f7acd625ed854bf6342926e771d65dad7f69>
- patch: <https://git.kernel.org/stable/c/386efa339e08563dd33e83bc951aea5d407fe578>
- patch: <https://git.kernel.org/stable/c/da2bc8a0c8f3ac66fdf980fc59936f851a083561>
- patch: <https://git.kernel.org/stable/c/01f1b88acfd79103da0610b45471f6c88ea98d72>
- patch: <https://git.kernel.org/stable/c/f84c5ef6ca23cc2f72f3b830d74f67944684bb05>
- patch: <https://git.kernel.org/stable/c/8ca2a1eeadf09862190b2810697702d803ceef2d>
- other: <https://git.kernel.org/stable/c/221109ba2127eabd0aa64718543638b58b15df56>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56694>

HTML: <https://flawdb.com/CVE-2024-56694> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56694>
