CVE-2023-53179
kernel: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 15, 2025
Updated · October 17, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c
The missing IP_SET_HASH_WITH_NET0 macro in ip_set_hash_netportnet can
lead to the use of wrong CIDR_POS(c) for calculating array offsets,
which can lead to integer underflow. As a result, it leads to slab
out-of-bound access.
This patch adds back the IP_SET_HASH_WITH_NET0 macro to
ip_set_hash_netportnet to address the issue.
Statement
A missing IP_SET_HASH_WITH_NET0 in hash:net,port,net caused wrong CIDR_POS() calculations leading to an integer underflow and slab out-of-bounds access. Exploitation requires CAP_NET_ADMIN (local, high privileges); impact is primarily kernel crash/DoS. Environments not allowing untrusted administrative access to ipset are minimally exposed.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
CWE-190 · Integer Overflow or Wraparound