CVE-2025-21648
netfilter: conntrack: clamp maximum hashtable size to INT_MAX
Check your servers for CVE-2025-21648
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-21648 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: conntrack: clamp maximum hashtable size to INT_MAX
Use INT_MAX as maximum size for the conntrack hashtable. Otherwise, it is possible to hit WARN_ON_ONCE in __kvmalloc_node_noprof() when resizing hashtable because __GFP_NOWARN is unset. See:
0708a0afe291 ("mm: Consider __GFP_NOWARN flag for oversized kvmalloc() calls")
Note: hashtable resize is only possible from init_netns.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58, before a965f7f0ea3ae61b9165bed619d5d6da02c75f80 affected from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58, before b1b2353d768f1b80cd7fe045a70adee576b9b338 affected from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58, before 5552b4fd44be3393b930434a7845d8d95a2a3c33 affected from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58, before d5807dd1328bbc86e059c5de80d1bbee9d58ca3d affected from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58, before f559357d035877b9d0dcd273e0ff83e18e1d46aa affected from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58, before b541ba7d1f5a5b7b3e2e22dc9e40e18a7d6dbc13
Other versions: unaffected
|
| Linux |
affected 4.7 unaffected before 4.7 unaffected from 5.10.234 up to and including 5.10.* unaffected from 5.15.177 up to and including 5.15.* unaffected from 6.1.125 up to and including 6.1.* unaffected from 6.6.72 up to and including 6.6.* unaffected from 6.12.10 up to and including 6.12.* unaffected 6.13 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-21648 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21648
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-21648
trivy image --scanners vuln IMAGE | grep CVE-2025-21648
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/a965f7f0ea3ae61b9165bed619d5d6da02c75f80 git.kernel.org
- https://git.kernel.org/stable/c/b1b2353d768f1b80cd7fe045a70adee576b9b338 git.kernel.org
- https://git.kernel.org/stable/c/5552b4fd44be3393b930434a7845d8d95a2a3c33 git.kernel.org
- https://git.kernel.org/stable/c/d5807dd1328bbc86e059c5de80d1bbee9d58ca3d git.kernel.org
- https://git.kernel.org/stable/c/f559357d035877b9d0dcd273e0ff83e18e1d46aa git.kernel.org
- https://git.kernel.org/stable/c/b541ba7d1f5a5b7b3e2e22dc9e40e18a7d6dbc13 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.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-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2025-21648 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