Skip to content

Kernel use-after-free in IPv4 TCP handling (CVE-2026-98432) #2002

Closed

Description

@gsanchietti

The Linux kernel in NethSecurity 8.8.0 (6.12.94) is affected by CVE-2026-98432, a use-after-free bug in IPv4 TCP option handling. When the firewall answers a new TCP connection, memory holding IP options can be freed while another CPU is still reading it. The fix is in kernel 6.12.113, but no OpenWrt release ships that kernel yet.

Advisory: https://lists.openwall.net/linux-cve-announce/2026/10/15/1

Steps to reproduce

Unknown: this is a timing bug between CPUs and there is no public reproducer. See the advisory.

Expected behavior

The kernel is not affected by CVE-2026-98432. A NethSecurity 8.8.1 image built from main ships:

  • the upstream fix applied to the current kernel, with no kernel version change
  • every fix already released for 8.8.0 as a package update

Actual behavior

8.8.0 units run kernel 6.12.94, which does not have the fix.

Workaround for older versions

Until the unit runs 8.8.1, drop IPv4 TCP packets that carry IP options. These options are rarely used by normal traffic. Run on the unit:

cat <<EOF > /etc/nftables.d/50-drop-ipv4-options.nft
chain ns_drop_ipopts {
        type filter hook prerouting priority raw; policy accept;
        ip protocol tcp ip hdrlength > 5 counter drop
}
EOF
fw4 reload

To remove it after the update:

rm /etc/nftables.d/50-drop-ipv4-options.nft
fw4 reload

Components

Linux kernel 6.12.94 (OpenWrt 25.12.5)

Activity

  1. self-assigned this
    on Nov 6, 2026
  2. added theissue type on Nov 6, 2026
  3. moved this from ToDo 🕐 to In Progress 🛠 in NethSecurityon Nov 6, 2026
  4. gsanchietti commented on Nov 6, 2026

    @gsanchietti
    MemberAuthor

    Test case

    Image: https://updates.nethsecurity.nethserver.org/staging/8.8.1/targets/x86/64/nethsecurity-8.8.1-x86-64-generic-squashfs-combined-efi.img.gz

    1. Clean install: all services run, UI login works, SSH and outbound HTTPS work.
    2. Upgrade a configured 8.8.0 unit to this image, keeping the configuration: firewall rules, port forwards, Threat Shield, OpenVPN and WireGuard keep working. uname -r still reports 6.12.94.
    3. OpenVPN road warrior: regenerating a certificate revokes the old one. Deleting an account revokes all its certificates.
    4. sngrep can be installed from the package sources.
    5. Workaround on an 8.8.0 unit: after applying the rule above, nft list chain inet fw4 ns_drop_ipopts shows the rule, and normal traffic (web, VPN, port forwards) still works. Removing the file and running fw4 reload removes the chain.
  5. added
    testing
    on Nov 6, 2026
  6. moved this from In Progress 🛠 to Testing in NethSecurityon Nov 6, 2026
  7. added
    verified
    and removed
    testing
    on Nov 9, 2026
  8. gsanchietti commented on Nov 9, 2026

    @gsanchietti
    MemberAuthor

    The image has been released.

  9. moved this from Testing to Done ✅ in NethSecurityon Nov 9, 2026
  10. moved this from Done ✅ to Verified in NethSecurityon Nov 9, 2026
  11. added this to the 8.9.0 milestone on Nov 9, 2026
  12. moved this from Verified to Done ✅ in NethSecurityon Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    verified

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions