# CVE-2023-53179: netfilter: ipset: add the missing IP_SET_HASH_WITH_NET0 macro for ip_set_hash_netportnet.c

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-09-15T14:04:26.782Z
- Modified: 2026-10-15T22:17:38.663Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 0d5d0b5c41f766355f2b42c47d13ea001f754c7d before 7935b636dd693dfe4483cfef4a1e91366c8103fa; from cb3e590df429ce151d5041884a4947099b8ad6a7 before e632d09dffc68b9602d6893a99bfe3001d36cefc; from 886503f34d63e681662057448819edb5b1057a97 before 109e830585e89a03d554bf8ad0e668630d0a6260; from 886503f34d63e681662057448819edb5b1057a97 before 83091f8ac03f118086596f17c9a52d31d6ca94b3; from 886503f34d63e681662057448819edb5b1057a97 before a9e6142e5f8f6ac7d1bca45c1b2b13b084ea9e14; from 886503f34d63e681662057448819edb5b1057a97 before 7ca0706c68adadf86a36b60dca090f5e9481e808; from 886503f34d63e681662057448819edb5b1057a97 before d59b6fc405549f7caf31f6aa5da1d6bef746b166; from 886503f34d63e681662057448819edb5b1057a97 before d95c8420efe684b964e3aa28108e9a354bcd7225; from 886503f34d63e681662057448819edb5b1057a97 before 050d91c03b28ca479df13dfb02bcd2c60dd6a878; 186642845b02e1a7944ef33c3a3ac41eba77517f; 919560afc21f91ca352a20394d5249aba1799690; from 4.14.84 before 4.14.326; and 4 more (not affected: before 4.20; from 4.14.326 up to 4.14.*; from 4.19.295 up to 4.19.*; from 5.4.257 up to 5.4.*; from 5.10.195 up to 5.10.*; from 5.15.132 up to 5.15.*; from 6.1.53 up to 6.1.*; from 6.4.16 up to 6.4.*; from 6.5.3 up to 6.5.*; from 6.6 up to *)
- linux linux_kernel: from 4.4.165 before 4.5; from 4.9.141 before 4.10; from 4.14.84 before 4.14.326; from 4.19.5 before 4.19.295; from 4.20.1 before 5.4.257; from 5.5 before 5.10.195; from 5.11 before 5.15.132; from 5.16 before 6.1.53; from 6.2 before 6.4.16; from 6.5 before 6.5.3; 4.20

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2023-53179](https://www.cve.org/CVERecord?id=CVE-2023-53179), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2023-53179](https://nvd.nist.gov/vuln/detail/CVE-2023-53179), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2023-53179 · Whole record: https://cve.day/CVE-2023-53179.json · Rebuilt by cve.day 2026-11-25T22:58:34.760Z
