{"id":"CVE-2026-80738","aliases":["CVE-2026-80738"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie\n\nbpf_tcp_gen_syncookie and bpf_tcp_check_syncookie accept a socket pointer\n'sk' with argument type ARG_PTR_TO_BTF_ID_SOCK_COMMON. However, they access\nsk->sk_protocol without validating whether 'sk' represents a full socket.\n\nFix this issue by checking sk->sk_state != TCP_LISTEN before inspecting\nsk->sk_protocol in both bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie.\nSince mini-sockets are never in the TCP_LISTEN state, the condition\nshort-circuits and prevents dereferencing fullsock-specific fields.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie\n\nbpf_tcp_gen_syncookie and bpf_tcp_check_syncookie accept a socket pointer\n'sk' with argument type ARG_PTR_TO_BTF_ID_SOCK_COMMON. However, they access\nsk->sk_protocol without validating whether 'sk' represents a full socket.\n\nFix this issue by checking sk->sk_state != TCP_LISTEN before inspecting\nsk->sk_protocol in both bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie.\nSince mini-sockets are never in the TCP_LISTEN state, the condition\nshort-circuits and prevents dereferencing fullsock-specific fields.","source":"cvelist"}],"published":"2026-09-03T08:21:53.143Z","modified":"2026-10-30T13:20:10.940Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","score":7.3,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"399040847084a69f345e0a52fd62f04654e0fce3","fixed":"b75f1c071f31be7f4b950721e04240c250091ad4","status":"affected"},{"type":"git","introduced":"399040847084a69f345e0a52fd62f04654e0fce3","fixed":"5702e4c259809c760912c477c4ae34e9217bb4d9","status":"affected"},{"type":"git","introduced":"399040847084a69f345e0a52fd62f04654e0fce3","fixed":"b5525e853a2a08a9559adb84b0616025958dc542","status":"affected"},{"type":"git","introduced":"399040847084a69f345e0a52fd62f04654e0fce3","fixed":"22c2169770ad3b3595690e51caac875178cf496d","status":"affected"},{"type":"git","introduced":"399040847084a69f345e0a52fd62f04654e0fce3","fixed":"23f682083aa3fbc0c49667818efd6979a8bc5ac2","status":"affected"},{"type":"git","introduced":"399040847084a69f345e0a52fd62f04654e0fce3","fixed":"31a420a822ff92e2090bd5d65efe8e34e2d6d9b8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b75f1c071f31be7f4b950721e04240c250091ad4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5702e4c259809c760912c477c4ae34e9217bb4d9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b5525e853a2a08a9559adb84b0616025958dc542","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22c2169770ad3b3595690e51caac875178cf496d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/23f682083aa3fbc0c49667818efd6979a8bc5ac2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31a420a822ff92e2090bd5d65efe8e34e2d6d9b8","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80738","url":"https://www.cve.org/CVERecord?id=CVE-2026-80738","licence":"CVE Terms of Use","modified":"2026-10-30T12:31:02.208Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80738","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80738","licence":"Public domain","modified":"2026-10-30T13:20:10.940Z"}],"updatedAt":"2026-11-25T22:59:36.161Z","epss":{"score":0.0016,"percentile":0.05391,"date":"2026-12-01T12:00:22.000Z"}}