---
id: CVE-2023-53032
title: >-
  netfilter: ipset: Fix overflow before widen in the bitmap_ip_create()
  function.
summary: >-
  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 arithmeti…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 <
    e137d9bb26bd85ce07323a38e38ceb0b160db841
  - >-
    Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 <
    dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f
  - >-
    Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 <
    feefb33eefa166fc3e0fd17547b0bc0cb3baced9
  - >-
    Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 <
    4e6a70fd840400e3a2e784a6673968a3eb2431c0
  - >-
    Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 <
    511cf17b2447fc41cfef8d71936e1fa53e395c1e
  - >-
    Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 <
    e88865876d47c790be0d5e23973499d75d034364
  - >-
    Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 <
    9ea4b476cea1b7d461d16dda25ca3c7e616e2d15
  - Linux 3.7
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:14:51.390619Z'
published: '2025-03-27'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T20:20:54.972Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2023-53032'
references:
  - url: 'https://git.kernel.org/stable/c/e137d9bb26bd85ce07323a38e38ceb0b160db841'
  - url: 'https://git.kernel.org/stable/c/dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f'
  - url: 'https://git.kernel.org/stable/c/feefb33eefa166fc3e0fd17547b0bc0cb3baced9'
  - url: 'https://git.kernel.org/stable/c/4e6a70fd840400e3a2e784a6673968a3eb2431c0'
  - url: 'https://git.kernel.org/stable/c/511cf17b2447fc41cfef8d71936e1fa53e395c1e'
  - url: 'https://git.kernel.org/stable/c/e88865876d47c790be0d5e23973499d75d034364'
  - url: 'https://git.kernel.org/stable/c/9ea4b476cea1b7d461d16dda25ca3c7e616e2d15'
tags:
  - cve.org
epss: 0.00201
epssPercentile: 0.10053
ingestedAt: '2026-11-05T22:38:31.752Z'
---

## Overview

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.

## Affected

- `Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 < e137d9bb26bd85ce07323a38e38ceb0b160db841`
- `Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 < dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f`
- `Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 < feefb33eefa166fc3e0fd17547b0bc0cb3baced9`
- `Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 < 4e6a70fd840400e3a2e784a6673968a3eb2431c0`
- `Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 < 511cf17b2447fc41cfef8d71936e1fa53e395c1e`
- `Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 < e88865876d47c790be0d5e23973499d75d034364`
- `Linux >= b9fed748185a96b7cfe74afac4bd228e8af16f01 < 9ea4b476cea1b7d461d16dda25ca3c7e616e2d15`
- `Linux 3.7`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
