CVE-2025-21826
netfilter: nf_tables: reject mismatching sum of field_len with set key length
Check your servers for CVE-2025-21826
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21826 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_tables: reject mismatching sum of field_len with set key length
The field length description provides the length of each separated key field in the concatenation, each field gets rounded up to 32-bits to calculate the pipapo rule width from pipapo_init(). The set key length provides the total size of the key aligned to 32-bits.
Register-based arithmetics still allows for combining mismatching set key length and field length description, eg. set key length 10 and field description [ 5, 4 ] leading to pipapo width of 12.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2d4c0798a1ef8db15b3277697ac2def4eda42312, before 6b467c8feac759f4c5c86d708beca2aa2b29584f affected from 77be8c495a3f841e88b46508cc20d3d7d3289da3, before 5083a7ae45003456c253e981b30a43f71230b4a3 affected from 9cb084df01e198119de477ac691d682fb01e80f3, before 2ac254343d3cf228ae0738b2615fedf85d000752 affected from dc45bb00e66a33de1abb29e3d587880e1d4d9a7e, before 82e491e085719068179ff6a5466b7387cc4bbf32 affected from 3ce67e3793f48c1b9635beb9bb71116ca1e51b58, before 49b7182b97bafbd5645414aff054b4a65d05823d affected from 3ce67e3793f48c1b9635beb9bb71116ca1e51b58, before ab50d0eff4a939d20c37721fd9766347efcdb6f6 affected from 3ce67e3793f48c1b9635beb9bb71116ca1e51b58, before 1b9335a8000fb70742f7db10af314104b6ace220 affected ff67e3e488090908dc015ba04d7407d8bd467f7e affected from 5.10.209, before 5.10.235 affected from 5.15.148, before 5.15.179 affected from 6.1.75, before 6.1.129 affected from 6.6.14, before 6.6.76 affected from 6.7.2, before 6.8
Other versions: unaffected
|
| Linux |
affected 6.8 unaffected before 6.8 unaffected from 5.10.235 up to and including 5.10.* unaffected from 5.15.179 up to and including 5.15.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.76 up to and including 6.6.* unaffected from 6.12.13 up to and including 6.12.* unaffected from 6.13.2 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21826 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21826
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21826
trivy image --scanners vuln IMAGE | grep CVE-2025-21826
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/6b467c8feac759f4c5c86d708beca2aa2b29584f git.kernel.org
- https://git.kernel.org/stable/c/5083a7ae45003456c253e981b30a43f71230b4a3 git.kernel.org
- https://git.kernel.org/stable/c/2ac254343d3cf228ae0738b2615fedf85d000752 git.kernel.org
- https://git.kernel.org/stable/c/82e491e085719068179ff6a5466b7387cc4bbf32 git.kernel.org
- https://git.kernel.org/stable/c/49b7182b97bafbd5645414aff054b4a65d05823d git.kernel.org
- https://git.kernel.org/stable/c/ab50d0eff4a939d20c37721fd9766347efcdb6f6 git.kernel.org
- https://git.kernel.org/stable/c/1b9335a8000fb70742f7db10af314104b6ace220 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-503939.html cert-portal.siemens.com
Source: the record CVE-2025-21826 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse