SONiC Linux kernel IPv4 TCP use-after-free triggered by TCP SYN with IPv4 options
Critical · CVE-2026-98432 · Aviz Networks published AVIZ-SA-2026-001 on 2026-11-07
| Package | SONiC (all branches 201811 – master) |
| Affected versions | Linux kernel ≥ 4.4 and below the fixed release (e.g. 6.1.123 on 202411 / 202405 / 202505) |
| Patched versions | 5.10.272 · 6.1.190 · 6.12.113 (Aviz back-ported fix validated for 202411) |
| Severity | Critical |
| CVSS v3.1 base score | 9.8 / 10, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Source: Linux kernel CNA) |
| CVE ID | CVE-2026-98432 |
| Advisory ID | AVIZ-SA-2026-001 |
| Weakness | Use-after-free |
| Published on | 2026-11-07 |
Summary
Every SONiC release from 201811 through master ships a Linux kernel affected by CVE-2026-98432, a critical (CVSS 9.8) use-after-free in the kernel’s IPv4 TCP stack. An unauthenticated attacker who can reach any listening TCP port on a switch (SSH, BGP, gNMI, telemetry agents) can trigger it with a TCP SYN that carries IPv4 options.
- Most likely impact: kernel crash and switch reboot, repeatable on demand. Remote code execution has been publicly demonstrated against servers that expose MPTCP listeners.
- Fixed in: Linux 5.10.272, 6.1.190 and 6.12.113 for the kernel series SONiC uses. No current SONiC branch ships these yet.
- Interim mitigation: a single iptables rule that drops TCP SYNs carrying IPv4 options. Aviz Networks has validated it on SONiC 202411 production-class hardware with no impact on BGP, SSH or gNMI. Where nothing uses MPTCP, disable it as well.
- Permanent fix: rebuild SONiC with a patched kernel, or move to a release that includes one. Aviz Networks has back-ported the fix to the 202411 kernel and validated the patched image.
IPv6 is not affected.
Affected SONiC releases
All maintained SONiC branches are affected. The table shows the kernel each branch builds, taken from rules/linux-kernel.mk at the head of each branch in sonic-net/sonic-buildimage (as of October 2026).
| SONiC branch | Kernel | Affected | Fixed kernel for that series |
|---|---|---|---|
| master, 202605, 202511 | 6.12.41 | Yes | 6.12.113 |
| 202505, 202411, 202405 | 6.1.123 | Yes | 6.1.190 |
| 202311 | 5.10.218 | Yes | 5.10.272 |
| 202305, 202211, 202205 | 5.10.179 | Yes | 5.10.272 |
| 202111 | 5.10.46 | Yes | 5.10.272 |
| 202012, 202106 | 4.19.152 | Yes | None (4.19 series is end-of-life) |
| 202006 | 4.19.67 | Yes | None (end-of-life) |
| 201811 to 201911 | 4.9.x | Yes | None (end-of-life) |
| 201807 and earlier | 3.16.x | No | Not applicable (bug introduced in 4.4) |
Vendor and commercial SONiC distributions built from these branches inherit the same kernel unless the vendor has rebased it. Check your running switch with the commands below rather than relying on the branch name.
Technical details and impact
When a SYN arrives with IPv4 options such as Record Route or Timestamp, the kernel keeps a copy of those options to build its SYN-ACK. Under a race between CPU cores, that copy can be freed with a plain kfree() while another core is still reading it in ip_options_build(). The upstream fix, “ipv4: free inet_opt and ireq_opt after an RCU grace period” , defers the free until every core is done.
| CVSS 3.1 | 9.8 Critical, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Linux kernel CNA) |
| Attack vector | One or more TCP SYNs with IPv4 options to any listening TCP port |
| Authentication | None |
| Introduced | Linux 4.4 |
| Second path | Request-socket migration (net.ipv4.tcp_migrate_req=1 or a reuseport BPF program); off by default on SONiC |
On a SONiC switch the reachable listeners typically include SSH (22), BGP (179, often in several VRFs, which exposes the kernel to data-plane peers), gNMI/telemetry and third-party agents. IPv6 sockets that also accept IPv4 (dual-stack) count too, because IPv4 clients reaching them take the same IPv4 code path.
The impact, from most to least likely:
- Kernel panic and reboot. All BGP sessions drop and traffic through the switch is disrupted while SONiC restarts. An attacker can repeat it.
- Silent kernel memory corruption, leading to unpredictable behaviour.
- Kernel code execution, giving full control of the switch. A public write-up has demonstrated this against servers exposing MPTCP listeners (see below).
The race makes exploitation unreliable, but attempts are cheap: no session or credentials are needed.
MPTCP and the public exploit
The publicly demonstrated exploit reaches the bug through an MPTCP (Multipath TCP) listener and achieves remote code execution on that target. The bug itself is in plain IPv4 TCP, so systems with no MPTCP listener can still be attacked, and disabling MPTCP alone is not a fix.
SONiC kernels build MPTCP in (CONFIG_MPTCP=y) and allow it by default (net.mptcp.enabled = 1). Standard SONiC services don’t open MPTCP sockets: on the 202411 switches we tested, ss -M showed none. Third-party agents are the risk: the Go security team notes that Go programs enable MPTCP on listening sockets by default on Linux, so a Go-based telemetry or management agent can open an MPTCP listener without anyone noticing.
Check whether your switch is affected
Read the real kernel version from /proc/version. The uname -r name (for example 6.1.0-29-2-amd64) is an ABI label, not the version.
cat /proc/version
# ... Debian 6.1.123-1 (2025-01-02) <- 6.1.123 is the version to compareThe switch is affected if that version is 4.4 or later and below the fixed version for its series: 5.10.272, 6.1.190 or 6.12.113. Kernels in the 4.9 and 4.19 series have no upstream fix. On 202511 and later, which build the kernel from upstream sources, uname -r already shows the real version.
Then list the TCP ports that accept IPv4 connections from off the box:
sudo ss -ltnp4 | grep -v 127.0.0.1 # IPv4 listeners
sudo ss -ltnpe6 | grep -v 'v6only:1' # dual-stack listeners (shown as *:port)Every listener in that output is a path to the bug until the switch is mitigated or patched.
Workarounds: drop SYNs carrying IPv4 options
Every path to this bug starts with a TCP SYN that carries IPv4 options. Dropping those packets before the TCP stack sees them blocks the trigger on every port and VRF, with no effect on normal traffic: SSH, BGP, gNMI and standard TCP clients do not set IPv4 options.
sudo modprobe xt_u32
sudo iptables -t raw -I PREROUTING 1 -p tcp --syn \
-m u32 --u32 "0>>24&0x0F=6:15" \
-m comment --comment cve-2026-98432 -j DROPThe u32 match reads the IPv4 header length (IHL). A value of 6 to 15 means the header carries options.
Why the raw table. SONiC’s control-plane ACL manager, caclmgrd, flushes the iptables filter table and deletes custom chains every time control-plane ACLs change. We checked caclmgrd on every branch from 202205 to master: it never touches the IPv4 raw table. A rule in the filter table’s INPUT chain would silently disappear; this one survives ACL updates and config reload.
Keeping it across reboots. A reboot clears iptables, so re-apply the rule at boot with a small systemd service and timer:
sudo tee /usr/local/sbin/cve-2026-98432-apply >/dev/null <<'EOF'
#!/bin/sh
modprobe xt_u32 2>/dev/null
RULE='-p tcp --syn -m u32 --u32 0>>24&0x0F=6:15 -m comment --comment cve-2026-98432 -j DROP'
iptables -w -t raw -C PREROUTING $RULE 2>/dev/null || iptables -w -t raw -I PREROUTING 1 $RULE
EOF
sudo chmod 755 /usr/local/sbin/cve-2026-98432-apply
sudo tee /etc/systemd/system/cve-2026-98432.service >/dev/null <<'EOF'
[Unit]
Description=CVE-2026-98432 mitigation
After=network.target caclmgrd.service
[Service]
Type=oneshot
ExecStart=/usr/local/sbin/cve-2026-98432-apply
EOF
sudo tee /etc/systemd/system/cve-2026-98432.timer >/dev/null <<'EOF'
[Unit]
Description=Re-apply CVE-2026-98432 mitigation
[Timer]
OnBootSec=30s
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now cve-2026-98432.timerThe timer re-applies the rule 30 seconds after boot and checks it every 5 minutes. On multi-ASIC systems, also run the iptables command inside each namespace with ip netns exec asicN.
Additional hardening: disable MPTCP
This closes the path used by the public exploit. It complements the raw-table rule and does not replace it. First check that nothing uses MPTCP:
sudo modprobe mptcp_diag; sudo ss -Mlnp # expect the header line only
nstat -az | grep -iE "MPCapable|MPJoin" # expect zero countersThen disable it and keep it disabled across reboots:
sudo sysctl -w net.mptcp.enabled=0
echo "net.mptcp.enabled = 0" | sudo tee /etc/sysctl.d/90-disable-mptcp.confIf ss -M listed a program, restart it after the change: an existing MPTCP listener can return errors on new connections once MPTCP is disabled.
Verify
sudo iptables -t raw -L PREROUTING -v -n -x # rule present, with drop counter
systemctl list-timers cve-2026-98432.timerRoll back
sudo systemctl disable --now cve-2026-98432.timer
sudo rm /etc/systemd/system/cve-2026-98432.* /usr/local/sbin/cve-2026-98432-apply
sudo systemctl daemon-reload
sudo iptables -t raw -D PREROUTING -p tcp --syn -m u32 --u32 "0>>24&0x0F=6:15" \
-m comment --comment cve-2026-98432 -j DROPWhat we validated
On two SONiC 202411 switches, including a production-configured leaf running BGP in multiple VRFs:
| Test | Result |
|---|---|
| SYNs with IPv4 options sent over loopback to a closed port | 5 of 5 dropped; 5 of 5 plain SYNs answered |
| Established BGP sessions and prefix counts | Unchanged, no flaps |
| New SSH sessions, gNMI collector connection | Unaffected |
| caclmgrd restart, config reload, cold reboot | Rule still active after each (lab switch) |
The mitigation blocks the trigger. It does not fix the kernel.
Permanent fix
The fix is a SONiC image whose kernel contains upstream commit e3f33b0a1d89. There are two ways to get there:
- Move to a patched kernel release. Bump
KERNEL_VERSION(and the ABI name) inrules/linux-kernel.mkandsrc/sonic-linux-kernelto 5.10.272, 6.1.190 or 6.12.113 or later, then rebuild. For 6.1-based branches, Debian bookworm’s security update linux 6.1.190-1 carries the fix. - Back-port the patch. Add the stable back-port for your kernel series to
src/sonic-linux-kernel/patch/and its series file. This is the smaller change when a full kernel bump isn’t practical, but the kernel version string stays the same, so record the patch in your release notes.
Aviz Networks has taken the back-port route for 202411. The Linux 6.1 stable back-port (89b5b1eb7d63, the same change that shipped in 6.1.190) applies cleanly to 6.1.123. We added it to src/sonic-linux-kernel/patch/ and its series file, built the image and validated it. The 6.12 stable back-port (11a03ce3c4a6) is the equivalent for 202511 and later. Both are two-line changes, replacing kfree() with kfree_rcu() in net/ipv4/af_inet.c and net/ipv4/tcp_ipv4.c.
Branches on 4.9 and 4.19 kernels have no upstream fix. Plan an upgrade to a supported SONiC release, and keep the mitigation in place until then.
Once the patched image is installed, the mitigation can be removed. It does not carry over to a new SONiC image anyway, because it lives in the old image’s root filesystem.
Recommendations
- Inventory now. Check the kernel version on every SONiC switch, including vendor distributions.
- Mitigate today. Apply the raw-table rule above, and disable MPTCP where nothing uses it. It is safe to roll out without a maintenance window: existing sessions are not touched.
- Restrict the control plane. Limit SSH, BGP, gNMI and agent ports to known peers and collectors with SONiC control-plane ACLs. This shrinks the exposure for this and future kernel bugs.
- Patch. Schedule the upgrade to a SONiC image with a fixed kernel, and remove the mitigation afterwards.
Timeline
| Date | Event |
|---|---|
| 2026-11-10 | Advisory updated: MPTCP guidance and validated 202411 back-port |
| 2026-11-07 | Aviz Networks publishes this SONiC advisory |
| 2026-10-30 | Public exploit (via MPTCP listener) discussed on oss-security |
| 2026-10-15 | CVE-2026-98432 published by the Linux kernel CNA |
| 2026-09-25 | CVE reserved |
References
- CVE-2026-98432 record (MITRE)
- OSV entry
- Debian security tracker
- Upstream fix e3f33b0a1d89
- oss-security 2026/10/30/1: Go security team on the MPTCP exploit
- oss-security 2026/10/30/6: disabling MPTCP
- oss-security 2026/10/31/5: interim mitigations
- oss-security 2026/11/03/1: why disabling MPTCP alone isn’t enough
- sonic-net/sonic-buildimage ,
rules/linux-kernel.mkper branch - sonic-net/sonic-host-services ,
scripts/caclmgrd
For questions, or help assessing and mitigating your SONiC fleet, contact Aviz support and reference AVIZ-SA-2026-001: support@aviznetworks.com
Published on 2026-11-07 · © 2026 Aviz Networks.