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:
Has this fix already been backported to OpenWrt 25.12.6 despite the kernel version?
If not, is an update to 6.12.113 or later, or a separate backport, planned?
Is this temporary filtering approach reasonable, particularly in prerouting, or is there a better workaround for OpenWrt?
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.
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.
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.
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.