官方内核补丁未出前可直接粘贴执行的过渡缓解方案。
cve内核缓解
RT @r0ckstardev: 🔴 If you have a VM running Ubuntu and want to patch the CVE-2026-98432 Critical Linux Kernel Flaw, here is the script I used to secure my servers:
# CVE-2026-98432 stopgap. For Ubuntu 20.04 and 24.04.
# Log in as ubuntu, copy everything in this file, paste it into the SSH session.
# Done when the last line prints: active
sudo apt-get update -qq </dev/null && sudo apt-get install -y nftables </dev/null
sudo tee /etc/nftables-cve-2026-98432.nft >/dev/null <<'EOF'
add table inet cve_2026_98432
flush table inet cve_2026_98432
table inet cve_2026_98432 {
chain pre {
type filter hook prerouting priority raw - 10; policy accept;
ip hdrlength > 5 meta l4proto tcp counter drop
}
}
EOF
sudo tee /etc/systemd/system/cve-2026-98432-nft.service >/dev/null <<'EOF'
[Unit]
Description=CVE-2026-98432 stopgap: drop IPv4 TCP with IP options
After=https://t.co/yv6n00FLOm
Before=https://t.co/w7O0ZyUiWr docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/nft -f /etc/nftables-cve-2026-98432.nft
[Install]
WantedBy=https://t.co/XN4fnfddjw
EOF
sudo systemctl daemon-reload && sudo systemctl enable --now cve-2026-98432-nft.service && systemctl is-active cve-2026-98432-nft.service