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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
b9fed748185a96b7cfe74afac4bd228e8af16f01 to < e137d9bb26bd85ce07323a38e38ceb0b160db841affectedb9fed748185a96b7cfe74afac4bd228e8af16f01 to < dfd834ccc1b88bbbab81b9046a3a539dd0c2d14faffectedb9fed748185a96b7cfe74afac4bd228e8af16f01 to < feefb33eefa166fc3e0fd17547b0bc0cb3baced9affectedb9fed748185a96b7cfe74afac4bd228e8af16f01 to < 4e6a70fd840400e3a2e784a6673968a3eb2431c0affectedb9fed748185a96b7cfe74afac4bd228e8af16f01 to < 511cf17b2447fc41cfef8d71936e1fa53e395c1eaffectedb9fed748185a96b7cfe74afac4bd228e8af16f01 to < e88865876d47c790be0d5e23973499d75d034364affectedb9fed748185a96b7cfe74afac4bd228e8af16f01 to < 9ea4b476cea1b7d461d16dda25ca3c7e616e2d15affected
Linux Linux
Default version status: affected
3.7affected0 to < 3.7unaffected4.14.303 to ≤ 4.14.*unaffected4.19.270 to ≤ 4.19.*unaffected5.4.229 to ≤ 5.4.*unaffected5.10.164 to ≤ 5.10.*unaffected5.15.89 to ≤ 5.15.*unaffected6.1.7 to ≤ 6.1.*unaffected6.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/e137d9bb26bd85ce07323a38e38ceb0b160db841 ↗
- https://git.kernel.org/stable/c/dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f ↗
- https://git.kernel.org/stable/c/feefb33eefa166fc3e0fd17547b0bc0cb3baced9 ↗
- https://git.kernel.org/stable/c/4e6a70fd840400e3a2e784a6673968a3eb2431c0 ↗
- https://git.kernel.org/stable/c/511cf17b2447fc41cfef8d71936e1fa53e395c1e ↗
- https://git.kernel.org/stable/c/e88865876d47c790be0d5e23973499d75d034364 ↗
- https://git.kernel.org/stable/c/9ea4b476cea1b7d461d16dda25ca3c7e616e2d15 ↗