CVE-2023-53032

netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.

MEDIUM
5.5
CVSS Score
Published: March 27, 2025 at 04:44 PM UTC
Updated: June 17, 2026 at 06:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.7 ≤ v < 4.14.3033.7 ≤ v < 4.19.2703.7 ≤ v < 5.10.1643.7 ≤ v < 5.15.893.7 ≤ v < 5.4.2293.7 ≤ v < 6.1.73.7 ≤ v < 6.24.15 ≤ v < 4.19.2704.20 ≤ v < 5.4.2295.11 ≤ v < 5.15.895.16 ≤ v < 6.1.75.5 ≤ v < 5.10.1643.76.2 rc16.2 rc26.2 rc36.2 rc4b9fed748185a96b7cfe74afac4bd228e8af16f01
Vendor states this is fixed in 4e6a70fd840400e3a2e784a6673968a3eb2431c0 (fixed)
Vendor states this is fixed in 511cf17b2447fc41cfef8d71936e1fa53e395c1e (fixed)
Vendor states this is fixed in 9ea4b476cea1b7d461d16dda25ca3c7e616e2d15 (fixed)
Vendor states this is fixed in dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f (fixed)
Vendor states this is fixed in e137d9bb26bd85ce07323a38e38ceb0b160db841 (fixed)
Vendor states this is fixed in e88865876d47c790be0d5e23973499d75d034364 (fixed)
Vendor states this is fixed in feefb33eefa166fc3e0fd17547b0bc0cb3baced9 (fixed)
Vendor states this is fixed in 3.7 (unaffected)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 5.10.164 (unaffected)
Vendor states this is fixed in 5.15.89 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.1.7 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4e6a70fd840400e3a2e784a6673968a3eb2431c0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/511cf17b2447fc41cfef8d71936e1fa53e395c1e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9ea4b476cea1b7d461d16dda25ca3c7e616e2d15
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e137d9bb26bd85ce07323a38e38ceb0b160db841
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e88865876d47c790be0d5e23973499d75d034364
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/feefb33eefa166fc3e0fd17547b0bc0cb3baced9

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card