CVE-2024-56694

Source
https://cve.org/CVERecord?id=CVE-2024-56694
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56694.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56694
Downstream
Related
Published
2024-12-28T09:46:18.826Z
Modified
2026-03-20T12:40:58.751820Z
Summary
bpf: fix recursive lock when verdict program return SK_PASS
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: fix recursive lock when verdict program return SK_PASS

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/6684a5864ec86_403d20898@john.notmuch

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56694.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c0809c128dad4c3413818384eb06a341633db973
Fixed
221109ba2127eabd0aa64718543638b58b15df56
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5965bc7535fb87510b724e5465ccc1a1cf00916d
Fixed
6694f7acd625ed854bf6342926e771d65dad7f69
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
39dc9e1442385d6e9be0b6491ee488dddd55ae27
Fixed
386efa339e08563dd33e83bc951aea5d407fe578
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b397a0ab8582c533ec0c6b732392f141fc364f87
Fixed
da2bc8a0c8f3ac66fdf980fc59936f851a083561
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6648e613226e18897231ab5e42ffc29e63fa3365
Fixed
01f1b88acfd79103da0610b45471f6c88ea98d72
Fixed
f84c5ef6ca23cc2f72f3b830d74f67944684bb05
Fixed
8ca2a1eeadf09862190b2810697702d803ceef2d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
772d5729b5ff0df0d37b32db600ce635b2172f80

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56694.json"