# CVE-2026-80738: bpf: Check sk\_state before sk\_protocol in bpf\_tcp\_\*\_syncookie

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **Published:** 2026-09-03T08:21:53.143Z
- **Modified:** 2026-10-30T13:20:10.940Z

## Who should check

- Anyone running Linux \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< b75f1c071f31be7f4b950721e04240c250091ad4; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 5702e4c259809c760912c477c4ae34e9217bb4d9; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< b5525e853a2a08a9559adb84b0616025958dc542; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 22c2169770ad3b3595690e51caac875178cf496d; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 23f682083aa3fbc0c49667818efd6979a8bc5ac2; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8
- Anyone running Linux 5.2

## 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.

## Affected and fixed versions

- Linux: \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< b75f1c071f31be7f4b950721e04240c250091ad4; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 5702e4c259809c760912c477c4ae34e9217bb4d9; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< b5525e853a2a08a9559adb84b0616025958dc542; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 22c2169770ad3b3595690e51caac875178cf496d; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 23f682083aa3fbc0c49667818efd6979a8bc5ac2; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-80738. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80738.md
Affected: Linux >= 399040847084a69f345e0a52fd62f04654e0fce3, < b75f1c071f31be7f4b950721e04240c250091ad4; >= 399040847084a69f345e0a52fd62f04654e0fce3, < 5702e4c259809c760912c477c4ae34e9217bb4d9; >= 399040847084a69f345e0a52fd62f04654e0fce3, < b5525e853a2a08a9559adb84b0616025958dc542; >= 399040847084a69f345e0a5…
Fixed in: Linux 5702e4c259809c760912c477c4ae34e9217bb4d9, Linux 22c2169770ad3b3595690e51caac875178cf496d, Linux 23f682083aa3fbc0c49667818efd6979a8bc5ac2, Linux 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-80738 being exploited?

There is no confirmed exploitation: CVE-2026-80738 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-80738?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-80738?

Linux \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< b75f1c071f31be7f4b950721e04240c250091ad4; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 5702e4c259809c760912c477c4ae34e9217bb4d9; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< b5525e853a2a08a9559adb84b0616025958dc542; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 22c2169770ad3b3595690e51caac875178cf496d; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 23f682083aa3fbc0c49667818efd6979a8bc5ac2; \>= 399040847084a69f345e0a52fd62f04654e0fce3, \< 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8; Linux 5.2.

### Is there a fix for CVE-2026-80738?

Yes. Fixed in Linux 5702e4c259809c760912c477c4ae34e9217bb4d9, Linux 22c2169770ad3b3595690e51caac875178cf496d, Linux 23f682083aa3fbc0c49667818efd6979a8bc5ac2, Linux 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8. Upgrade Linux to 31a420a822ff92e2090bd5d65efe8e34e2d6d9b8 or later.

### How do I check if I'm affected by CVE-2026-80738?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-80738>

HTML: <https://flawdb.com/CVE-2026-80738> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-80738>
