# CVE-2024-38566: bpf: Fix verifier assumptions about socket->sk

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 16% of CVEs (2026-11-30)
- Published: 2024-06-19T13:35:33.587Z
- Modified: 2026-06-17T07:40:35.703Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

bpf: Fix verifier assumptions about socket->sk

The verifier assumes that 'sk' field in 'struct socket' is valid
and non-NULL when 'socket' pointer itself is trusted and non-NULL.
That may not be the case when socket was just created and
passed to LSM socket_accept hook.
Fix this verifier assumption and adjust tests.

(As written by CVE List.)

## Affected

- Linux Linux: from 6fcd486b3a0a628c41f12b3a7329a18a2c74b351 before 39f8a29330f433000e716eefc4b9abda05b71a82; from 6fcd486b3a0a628c41f12b3a7329a18a2c74b351 before 6f5ae91172a93abac9720ba94edf3ec8f4d7f24f; from 6fcd486b3a0a628c41f12b3a7329a18a2c74b351 before c58ccdd2483a1d990748cdaf94206b5d5986a001; from 6fcd486b3a0a628c41f12b3a7329a18a2c74b351 before 0db63c0b86e981a1e97d2596d64ceceba1a5470e; 6.4 (not affected: before 6.4; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.4 before 6.6.33; from 6.7 before 6.8.12; from 6.9 before 6.9.3

## References

- <https://git.kernel.org/stable/c/39f8a29330f433000e716eefc4b9abda05b71a82> (patch)
- <https://git.kernel.org/stable/c/6f5ae91172a93abac9720ba94edf3ec8f4d7f24f> (patch)
- <https://git.kernel.org/stable/c/c58ccdd2483a1d990748cdaf94206b5d5986a001> (patch)
- <https://git.kernel.org/stable/c/0db63c0b86e981a1e97d2596d64ceceba1a5470e> (patch)

## Sources

- CVE List: [CVE-2024-38566](https://www.cve.org/CVERecord?id=CVE-2024-38566), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-38566](https://nvd.nist.gov/vuln/detail/CVE-2024-38566), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-38566 · Whole record: https://cve.day/CVE-2024-38566.json · Rebuilt by cve.day 2026-11-25T22:58:42.018Z
