Medium · published January 19, 2025
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.
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 4.7.1, < 5.10.234 | 5.10.234 |
| linux/linux_kernel | ≥ 5.11, < 5.15.177 | 5.15.177 |
| linux/linux_kernel | ≥ 5.16, < 6.1.125 | 6.1.125 |
| linux/linux_kernel | ≥ 6.2, < 6.6.72 | 6.6.72 |
| linux/linux_kernel | ≥ 6.7, < 6.12.10 | 6.12.10 |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |