Bug 2338814 (CVE-2025-21648) - CVE-2025-21648 kernel: netfilter: conntrack: clamp maximum hashtable size to INT_MAX
Summary: CVE-2025-21648 kernel: netfilter: conntrack: clamp maximum hashtable size to ...
Keywords:
Status: NEW
Alias: CVE-2025-21648
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-19 11:01 UTC by OSIDB Bzimport
Modified: 2025-02-04 15:28 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-19 11:01:16 UTC
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.

Comment 1 Avinash Hanwate 2025-01-20 07:46:16 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011946-CVE-2025-21648-bcda@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.