CVE-2023-53032

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

State
Published
Severity
Not scored
Published
Mar 27, 2025
Updated
May 11, 2026
Reserved
Mar 27, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b9fed748185a96b7cfe74afac4bd228e8af16f01 to before e137d9bb26bd85ce07323a38e38ceb0b160db841Affected
  • b9fed748185a96b7cfe74afac4bd228e8af16f01 to before dfd834ccc1b88bbbab81b9046a3a539dd0c2d14fAffected
  • b9fed748185a96b7cfe74afac4bd228e8af16f01 to before feefb33eefa166fc3e0fd17547b0bc0cb3baced9Affected
  • b9fed748185a96b7cfe74afac4bd228e8af16f01 to before 4e6a70fd840400e3a2e784a6673968a3eb2431c0Affected
  • b9fed748185a96b7cfe74afac4bd228e8af16f01 to before 511cf17b2447fc41cfef8d71936e1fa53e395c1eAffected
  • b9fed748185a96b7cfe74afac4bd228e8af16f01 to before e88865876d47c790be0d5e23973499d75d034364Affected
  • b9fed748185a96b7cfe74afac4bd228e8af16f01 to before 9ea4b476cea1b7d461d16dda25ca3c7e616e2d15Affected
LinuxLinux
  • 3.7Affected
  • before 3.7Not affected
  • 4.14.303 through 4.14.*Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.164 through 5.10.*Not affected
  • 5.15.89 through 5.15.*Not affected
  • 6.1.7 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.