What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.6.33, 6.8.12, 6.9.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-38566 or the next vulnerability affects your stack