# CVE-2023-53032: netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-03-27T16:44:00.286Z
- Modified: 2026-11-05T21:17:07.747Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from b9fed748185a96b7cfe74afac4bd228e8af16f01 before e137d9bb26bd85ce07323a38e38ceb0b160db841; from b9fed748185a96b7cfe74afac4bd228e8af16f01 before dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f; from b9fed748185a96b7cfe74afac4bd228e8af16f01 before feefb33eefa166fc3e0fd17547b0bc0cb3baced9; from b9fed748185a96b7cfe74afac4bd228e8af16f01 before 4e6a70fd840400e3a2e784a6673968a3eb2431c0; from b9fed748185a96b7cfe74afac4bd228e8af16f01 before 511cf17b2447fc41cfef8d71936e1fa53e395c1e; from b9fed748185a96b7cfe74afac4bd228e8af16f01 before e88865876d47c790be0d5e23973499d75d034364; from b9fed748185a96b7cfe74afac4bd228e8af16f01 before 9ea4b476cea1b7d461d16dda25ca3c7e616e2d15; 3.7 (not affected: before 3.7; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.164 up to 5.10.*; from 5.15.89 up to 5.15.*; from 6.1.7 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 3.7 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.164; from 5.11 before 5.15.89; from 5.16 before 6.1.7; 6.2

## References

- <https://git.kernel.org/stable/c/e137d9bb26bd85ce07323a38e38ceb0b160db841> (patch)
- <https://git.kernel.org/stable/c/dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f> (patch)
- <https://git.kernel.org/stable/c/feefb33eefa166fc3e0fd17547b0bc0cb3baced9> (patch)
- <https://git.kernel.org/stable/c/4e6a70fd840400e3a2e784a6673968a3eb2431c0> (patch)
- <https://git.kernel.org/stable/c/511cf17b2447fc41cfef8d71936e1fa53e395c1e> (patch)
- <https://git.kernel.org/stable/c/e88865876d47c790be0d5e23973499d75d034364> (patch)
- <https://git.kernel.org/stable/c/9ea4b476cea1b7d461d16dda25ca3c7e616e2d15> (patch)

## Sources

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

---

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