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.
Published: 2026-09-03
Score: 7.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel contains a flaw where the BPF helpers bpf_tcp_gen_syncookie and bpf_tcp_check_syncookie assume their socket pointer refers to a full socket and access the sk_protocol field without first verifying that the socket is in a full‑socket state. When the pointer actually refers to a mini‑socket, the code dereferences fields that are not defined for that object, which can trigger a kernel panic. The resulting impact is a loss of availability for the affected system; there is no evidence of arbitrary code execution or data corruption.

Affected Systems

All Linux kernel deployments that support the BPF subsystem and expose the bpf_tcp_gen_syncookie or bpf_tcp_check_syncookie helpers are potentially affected. The advisory does not specify an exact version range, so any kernel prior to the patch that contains this helper code may be vulnerable. Review your distribution’s security mailing lists or vendor release information to determine which kernel packages include the fix.

Risk and Exploitability

The EPSS score of < 1% and the CVSS score of 7.3 indicate a high but limited probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, which suggests no widespread exploitation has been observed. The flaw is likely exploitable only locally: an attacker who can run a BPF program with sufficient privileges to supply a malformed socket pointer could trigger the crash. Because the attack requires interaction with the kernel’s BPF helper, the complexity is moderate, but the potential for service disruption is high.

Generated by OpenCVE AI on September 4, 2026 at 06:25 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the patch for CVE‑2026‑80738.
  • If upgrading is not immediately possible, restrict or disable use of BPF programs that call the affected helpers on the affected hosts and monitor system logs for kernel panics triggered by malformed socket pointers.
  • Audit any custom BPF programs that call bpf_tcp_gen_syncookie or bpf_tcp_check_syncookie and modify them to ensure only valid full socket pointers are passed; add a check for sk_state != TCP_LISTEN before accessing sk_protocol.

Generated by OpenCVE AI on September 4, 2026 at 06:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 04 Sep 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L'}


Thu, 03 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-704

Thu, 03 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
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.
Title bpf: Check sk_state before sk_protocol in bpf_tcp_*_syncookie
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-04T04:58:23.870Z

Reserved: 2026-08-26T14:34:25.789Z

Link: CVE-2026-80738

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-03T13:06:12.910

Modified: 2026-09-04T05:17:14.363

Link: CVE-2026-80738

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T06:30:14Z

Weaknesses
  • CWE-704

    Incorrect Type Conversion or Cast