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

tcp: clear sock_ops cb flags before force-closing a child socket

A child socket inherits the listener's bpf_sock_ops_cb_flags via
sk_clone_lock(). If its setup fails in tcp_v4_syn_recv_sock() /
tcp_v6_syn_recv_sock(), the child is freed through put_and_exit, where
inet_csk_prepare_forced_close() drops the socket lock and tcp_done() runs
without it.

If BPF_SOCK_OPS_STATE_CB_FLAG was inherited, tcp_done() -> tcp_set_state()
calls tcp_call_bpf(), which expects the lock and trips sock_owned_by_me():

WARNING: include/net/sock.h:1799 at tcp_set_state+0x433/0x550
RIP: 0010:tcp_set_state+0x433/0x550 include/net/sock.h:1799
Call Trace:
<IRQ>
tcp_done+0xba/0x250 net/ipv4/tcp.c:5095
tcp_v4_syn_recv_sock+0x850/0xa50 net/ipv4/tcp_ipv4.c:1787
tcp_check_req+0xf30/0x1360 net/ipv4/tcp_minisocks.c:926
tcp_v4_rcv+0x1047/0x1b50 net/ipv4/tcp_ipv4.c:2164
</IRQ>

The child is freed before it is ever established, so it should run no
sock_ops callback. Clear its cb flags in inet_csk_prepare_for_destroy_sock(),
the common point for the IPv4, IPv6 and chtls forced-close paths and for the
MPTCP ->syn_recv_sock() failure path (dispose_child), which reaches tcp_done()
on a child that was never established too.
Published: 2026-08-15
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs in the Linux kernel TCP stack when a child socket inherits the listener’s BPF sock_ops callback flags. If the child socket setup fails, the socket is freed while the kernel’s synchronization locks are not held. When tcp_done processes the socket, it calls tcp_set_state, which triggers tcp_call_bpf. Because the expected lock is missing, a sock_owned_by_me assertion is hit, producing a warning and potentially a kernel panic. The kernel crash results in denial of service, taking the affected host offline until a reboot or recovery action is performed.

Affected Systems

All Linux kernel builds that include the unpatched TCP code path are affected. The issue is present in the Linux kernel prior to the inclusion of the patch from commit 8874dafc9099bc49c2e5ebba030f85d276421f92; the specific release versions are not listed, so any kernel older than the commit that implements this fix is potentially vulnerable.

Risk and Exploitability

The bug is a race condition that leads to kernel panic when a child socket is force‑closed after a failed SYN setup while inheriting BPF callback flags. The likely attack vector is remote network traffic that creates many short‑lived connections to trigger the code path. The EPSS score is < 1%, and the vulnerability is not listed in the CISA KEV catalog, indicating that public exploitation is limited or not yet observed. However, because the flaw can cause a kernel crash on any host that processes affected connections, the risk is significant for systems where the kernel has not been updated. If the affected host is reachable over the network and sends or receives a large influx of TCP packets, an attacker could trigger a denial of service. The CVSS score of 9.8 highlights the critical severity, and while the exploitation probability is low, the impact is catastrophic.

Generated by OpenCVE AI on August 17, 2026 at 09:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that clears sock_ops callback flags before force‑closing a child socket, as provided in the recent Linux kernel commits.
  • Upgrade the Linux system to a kernel version that incorporates the fix (e.g. the latest stable release or backported patch set).
  • If an immediate upgrade is impossible, disable BPF socket operations or stop any BPF programs that register the BPF_SOCK_OPS_STATE_CB_FLAG to prevent the assertion from being triggered.

Generated by OpenCVE AI on August 17, 2026 at 09:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 17 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 15 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362

Sat, 15 Aug 2026 06:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tcp: clear sock_ops cb flags before force-closing a child socket A child socket inherits the listener's bpf_sock_ops_cb_flags via sk_clone_lock(). If its setup fails in tcp_v4_syn_recv_sock() / tcp_v6_syn_recv_sock(), the child is freed through put_and_exit, where inet_csk_prepare_forced_close() drops the socket lock and tcp_done() runs without it. If BPF_SOCK_OPS_STATE_CB_FLAG was inherited, tcp_done() -> tcp_set_state() calls tcp_call_bpf(), which expects the lock and trips sock_owned_by_me(): WARNING: include/net/sock.h:1799 at tcp_set_state+0x433/0x550 RIP: 0010:tcp_set_state+0x433/0x550 include/net/sock.h:1799 Call Trace: <IRQ> tcp_done+0xba/0x250 net/ipv4/tcp.c:5095 tcp_v4_syn_recv_sock+0x850/0xa50 net/ipv4/tcp_ipv4.c:1787 tcp_check_req+0xf30/0x1360 net/ipv4/tcp_minisocks.c:926 tcp_v4_rcv+0x1047/0x1b50 net/ipv4/tcp_ipv4.c:2164 </IRQ> The child is freed before it is ever established, so it should run no sock_ops callback. Clear its cb flags in inet_csk_prepare_for_destroy_sock(), the common point for the IPv4, IPv6 and chtls forced-close paths and for the MPTCP ->syn_recv_sock() failure path (dispose_child), which reaches tcp_done() on a child that was never established too.
Title tcp: clear sock_ops cb flags before force-closing a child socket
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-08-17T05:45:14.504Z

Reserved: 2026-08-15T05:44:03.878Z

Link: CVE-2026-74268

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:26.183

Modified: 2026-08-17T06:19:20.467

Link: CVE-2026-74268

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T09:45:06Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')