5.5medium
bpf: Fix verifier assumptions about socket->sk
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.31% (higher than 16% of CVEs)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 6.4 before 6.6.33, from 6.7 before 6.8.12, from 6.9 before 6.9.3 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: bpf: corrige las suposiciones del verificador sobre socket->sk. El verificador asume que el campo 'sk' en 'struct socket' es válido y no NULL cuando el puntero 'socket' en sí es confiable y no NULL. Puede que ese no sea el caso cuando el socket se acaba de crear y se pasó al gancho LSM socket_accept. Corrija esta suposición del verificador y ajuste las pruebas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38566 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-38566 changed 2026-06-17 | Public domain |