{"id":"CVE-2026-53074","summary":"bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb\n\nbpf_prog_test_run_skb() calls eth_type_trans() first and then uses\nskb-\u003eprotocol to initialize sk family and address fields for the test\nrun.\n\nFor IPv4 and IPv6 packets, it may access ip_hdr(skb) or ipv6_hdr(skb)\neven when the provided test input only contains an Ethernet header.\n\nReject the input earlier if the Ethernet frame carries IPv4/IPv6\nEtherType but the L3 header is too short.\n\nFold the IPv4/IPv6 header length checks into the existing protocol\nswitch and return -EINVAL before accessing the network headers.","modified":"2026-07-16T03:32:32.778926122Z","published":"2026-06-24T16:30:15.337Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53074.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a04db240effd85773f66244645a28cedddb72d2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/12bec2bd4b76d81c5d3996bd14ec1b7f4d983747"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1f882c492d46f90bdb36f4936876c88c28dab21c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6a9f38d5ff11e00bc54baab752642978805e81eb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6def5fe753cbe5b279ee5fd10327b2611cbddaca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7254267799d083280c0e53effc101a33add95f7b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8042240412de3222d27b31e89d29336961cad9e4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e6aa481f21fc7a41ed344767ea25aae9d03fae71"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53074.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53074"},{"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":"fa5cb548ced61b9d3095f32f8a7e427a248c65ee"},{"fixed":"7254267799d083280c0e53effc101a33add95f7b"},{"fixed":"6a9f38d5ff11e00bc54baab752642978805e81eb"},{"fixed":"e6aa481f21fc7a41ed344767ea25aae9d03fae71"},{"fixed":"0a04db240effd85773f66244645a28cedddb72d2"},{"fixed":"1f882c492d46f90bdb36f4936876c88c28dab21c"},{"fixed":"8042240412de3222d27b31e89d29336961cad9e4"},{"fixed":"6def5fe753cbe5b279ee5fd10327b2611cbddaca"},{"fixed":"12bec2bd4b76d81c5d3996bd14ec1b7f4d983747"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53074.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.9.0"},{"fixed":"5.10.258"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.209"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.175"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.141"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.91"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-53074.json"}}],"schema_version":"1.7.5"}