{"id":"CVE-2024-38566","summary":"bpf: Fix verifier assumptions about socket-\u003esk","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix verifier assumptions about socket-\u003esk\n\nThe verifier assumes that 'sk' field in 'struct socket' is valid\nand non-NULL when 'socket' pointer itself is trusted and non-NULL.\nThat may not be the case when socket was just created and\npassed to LSM socket_accept hook.\nFix this verifier assumption and adjust tests.","modified":"2026-05-28T03:54:19.598750272Z","published":"2024-06-19T13:35:33.587Z","related":["SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38566.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0db63c0b86e981a1e97d2596d64ceceba1a5470e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39f8a29330f433000e716eefc4b9abda05b71a82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6f5ae91172a93abac9720ba94edf3ec8f4d7f24f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c58ccdd2483a1d990748cdaf94206b5d5986a001"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38566.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38566"},{"type":"PACKAGE","url":"https://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":"6fcd486b3a0a628c41f12b3a7329a18a2c74b351"},{"fixed":"39f8a29330f433000e716eefc4b9abda05b71a82"},{"fixed":"6f5ae91172a93abac9720ba94edf3ec8f4d7f24f"},{"fixed":"c58ccdd2483a1d990748cdaf94206b5d5986a001"},{"fixed":"0db63c0b86e981a1e97d2596d64ceceba1a5470e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38566.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.4.0"},{"fixed":"6.6.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.8.12"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.9.0"},{"fixed":"6.9.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38566.json"}}],"schema_version":"1.7.5"}