Mitigation for Linux TCP Vulnerability (CVE-2026-98432)
RedHat has released mitigation instructions for CVE-2026-98432.
https://access.redhat.com/security/vulnerabilities/RHSB-2026-016
This CVE-2026-98432 is not specific to RedHat. Ubuntu is also affected.
It is not possible to defend or mitigate this vulnerability at the application level.
This is because IP exchanges have already started once the server application accepts a session.
The fundamental solution is to update the Linux kernel. However, some distributions have not yet released patched kernels, so I will record the mitigation measures here as a note.
According to Canonical’s (Ubuntu’s developer) official information, as of October 31, 2026, the status is as follows:
| Ubuntu version | Vulnerability status |
|---|---|
| Ubuntu 22.04 LTS | Affected · Fix in progress |
| Ubuntu 24.04 LTS | Affected · Fix in progress |
| Ubuntu 26.04 LTS | Affected · Fix in progress |
| Ubuntu 26.10 | Affected · Fix in progress |
※ Information about the standard linux kernel package. Cloud-specific or HWE kernels require individual assessment.
Ubuntu can also use the temporary mitigation recommended by Red Hat using nftables. However, this is not a complete solution and a kernel update is still required (as of October 31, 2026, the fix is still in progress).
To implement a temporary mitigation for CVE-2026-98432 on Ubuntu, you can block TCP packets with IPv4 IP options using nftables.
This measure will not block TCP options used in normal browser HTTP/HTTPS communication (such as MSS, SACK, Timestamp, etc.), so it can be applied without affecting running web services.
The following steps are intended for Ubuntu 22.04 / 24.04 LTS. This is a mitigation measure adapted from Red Hat’s public information, not an official Ubuntu fix.
1. First, check the environment
cat /etc/os-release
uname -r
sudo ufw status
sudo ss -lntp
The contents to check are the Ubuntu version, the running kernel, the UFW status, and the TCP listening ports.
Note that even if ufw status shows inactive, you do not need to enable UFW for this temporary mitigation that blocks IP option TCP packets.
You can directly use nftables.
Check existing nftables rules as well.
sudo nft list ruleset
If the nft command is not available, install it using the following command:
sudo apt update
sudo apt install nftables
Note: If UFW, Docker, or Kubernetes are managing the firewall, you need to check for rule interactions and network namespaces. The Ubuntu official documentation does not recommend using UFW and native nftables rules together.
2. Create a temporary mitigation rule
Create a file using the following command:
sudo vi /etc/cve-2026-98432.nft
The content is as follows:
table inet cve_2026_98432 {
chain input {
type filter hook input priority -310; policy accept;
ip protocol tcp ip hdrlength > 5 counter drop
}
}
This rule discards TCP packets with an IPv4 header longer than 20 bytes.
By setting priority -310, this rule is placed earlier than standard input filtering, and policy accept ensures this dedicated chain does not block other normal communications.
3. Syntax check and apply
First, check the syntax:
sudo nft --check --file /etc/cve-2026-98432.nft
If there are no errors, apply the rules:
sudo nft --file /etc/cve-2026-98432.nft
Verify that the rules are applied:
sudo nft list table inet cve_2026_98432
This activates a rule to discard target packets arriving at the local Ubuntu host.
4. Confirm communication is normal
Perform a regular connection test from another terminal to the listening port.
For HTTP service:
curl -v http://serverIP:8080/
For HTTPS service:
curl -vk https://serverIP:8443/
Additionally, check the counter for discarded packets:
sudo nft -a list table inet cve_2026_98432
For example, if it shows:
ip protocol tcp ip hdrlength > 5 counter packets 0 bytes 0 drop
This means no packets have been discarded by this rule.
Even if normal communication succeeds, this does not deny legitimate communications using special IP options. Therefore, verification of business communication is necessary in the production environment.
5. Maintain rules after reboot
The settings so far will be lost after rebooting Ubuntu.
To make it persistent, take care not to break existing firewall settings. Especially, /etc/nftables.conf may contain flush ruleset, and simply starting the nftables.service may delete other firewall rules.
If you are unsure about the existing configuration, consider registering only this table via a dedicated systemd service.
Here is a typical configuration example for a regular Ubuntu host. Verify the startup order and rule conflicts with UFW, Docker, Kubernetes, etc., in advance.
sudo vi /etc/systemd/system/cve-2026-98432.service
[Unit]
Description=Temporary mitigation for CVE-2026-98432
After=nftables.service ufw.service
Wants=network-pre.target
Before=network-pre.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/nft -f /etc/cve-2026-98432.nft
ExecStop=/usr/sbin/nft delete table inet cve_2026_98432
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Apply the settings:
sudo systemctl daemon-reload
sudo systemctl enable cve-2026-98432.service
Since you have already applied the rules in step 3, do not execute start here. The service will set the rules on the next boot. After a planned reboot, check with the following commands:
sudo systemctl status cve-2026-98432.service
sudo nft list table inet cve_2026_98432
6. Removing the mitigation
To immediately remove the applied rules, execute the following command:
sudo nft delete table inet cve_2026_98432
If it is made persistent, disable the service to prevent it from being re-registered after reboot.
sudo systemctl disable cve-2026-98432.service
If the service is running, stop it first and then delete the configuration file.
7. After the kernel fix is released
According to Canonical’s official vulnerability information, as of the October 30, 2026 update, the standard linux package for Ubuntu 22.04, 24.04, and 26.04 LTS is still under repair.
Once the fixed version is released, update the appropriate kernel package and reboot:
sudo apt update
sudo apt upgrade
sudo reboot
To confirm whether the actual fix has been applied, you need to verify not only the kernel version but also Canonical’s CVE information.
Ubuntu Official CVE-2026-98432
Addendum
This temporary rule reduces the exploitation conditions of the vulnerability but is not a complete fix.
Update immediately when the fixed version is provided by each distribution.
Comments
No comments yet.