CVE-2023-53032 netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
An integer overflow in the Linux kernel ipset module is fixed, though the issue is described as harmless due to subsequent checks.
- 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-53032?
CVE-2023-53032 is a medium-severity vulnerability in Linux kernel, published on 27 Mar 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: Fix overflow before widen in the bitmap_ip_create() function.
When first_ip is 0, last_ip is 0xFFFFFFFF, and netmask is 31, the value of an arithmetic expression 2 << (netmask - mask_bits - 1) is subject to overflow due to a failure casting operands to a larger data type before performing the arithmetic.
Note that it's harmless since the value will be checked at the next step.
Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE.
Weakness: CWE-190
Which versions are affected by CVE-2023-53032?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53032?
Apply the vendor's patch.
Is CVE-2023-53032 being exploited?
There is no known exploitation of CVE-2023-53032 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53032, DEBIAN-CVE-2023-53032, GHSA-g5qc-p7w9-v26c, UBUNTU-CVE-2023-53032.