hwmon: (sht3x) Fix unaligned accesses
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f46d5ab43a572b84773015a76966f5da56fc1748, Kernel 1fb41650bc3e14d2a5ddb4bb25e96811e5afe881, Kernel 3eed79d882c98f1805dc537ed393d8e257a46017 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: hwmon: (sht3x) Fix unaligned accesses Sashiko reports: In sht3x_update_client(), the 16-bit temperature and humidity values are extracted from a stack-allocated byte array using be16_to_cpup(). The pointers passed to this function are calculated as buf and buf + 3. Since the difference between the two pointers is an odd number of bytes, at least one of them is guaranteed to be at an unaligned offset. This will trigger an alignment fault on strict-alignment architectures such as ARMv5 or SPARC, resulting in a kernel panic. Fix the problem by using get_unaligned_be16() instead of be16_to_cpup(), and put_unaligned_be16() instead of cpu_to_be16().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=7c84f7f80d6fcea36246b793d06c3555ca53ddcd <f46d5ab43a572b84773015a76966f5da56fc1748, >=7c84f7f80d6fcea36246b793d06c3555ca53ddcd <1fb41650bc3e14d2a5ddb4bb25e96811e5afe881, >=7c84f7f80d6fcea36246b793d06c3555ca53ddcd <3eed79d882c98f1805dc537ed393d8e257a46017, >=7c84f7f80d6fcea36246b793d06c3555ca53ddcd <81529add4a2e3cca9240e0e2342973d62f88f02e, >=7c84f7f80d6fcea36246b793d06c3555ca53ddcd <c41fa44be44e452e7aec2081195488d685026761, >=7c84f7f80d6fcea36246b793d06c3555ca53ddcd <c498adfd4c3e85306ccdc19b76e639bfc215f0e7, =4.8 | f46d5ab43a572b84773015a76966f5da56fc1748, 1fb41650bc3e14d2a5ddb4bb25e96811e5afe881, 3eed79d882c98f1805dc537ed393d8e257a46017, 81529add4a2e3cca9240e0e2342973d62f88f02e, c41fa44be44e452e7aec2081195488d685026761, c498adfd4c3e85306ccdc19b76e639bfc215f0e7 |
| linux-kernel: Kernel | >=6.13.0 <6.18.44, >=6.19.0 <7.1.8, >=6.2.0 <6.6.160, >=6.7.0 <6.12.103, >=4.8.0 <6.1.191 | 6.18.44, 7.1.8, 6.6.160, 6.12.103, 6.1.191 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket