CVE-2023-53032
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelfrom 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.2NVD

Classification

CWE-190

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: netfilter: ipset: Se corrige el desbordamiento antes de la función "widen" en la función bitmap_ip_create(). Cuando first_ip es 0, last_ip es 0xFFFFFFFF y netmask es 31, el valor de una expresión aritmética 2 &lt;&lt; (netmask - mask_bits - 1) está sujeto a desbordamiento debido a un error al convertir operandos a un tipo de dato mayor antes de realizar la operación aritmética. Tenga en cuenta que esto es inofensivo, ya que el valor se comprobará en el siguiente paso. Encontrado por InfoTeCS en nombre del Centro de Verificación de Linux (linuxtesting.org) con SVACE.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-53032 changed 2026-11-05CVE Terms of Use
NVDCVE-2023-53032 changed 2026-11-05Public domain