Sign-Extension Bug and Initialization Issues in Linux Kernel's Chemical Sensor Driver
CVE-2026-64497
What is CVE-2026-64497?
In the Linux kernel, a vulnerability has been identified within the chemical sensor driver (scd30) that involves improper initialization and a sign-extension error. This issue arises from unclear variable declarations and initializations, which adopted comma separations across multiple lines. The refactoring of these initializations is necessary to ensure better readability, separating the mantissa and exponent as distinct entities and delaying the initialization of the sign. Additionally, the flaw caused a sign-extension bug where float32 values were incorrectly manipulated with bitwise operations that corrupted the exponent, specifically by ANDing with ~BIT(31). Effective cleanup and restructuring of the code are essential to mitigating the negative effects of this vulnerability.
Affected Version(s)
Linux 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 < 0ccff849bde90973e6c13a666f6ceab5c55b30d4
Linux 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 < 1821bcacd8ac5b214c53be16cbb8172bf193f0b6
Linux 64b3d8b1b0f5c16c19045785e4da8391ae35ec99 < 40bb0fdb37f441c9c9f52bf58bbd8a0ca3cc9598