CVE-2025-21648
JSON

5.5medium

netfilter: conntrack: clamp maximum hashtable size to INT_MAX

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58 before a965f7f0ea3ae61b9165bed619d5d6da02c75f80, from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58 before b1b2353d768f1b80cd7fe045a70adee576b9b338, from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58 before 5552b4fd44be3393b930434a7845d8d95a2a3c33, from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58 before d5807dd1328bbc86e059c5de80d1bbee9d58ca3d, from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58 before f559357d035877b9d0dcd273e0ff83e18e1d46aa, from 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58 before b541ba7d1f5a5b7b3e2e22dc9e40e18a7d6dbc13, 4.7
Not affected: before 4.7, from 5.10.234 up to 5.10.*, from 5.15.177 up to 5.15.*, from 6.1.125 up to 6.1.*, from 6.6.72 up to 6.6.*, from 6.12.10 up to 6.12.*
CVE List
linux linux_kernelfrom 4.7.1 before 5.10.234, from 5.11 before 5.15.177, from 5.16 before 6.1.125, from 6.2 before 6.6.72, from 6.7 before 6.12.10, 4.7, 6.13NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: conntrack: fijar el tamaño máximo de la tabla hash a INT_MAX Utilice INT_MAX como tamaño máximo para la tabla hash de conntrack. De lo contrario, es posible alcanzar WARN_ON_ONCE en __kvmalloc_node_noprof() al cambiar el tamaño de la tabla hash porque __GFP_NOWARN no está configurado. Consulte: 0708a0afe291 ("mm: Considere el indicador __GFP_NOWARN para llamadas kvmalloc() de gran tamaño") Nota: el cambio de tamaño de la tabla hash solo es posible desde init_netns.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21648 changed 2026-11-10CVE Terms of Use
NVDCVE-2025-21648 changed 2026-11-10Public domain