Временная защита: окна, закрытые досками

The temporary measure against CVE-2026-98432 has already been deployed on 26 servers. Below is the order of applying the nftables filter: from checking the kernel package to rolling back and loading the rule after a restart.

The commands are designed for Ubuntu with nftables and systemd, for incoming traffic from the host itself. For traffic sent to containers or other nodes, you need to select a filter chain separately.

1. Проверьте статус исправления

Find out the running kernel:

uname -r

На странице Canonical найдите свой релиз и пакет ядра. Work in progress означает, что исправление готовится; указанная рядом версия — плановая, пакет еще не выпущен.

If a fix is already available for your branch, schedule an update and upload to the patched kernel. A temporary filter is needed for the waiting period. Red Hat suggests dropping IPv4 TCP packets with IP options: this reduces exposure, but does not replace kernel patching.

2. Prepare one server and rollback

Start with one node. Save the current rules and prepare access to the hoster console in case of SSH loss.

View the current configuration:

(umask 077; sudo nft list ruleset > "$HOME/nft-before.txt")
sudo nft list table inet cve_2026_98432

The error about the absence of a table at this step is expected. If table cve_2026_98432 already exists, first figure out who installed it. Повторно создавать ее и удалять чужое правило не нужно.

Prepare the rollback command; выполняйте ее только при необходимости снять новую таблицу:

sudo nft delete table inet cve_2026_98432

It only removes the added filter.

3. Prepare a rule

Save the example from the Red Hat Bulletin to file cve-2026-98432.nft:

table inet cve_2026_98432 {
    chain input {
        type filter hook input priority -310; policy accept;
        ip protocol tcp ip hdrlength > 5 counter drop
    }
}

The ip hdrlength > 5 condition refers to the IPv4 header. Regular TCP options, such as MSS and timestamps, are found in the TCP header and do not fall under this condition.

Check the syntax:

sudo nft --check --file cve-2026-98432.nft

Correct errors before use. Do not clear existing tables via flush ruleset.

4. Cock auto-rollback and apply a filter

Before loading the rule, set the timer for five minutes. First make sure that command -v nft returns the full path to the program:

nft_bin=$(command -v nft)
sudo systemd-run --collect --unit=cve-98432-rollback --on-active=5m \
  "$nft_bin" delete table inet cve_2026_98432
sudo systemctl is-active cve-98432-rollback.timer

Proceed only if the timer was successfully created and is in the active state. If the service name is busy or the program path is not found, first eliminate the cause.

Download the rule and check its presence:

sudo nft --file cve-2026-98432.nft
sudo nft list table inet cve_2026_98432

5. Check access and services

Open a new SSH connection from a different machine. Then check the application traffic: HTTPS, API, or the actual connection by the client of your service. Compare the previous rules with the saved configuration.

After a successful check, cancel the timer and once again make sure that the table remains in place:

sudo systemctl stop cve-98432-rollback.timer cve-98432-rollback.service
sudo nft list table inet cve_2026_98432
  • If the table no longer exists, auto-rollback might have worked.

  • If the connection fails, let the timer run or delete just this table via the console.

  • After any rollback, stop the timer and its service with the command from the previous block. Then repeat the procedure from step 4, resetting the timer.

6. Set up the download and repeat on the remaining nodes

Add the use of a separate table to the current firewall startup scheme. The filter loader should only add its table, preserving the rules of the main firewall. If they are managed by ufw, Docker or another manager, do not include nftables.service with flush ruleset in the configuration for the sake of this table. Check the reverse order: the main firewall should not erase the filter when loading.

Before rebooting, check any changed boot files via nft --check --file. For example, for the standard configuration:

sudo nft --check --file /etc/nftables.conf

In the agreed window, reboot the pilot. After loading, check the successful launch of the main firewall service, the presence of a new table and the safety of previous tables, chains and rules using the ~/nft-before.txt snapshot; Package counters and dynamic set members may change. Then open a new SSH connection and test the service. After accepting the pilot, repeat the procedure on the remaining nodes, with a separate automatic rollback for each.

After the patch is released, update the kernel and boot into it. Map the running version to the fixed package of your branch. Then remove temporary table loading from the configuration and check the changed files again via nft --check --file. After that, delete the table itself.