netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b9fed748185a96b7cfe74afac4bd228e8af16f01 · < e88865876d47c790be0d5e23973499d75d034364| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s netfilter ipset bitmap_ip_create() function can overflow an arithmetic expression when first_ip is 0, last_ip is 0xFFFFFFFF, and netmask is 31. The input describes the overflow as harmless because the value is checked in the next step; it does not establish an attacker impact, access requirements, or user interaction.
Engineers running Linux kernels with netfilter ipset should check their versions against the vendor advisory; affected versions are not specified.