CVE-2026-31681·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_multiport: validate range encoding in checkentry ports_match_v1() treats any non-zero pflags entry as the start of a port range and unconditionally consumes the next ports[] element as the range end. The checkentry path currently validates protocol, flags and count, but it does not validate the range encoding itself. As a result, malformed rules can mark the last slot as a range start or place two range starts back to back, leaving ports_match_v1() to step past the last valid ports[] element while interpreting the rule. Reject malformed multiport v1 rules in checkentry by validating that each range start has a following element and that the following element is not itself marked as another range start.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.14
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.17% — higher than 6% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.14
Fixed in: 6.19.14
How to fix this CVE
Update your Linux kernel to version 6.19.14 or later to patch a netfilter multiport rule validation vulnerability. This fix strengthens input validation in the xt_multiport module to prevent malformed firewall rules from causing kernel memory access violations. Apply the update through your distribution's package manager to restore stable firewall functionality.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed kernel version with `uname -r` and confirm it is 6.19.x (6.19.0 through 6.19.13 are vulnerable)
- Step 2: Verify if netfilter multiport rules are in use by checking `iptables -L -n` or `nft list ruleset` for multiport match statements
- Step 3: Search system logs for netfilter errors with `sudo journalctl -u kernel | grep -i 'multiport\|netfilter'` to identify rule rejection attempts
- Step 4: After patching, reboot with `sudo reboot` and run `uname -r` to confirm kernel version is 6.19.14 or newer
FAQ
What is CVE-2026-31681?
This vulnerability exists in the netfilter xt_multiport module, which processes firewall rules. The bug allows malformed multiport rules with invalid range encoding to cause out-of-bounds memory access, leading to kernel crashes or denial of service.
Is CVE-2026-31681 being actively exploited?
No. This vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and has no publicly available exploits, reducing immediate risk for most environments.
What versions of Kernel are affected by CVE-2026-31681?
Linux kernel versions 6.19.0 through 6.19.13 are vulnerable. The fix is included in kernel 6.19.14 and all later versions.
How do I check if my server is vulnerable to CVE-2026-31681?
Run `uname -r` to display your kernel version. If it shows 6.19.x with x less than 14, your system is vulnerable. Stable and LTS kernels (5.x, 6.1.x, 6.6.x) are not affected.
Does Defensia detect CVE-2026-31681?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2026-31681 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1e4baa853f1cc4227e04f52d6860524707cfb294
- https://git.kernel.org/stable/c/36bf0d98e180a7c384c8d8a59b0d2d4b80e5eb16
- https://git.kernel.org/stable/c/8368ce8eb01f0b91111d814703696e780d0ef12f
- https://git.kernel.org/stable/c/8c5bf8f5b478f569191c4a7982de7cd5f5f73c1a
- https://git.kernel.org/stable/c/aec14808271f2bf2b656de6ff12dfe73c5fd3b67
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31681. Free for 1 server.
Get started free