netfilter: conntrack: clamp maximum hashtable size to INT_MAX
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9cc1c73ad66610bffc80b691136ffc1e9a3b1a58 · < b541ba7d1f5a5b7b3e2e22dc9e40e18a7d6dbc13| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel does not clamp the maximum conntrack hashtable size to INT_MAX. Resizing an oversized hashtable can trigger a kernel warning; resizing is possible only from init_netns. The input does not specify authentication requirements or user interaction.
Engineers running the Linux kernel should check their systems; affected versions are not specified.