CVE-2026-98432 — kernel update or backport planned for OpenWrt 25.12?

Hi everyone,

Is there a planned kernel update or backport for CVE-2026-98432 in the OpenWrt 25.12 branch?

My setup:

  • Device: Banana Pi BPI-R4 (2x SFP+)
  • Target: mediatek/filogic
  • OpenWrt: 25.12.6, revision r33311-981c978eff
  • Running kernel: 6.12.112

The upstream kernel advisory describes a use-after-free involving IPv4 options during TCP connection handling and lists 6.12.113 as the first fixed version in the 6.12 series. There is also an Ubuntu CVE entry.

Unsolicited TCP connections from WAN are already blocked on my router, but LAN clients can still reach local TCP services. net.ipv4.tcp_migrate_req is already 0, although my understanding is that this only avoids the migration-related path described in the advisory.

While waiting for a patched build, I’m evaluating a temporary workaround: dropping IPv4/TCP packets carrying IPv4 header options, using this nftables match:

ip protocol tcp ip hdrlength > 5

Before enabling it, I’ve started a 24-hour passive observation using the equivalent capture filter. It records counts and header metadata by interface, source/destination and option type, without saving application payloads. No blocking rule has been enabled. The purpose is to check for legitimate traffic that the proposed filter might affect. Normal TCP options such as MSS, SACK, window scaling and TCP timestamps would remain allowed.

Could someone clarify:

  1. Has this fix already been backported to OpenWrt 25.12.6 despite the kernel version?
  2. If not, is an update to 6.12.113 or later, or a separate backport, planned?
  3. Is this temporary filtering approach reasonable, particularly in prerouting, or is there a better workaround for OpenWrt?

Thanks.

25.12.7 is incoming

Temporary solution: sysctl -w net.mptcp.enabled=0

Basically anything open to the internet is exploitable..........

This stops the remote code execution but still opens to getting race-condtioned and then a kernel panic.

As a temporary solution, this will suffice.

Temporary solution add other line:

sysctl -w net.ipv4.tcp_migrate_req=0

Then waiting 25.12.7 :grinning_face:

Kernel updates to release branches happen semi-regularly, and the version will then be used in the next formal release from that branch.

Historical 25.12 kernel update rhythm can be seen from here:

kernel version in 25.12 has now been updated to that .113 version.

Thank you!

https://downloads.openwrt.org/releases/25.12-SNAPSHOT/targets/ - binary builds with .113 kernel just finished to compile.

And also made it to asu now.

Have read sysctl -w net.mptcp.enabled=0 is not enough (but worth doing).
Firewall rules seem the most effective until kernel patched.

Have used the below on 25.12.6, but not tested extensively:

sysctl net.mptcp.enabled
sysctl -w net.mptcp.enabled=0
echo "net.mptcp.enabled = 0" > /etc/sysctl.d/99-disable-mptcp.conf

uci show network.globals.multipath
uci set network.globals.multipath=disable
uci commit network
uci show network.globals.multipath

nft delete table ip cve_2026_98432
nft add table ip cve_2026_98432
nft add chain ip cve_2026_98432 pre '{ type filter hook prerouting priority -310; policy accept; }'
nft add rule ip cve_2026_98432 pre ip protocol tcp ip hdrlength 6-15 counter drop

EDIT:
nft rules would need adding to startup script to persist reboots.

EDIT2:
Scrap the nft rule! This rule isn't working, being converted to version gt 5:
ip protocol tcp ip version > 5 counter packets 0 bytes 0 drop

EDIT3:
Sorry about that, have updated the nft rule above
From:
nft add rule ip cve_2026_98432 pre ip protocol tcp @nh,0,4 gt 5 counter drop
to:
nft add rule ip cve_2026_98432 pre ip protocol tcp ip hdrlength 6-15 counter drop

Have tested using the python "verify" script section within this bash script:

It alerted to the error in the nft command, and have now corrected......but again, not tested beyond that.

Asked AI to make your rules permanent, since I don't have the skill:

mkdir -p /usr/share/nftables.d/ruleset-post

cat > /usr/share/nftables.d/ruleset-post/cve-2026-98432.nft << 'EOF'
table ip cve_2026_98432 {
    chain pre {
        type filter hook prerouting priority -310; policy accept;
        ip protocol tcp ip hdrlength 6-15 counter drop
    }
}
EOF

Then reload and verify:

fw4 reload
nft list table ip cve_2026_98432

This should not survive a sysupgrade, but sysupgrade will fix the issue anyway.

You'll need to make sure that file is kept in the sysupgrade backup file list, otherwise it will be lost on a reboot. However, as the 25.12.7 won't be too far away the next reboot will likely be a sysupgrade to 25.12.7.

You can add the custom nft table to /etc/firewall.user or added as an include in the main firewall config temporarily so it persists until the kernel is patched in 25.12.7

config include
    option type 'nftables'
    option path '/etc/cve_2026_98432.nft'
    option position 'ruleset-post'

The contents of the .nft file would be the original code referenced. You'd need to persist the .nft file in the back up file list.

Is it on https://sysupgrade.openwrt.org yet? I can't seem to find it.

No release has been made yet. On the mailing list it is planned but possibly holding a bit for further fixes to go with it, given the relatively recent 25.12.6 release just happened.

If you want it urgently, 25-Snapshot has the updated kernel, I installed those. But these are obviously not tested as much.

Note that there is no special "release testing". Releases are just tags made to the then current 25.12 branch HEAD, from which the 25-SNAPSHOT build are daily made.

User's of SNAPSHOT branch are the testers of future STABLE :laughing: