Skip to main content
Vulnerability Database/CVE-2026-98548

CVE-2026-98548: Linux Kernel SCTP Use-After-Free Vulnerability

CVE-2026-98548 is a use-after-free flaw in the Linux kernel SCTP stack allowing malicious peers to trigger memory corruption. This article covers technical details, exploitation scenarios, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98548 Overview

CVE-2026-98548 is a use-after-free vulnerability in the Linux kernel's Stream Control Transmission Protocol (SCTP) implementation. The flaw occurs when processing a bundled [ERROR(Stale Cookie)][DATA] packet received from a non-primary address while an association is in the COOKIE-ECHOED state. The non-fatal stale-cookie retry path removes non-primary transports, including the transport the packet arrived on, but subsequent chunk processing re-registers a pointer to that freed transport in asoc->peer.last_data_from. Any malicious SCTP peer, or an unprivileged local user acting as one, can trigger the condition without special capabilities.

Critical Impact

Unprivileged attackers can trigger a kernel use-after-free in the SCTP stack, enabling potential memory corruption, information disclosure, or privilege escalation.

Affected Products

  • Linux kernel (upstream mainline, SCTP subsystem)
  • Linux stable branches referenced by the fix commits
  • Distributions shipping vulnerable kernels with CONFIG_IP_SCTP enabled

Discovery Timeline

  • 2026-10-18 - CVE-2026-98548 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98548

Vulnerability Analysis

The vulnerability sits in the SCTP input path handling of bundled chunks. When an association is in COOKIE-ECHOED state and the peer sends a bundled [ERROR(Stale Cookie)][DATA] packet from a non-primary address, the kernel takes the non-fatal retry path in sctp_sf_do_5_2_6_stale(). That path queues SCTP_CMD_DEL_NON_PRIMARY, which invokes sctp_cmd_del_non_primary() and removes every non-primary transport, including the one the current packet arrived on. The arrival transport is still referenced by the receive lookup and shared across all chunks of the packet through chunk->transport.

sctp_assoc_rm_peer() redirects asoc->peer.last_data_from away from the removed transport. However, the next DATA chunk in the same bundle re-enters sctp_assoc_bh_rcv(), which unconditionally assigns asoc->peer.last_data_from = chunk->transport. This restores the pointer to the just-removed transport. Once the packet finishes processing, the receive reference drops and the transport is freed via RCU, leaving the association with a dangling pointer.

Root Cause

The root cause is a lifetime mismatch between the arrival transport and the association state. The sctp_cmd_del_non_primary command removes transports mid-packet, but the chunk processing loop keeps consuming additional chunks that still carry chunk->transport pointing at the removed object. A later FWD-TSN chunk or the delayed SACK timer causes sctp_gen_sack() to dereference the freed transport, and sctp_make_sack() or sctp_outq_select_transport() can write into freed memory and relink it onto live transport lists [CWE-416].

Attack Vector

Any remote SCTP peer that can establish a handshake with a vulnerable host can craft a bundled stale-cookie error followed by a DATA chunk from a non-primary address. A local unprivileged user can achieve the same effect by acting as a peer over loopback. KASAN output confirms a slab-use-after-free read in sctp_do_sm triggered from sctp_assoc_bh_rcv through sctp_inq_push and sctp_rcv. The earlier fix in commit 03a9d10ecf71 does not cover this window because the transport is removed during packet processing, not before it.

// No verified proof-of-concept code is published for CVE-2026-98548.
// Reproduction requires a bundled [ERROR(Stale Cookie)][DATA] packet
// followed by FWD-TSN against an association in COOKIE-ECHOED state.
// Refer to the upstream kernel commits for the authoritative patch diff.

Detection Methods for CVE-2026-98548

Indicators of Compromise

  • KASAN reports describing slab-use-after-free in sctp_do_sm with call paths through sctp_assoc_bh_rcv, sctp_inq_push, and sctp_rcv.
  • Unexpected kernel oopses or panics on hosts that accept inbound SCTP traffic, especially around delayed SACK or FWD-TSN handling.
  • SCTP associations receiving ERROR(Stale Cookie) chunks bundled with DATA chunks from source addresses that are not the primary peer address.

Detection Strategies

  • Enable KASAN on test and canary kernels to surface the exact use-after-free signature before production exposure.
  • Monitor dmesg and kernel audit streams for stack traces that include sctp_gen_sack, sctp_make_sack, or sctp_outq_select_transport.
  • Inspect SCTP traffic captures for bundled ERROR+DATA chunks originating from non-primary transport addresses during the COOKIE-ECHOED phase.

Monitoring Recommendations

  • Centralize kernel crash telemetry and alert on repeated SCTP-related oopses across the fleet.
  • Track hosts with CONFIG_IP_SCTP enabled and sctp module loaded, since unused hosts are not exposed.
  • Correlate network telemetry on IP protocol 132 (SCTP) with host-level kernel events to spot targeted probing.

How to Mitigate CVE-2026-98548

Immediate Actions Required

  • Apply the upstream patch set referenced by the kernel commits listed below to all vulnerable kernels.
  • Where patching is deferred, blocklist or unload the sctp kernel module on hosts that do not require SCTP.
  • Restrict inbound SCTP traffic at the network edge to known, trusted peers only.

Patch Information

The fix discards the remaining chunks of the packet on the stale-cookie retry path. After the ERROR chunk sends the association back to COOKIE-WAIT and removes the non-primary transports, no further chunks from the same packet are processed, so no code path can re-register the freed transport through chunk->transport. The peer retransmits the dropped chunks, matching the behavior of sctp_inq_push() for chunks whose transport was removed before processing. Authoritative patches are available in the following kernel commits: 1cd246b, 4498467, 6df536c, 854c053, 965e21e, c0af3fd, d68c928, and ec23855.

Workarounds

  • Prevent sctp from loading by adding install sctp /bin/true to a file under /etc/modprobe.d/ on systems that do not use SCTP.
  • Enforce firewall rules that drop IP protocol 132 from untrusted sources, including host-level iptables or nftables policies.
  • Limit SCTP endpoints to primary-address-only configurations where feasible, reducing exposure to non-primary bundled packets.
bash
# Disable the SCTP module on hosts that do not require it
echo 'install sctp /bin/true' | sudo tee /etc/modprobe.d/disable-sctp.conf
sudo rmmod sctp 2>/dev/null || true

# Block inbound SCTP at the host firewall (protocol 132)
sudo nft add rule inet filter input ip protocol 132 drop

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.