iio: chemical: scd30: Cleanup initializations and fix sign-extension bug
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.212, Kernel 6.1.178, Kernel 5.10.261 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: iio: chemical: scd30: Cleanup initializations and fix sign-extension bug Include linux/bitfield.h for FIELD_GET(). Create new macros for bit manipulation in combination with manual bit manipulation being replaced with FIELD_GET(). The current variable declaration and initializations are barely readable and use comma separations across multiple lines. Refactor the initializations so that mantissa and exp have separate declarations and sign gets initialized later. In addition (and due to the nature of the cleanup), fix a sign-extension bug where, float32 would get bitwise anded with ~BIT(31) (which is 0xFFFFFFFF7FFFFFFF) which corrupted the exponent.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11 <5.15.212, >=5.16 <6.1.178, >=5.9 <5.10.261, >=6.13 <6.18.39, >=6.19 <7.1.4, >=6.2 <6.6.145, >=6.7 <6.12.96, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <1821bcacd8ac5b214c53be16cbb8172bf193f0b6, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <40bb0fdb37f441c9c9f52bf58bbd8a0ca3cc9598, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <60d877910a43c305b5165131b258a17b1d772d57, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <82accdd57404399eddf3d56fd9beda7c61307388, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <8d4a46e971cf846bda98b20d4cabfa21c1276e5f, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <b131f0011dfef72350f4e3f11df94dc3e6b46065, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <d49ff54b2784aa56a7c97982de713604de89d23a, =5.9, >=64b3d8b1b0f5c16c19045785e4da8391ae35ec99 <0ccff849bde90973e6c13a666f6ceab5c55b30d4 | 5.15.212, 6.1.178, 5.10.261, 6.18.39, 7.1.4, 6.6.145, 6.12.96, 1821bcacd8ac5b214c53be16cbb8172bf193f0b6, 40bb0fdb37f441c9c9f52bf58bbd8a0ca3cc9598, 60d877910a43c305b5165131b258a17b1d772d57, 82accdd57404399eddf3d56fd9beda7c61307388, 8d4a46e971cf846bda98b20d4cabfa21c1276e5f, b131f0011dfef72350f4e3f11df94dc3e6b46065, d49ff54b2784aa56a7c97982de713604de89d23a, 0ccff849bde90973e6c13a666f6ceab5c55b30d4 |
| linux-kernel: Kernel | >=5.11.0 <5.15.212, >=5.16.0 <6.1.178, >=5.9.0 <5.10.261, >=6.13.0 <6.18.39, >=6.19.0 <7.1.4, >=6.2.0 <6.6.145, >=6.7.0 <6.12.96 | 5.15.212, 6.1.178, 5.10.261, 6.18.39, 7.1.4, 6.6.145, 6.12.96 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket