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

High 7.8 Published Updated

A missing macro in the Linux kernel ipset module causes integer underflow and slab out-of-bound access, potentially allowing local attackers to execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-53179?

CVE-2023-53179 is a high-severity vulnerability in Linux kernel, published on 15 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-787

Which versions are affected by CVE-2023-53179?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2023-53179?

Apply the vendor's patch.

Is CVE-2023-53179 being exploited?

There is no known exploitation of CVE-2023-53179 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2023-53179, DEBIAN-CVE-2023-53179, GHSA-95q3-rgv7-prpr, UBUNTU-CVE-2023-53179.

Is CVE-2023-53179 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free