netfilter: ipset: Fix overflow before widen in the bitmap_ip_create() function.
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4.14.303, Kernel 4.19.270, Kernel 5.4.229 and 10 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=3.7 <4.14.303, >=4.15 <4.19.270, >=4.20 <5.4.229, >=5.11 <5.15.89, >=5.16 <6.1.7, >=5.5 <5.10.164, =6.2, >=b9fed748185a96b7cfe74afac4bd228e8af16f01 <511cf17b2447fc41cfef8d71936e1fa53e395c1e, >=b9fed748185a96b7cfe74afac4bd228e8af16f01 <9ea4b476cea1b7d461d16dda25ca3c7e616e2d15, >=b9fed748185a96b7cfe74afac4bd228e8af16f01 <dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f, >=b9fed748185a96b7cfe74afac4bd228e8af16f01 <e137d9bb26bd85ce07323a38e38ceb0b160db841, >=b9fed748185a96b7cfe74afac4bd228e8af16f01 <e88865876d47c790be0d5e23973499d75d034364, >=b9fed748185a96b7cfe74afac4bd228e8af16f01 <feefb33eefa166fc3e0fd17547b0bc0cb3baced9, =3.7, >=b9fed748185a96b7cfe74afac4bd228e8af16f01 <4e6a70fd840400e3a2e784a6673968a3eb2431c0 | 4.14.303, 4.19.270, 5.4.229, 5.15.89, 6.1.7, 5.10.164, 511cf17b2447fc41cfef8d71936e1fa53e395c1e, 9ea4b476cea1b7d461d16dda25ca3c7e616e2d15, dfd834ccc1b88bbbab81b9046a3a539dd0c2d14f, e137d9bb26bd85ce07323a38e38ceb0b160db841, e88865876d47c790be0d5e23973499d75d034364, feefb33eefa166fc3e0fd17547b0bc0cb3baced9, 4e6a70fd840400e3a2e784a6673968a3eb2431c0 |
| linux-kernel: Kernel | >=3.7.0 <4.14.303, >=4.15.0 <4.19.270, >=4.20.0 <5.4.229, >=5.11.0 <5.15.89, >=5.16.0 <6.1.7, >=5.5.0 <5.10.164 | 4.14.303, 4.19.270, 5.4.229, 5.15.89, 6.1.7, 5.10.164 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket