CVE-2026-98432: Critical Linux IPv4 TCP Vulnerability Affecting MikroTik RouterOS 7
What it is, how it works, which RouterOS versions are affected, and what network operators should do now.
Action required: MikroTik has confirmed that RouterOS 7 releases before the fixed versions are affected by CVE-2026-98432. Upgrade RouterOS 7 devices to 7.25.1 or later on the stable channel, or 7.24.6 or later on the long-term channel. RouterOS 6 is not affected.
CVE-2026-98432 is a critical use-after-free vulnerability in the Linux kernel IPv4 TCP connection-handling path. It affects Linux kernels beginning with version 4.4 and can be triggered by specially crafted IPv4 TCP traffic sent to a listening TCP service.
The issue is important to network operators because RouterOS 7 is built on the Linux kernel. MikroTik has published an advisory confirming that affected RouterOS 7 devices should be upgraded. The vulnerability applies to TCP services running on the router itself; it is not triggered merely by IPv4 traffic being routed through the router.
Executive Summary
- Vulnerability type: Remote, unauthenticated IPv4 TCP use-after-free condition in the Linux kernel.
- Attack path: A crafted IPv4 TCP connection attempt reaches a TCP service listening on the affected device.
- Potential impact: Router or server instability, crash, memory corruption, information disclosure, and potentially remote code execution.
- RouterOS exposure: RouterOS 7 prior to the fixed releases; RouterOS 6 is not affected.
- RouterOS fix: Stable 7.25.1+, long-term 7.24.6+, and development 7.26beta5+.
- IPv6: MikroTik states that IPv6 connections are not affected by this issue.
- Primary mitigation: Upgrade RouterOS and do not expose router management or other TCP services to untrusted networks.
What Is a Use-After-Free Vulnerability?
A use-after-free vulnerability occurs when software releases a piece of memory but another portion of the program continues to use a pointer to that same memory. Once memory has been released, it may be reused for something else. Any later attempt to read from or write to that location can produce unpredictable behavior.
Depending on the exact timing and how memory is reused, the result may be a harmless failure, a process crash, a kernel panic, information disclosure, memory corruption, or—in more serious scenarios—code execution. Because this vulnerability exists in kernel networking code, a successful attack can affect the operating system itself rather than only one user-level application.
The Technical Issue: IPv4 TCP Connection Setup
The affected code is part of the Linux IPv4 TCP handshake path. When a remote client begins a TCP connection, the receiving system creates and manages a request socket while the connection is progressing through the SYN and SYN-ACK stages.
In the affected path, the Linux kernel can transfer ownership of IPv4 option data from the request socket to a newly created child socket without making a copy. Under a specific race condition, another CPU can still be processing a retransmitted SYN and building a SYN-ACK response while the child socket or request-socket-related memory is being released.
The affected code reads IPv4 option information while protected by an RCU read lock. However, the old cleanup path used a normal memory free operation instead of delaying the free until after the required RCU grace period. That mismatch allows the IPv4 option data to be freed while a concurrent networking path still expects it to exist.
In plain language: two CPU cores can handle closely related TCP connection events at the same time. One path releases IPv4 option memory while another path is still using it to construct a response. That race creates the use-after-free condition.
Why IPv4 Options Matter
The vulnerability involves IPv4 TCP connection requests that carry IPv4 options. IPv4 options are uncommon in normal internet traffic, but they are valid parts of the protocol and can be supplied in specially constructed packets. A malicious actor can use crafted packets and carefully timed retransmissions to attempt to trigger the vulnerable race condition.
The kernel fix changes the cleanup behavior so the affected option structures are released only after an RCU grace period. This allows in-progress readers to finish safely before the memory becomes available for reuse.
Severity and Potential Impact
The Linux kernel CVE record assigns CVE-2026-98432 a CVSS v3.1 score of 9.8 Critical: network reachable, low attack complexity, no privileges required, and no user interaction required. The potential security impact includes confidentiality, integrity, and availability consequences.
In real operational terms, an attacker may be able to cause a vulnerable device to become unstable, reboot, or stop handling traffic correctly. Other vendor advisories also note the possibility of memory disclosure or memory corruption. Reliable code execution is generally more difficult than causing a crash, but should not be treated as impossible when a critical kernel-level memory-corruption issue is involved.
Affected Linux Kernel Versions
The Linux kernel CVE team identifies the issue as introduced in Linux kernel 4.4. Fixed versions have been published across supported kernel branches. Operating-system vendors may backport the correction into their own package versions, so always use your vendor’s advisory and current package repository as the final authority.
| Kernel Branch | Fixed In |
|---|---|
| 5.10 | 5.10.272 |
| 5.15 | 5.15.223 |
| 6.1 | 6.1.190 |
| 6.6 | 6.6.159 |
| 6.12 | 6.12.113 |
| 6.18 | 6.18.56 |
| 7.2 | 7.2.10 |
| 7.3 | 7.3 |
MikroTik RouterOS Impact
MikroTik has confirmed that the vulnerability affects RouterOS 7 devices that have not been updated to a release containing the fix. RouterOS 6 is not affected.
| RouterOS Channel | Fixed Since |
|---|---|
| Stable | 7.25.1 |
| Long-term | 7.24.6 |
| Development | 7.26beta5 |
| RouterOS 6 stable / long-term | Not affected |
Importantly, this vulnerability is triggered by traffic sent to a TCP service operating on the router—not by ordinary customer, subscriber, transit, or routed traffic passing through the router. Exposure depends on whether the router accepts TCP connections from untrusted sources.
A default MikroTik firewall normally drops unsolicited WAN traffic to the router itself. That substantially reduces exposure. Risk increases when the input chain is permissive, the default firewall has been removed, or management services have been exposed to the internet.
Which RouterOS Services Should Be Reviewed?
Review every TCP service that listens on the router and determine whether it can be reached from an untrusted network. Common examples include:
- WinBox
- SSH
- BGP
- WebFig over HTTP or HTTPS
- RouterOS API and API-SSL
- FTP or Telnet, if enabled
- Proxy, container, user-manager, or other TCP-based services hosted directly on the router
- Any custom firewall rule permitting TCP input traffic from public or untrusted address space
This is also a good opportunity to remove unused management services, restrict permitted source addresses, and confirm that remote administration occurs over WireGuard or another approved VPN rather than through publicly exposed management ports.
Recommended RouterOS Response Plan
- Inventory RouterOS versions. Identify every RouterOS 7 device in production, including edge routers, core routers, remote CPE management routers, test systems, and lab equipment that can be reached from untrusted networks.
- Upgrade affected systems. Move to RouterOS stable 7.25.1 or later, or RouterOS long-term 7.24.6 or later.
- Review the input chain. Confirm unsolicited WAN-originated traffic to the router is dropped.
- Restrict management services. Allow WinBox, SSH, WebFig, API, and other management access only from defined trusted networks or VPN address pools.
- Disable services you do not use. Every listening TCP service adds potential attack surface.
- Use a VPN for administration. WireGuard is an excellent option for securely reaching RouterOS management services without opening them to the public internet.
- Validate after maintenance. Confirm the installed RouterOS version, verify routing and monitoring, and review firewall logs after the change window.
Checking RouterOS Version and Updates
The following commands can be used to review the current RouterOS version and check for updates. Follow your normal change-control, backup, and maintenance-window process before installing an update on production equipment.
/system resource print
/system package update check-for-updatesIf your organization uses the long-term release channel, confirm the configured channel before checking for updates:
/system package update
set channel=long-term
check-for-updatesImportant: Downloading a RouterOS update does not protect the device until the update has been installed and the router has rebooted into the patched version. Confirm the running version after the maintenance window.
Linux Server and Cloud Workload Considerations
This CVE is not limited to routers. Linux servers, virtual machines, containers, load balancers, appliances, and cloud workloads using affected kernels should also be reviewed. Linux distribution vendors may issue fixes as backported kernel packages, meaning a package version may not look identical to the upstream kernel version listed above.
Apply the updated kernel package supplied by your operating-system vendor and reboot the system. A kernel update alone is not sufficient until the host is running the new kernel. Organizations should pay particular attention to internet-facing systems, systems with public TCP listeners, and environments using Multipath TCP or advanced TCP service architectures.
The Bottom Line
CVE-2026-98432 is a serious kernel-level IPv4 TCP vulnerability with a straightforward operational response: patch affected systems and limit TCP services exposed to untrusted networks. For MikroTik environments, the priority is to upgrade RouterOS 7 devices to a fixed release and verify that the router input firewall does not allow public access to management services.
A secure firewall policy is an important layer of protection, but it should not be considered a replacement for upgrading. The permanent resolution is to run a RouterOS release containing MikroTik’s fix.
References
- MikroTik Security Advisory: CVE-2026-98432
- CVE Program Record: CVE-2026-98432
- NIST National Vulnerability Database: CVE-2026-98432
- Linux Kernel CVE Record and Fixed Kernel Versions
Need help reviewing or upgrading your RouterOS environment?
Link Technologies, Inc. provides MikroTik security reviews, RouterOS upgrade planning, firewall hardening, network monitoring, and ISP-grade network engineering.
Contact Our Team Explore Our ServicesDennis Burgess is the Chief Technology Officer of Link Technologies, Inc., a MikroTik Certified Trainer, and a network engineer with more than 20 years of experience supporting ISP, WISP, enterprise, and infrastructure environments.
Link Technologies, Inc.
IT Infrastructure • Wireless • Fiber • Hosting • Cloud Services
shop.linktechs.net • sales@linktechs.net • 314-735-0270
Leave your comment