# CVE-2026-80738: bpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-09-03T08:21:53.143Z
- Modified: 2026-10-30T13:20:10.940Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie

bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie accept a socket pointer
'sk' with argument type ARG_PTR_TO_BTF_ID_SOCK_COMMON. However, they access
sk->sk_protocol without validating whether 'sk' represents a full socket.

Fix this issue by checking sk->sk_state != TCP_LISTEN before inspecting
sk->sk_protocol in both bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie.
Since mini-sockets are never in the TCP_LISTEN state, the condition
short-circuits and prevents dereferencing fullsock-specific fields.

(As written by CVE List.)

## Affected

- Linux Linux: from 399040847084a69f345e0a52fd62f04654e0fce3 before b75f1c071f31be7f4b950721e04240c250091ad4; from 399040847084a69f345e0a52fd62f04654e0fce3 before 5702e4c259809c760912c477c4ae34e9217bb4d9; from 399040847084a69f345e0a52fd62f04654e0fce3 before b5525e853a2a08a9559adb84b0616025958dc542; from 399040847084a69f345e0a52fd62f04654e0fce3 before 22c2169770ad3b3595690e51caac875178cf496d; from 399040847084a69f345e0a52fd62f04654e0fce3 before 23f682083aa3fbc0c49667818efd6979a8bc5ac2; from 399040847084a69f345e0a52fd62f04654e0fce3 before 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8; 5.2 (not affected: before 5.2; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.1.9 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/b75f1c071f31be7f4b950721e04240c250091ad4>
- <https://git.kernel.org/stable/c/5702e4c259809c760912c477c4ae34e9217bb4d9>
- <https://git.kernel.org/stable/c/b5525e853a2a08a9559adb84b0616025958dc542>
- <https://git.kernel.org/stable/c/22c2169770ad3b3595690e51caac875178cf496d>
- <https://git.kernel.org/stable/c/23f682083aa3fbc0c49667818efd6979a8bc5ac2>
- <https://git.kernel.org/stable/c/31a420a822ff92e2090bd5d65efe8e34e2d6d9b8>

## Sources

- CVE List: [CVE-2026-80738](https://www.cve.org/CVERecord?id=CVE-2026-80738), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-80738](https://nvd.nist.gov/vuln/detail/CVE-2026-80738), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-80738 · Whole record: https://cve.day/CVE-2026-80738.json · Rebuilt by cve.day 2026-11-25T22:59:36.161Z
