Skip to contentSkip to conversation

CVE-2026-80695: hwmon: (sht3x) Fix unaligned accesses

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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().

The Linux kernel CVE team has assigned CVE-2026-80695 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.8 with commit 7c84f7f80d6fcea36246b793d06c3555ca53ddcd and fixed in 6.12.103 with commit 81529add4a2e3cca9240e0e2342973d62f88f02e
	Issue introduced in 4.8 with commit 7c84f7f80d6fcea36246b793d06c3555ca53ddcd and fixed in 6.18.44 with commit c498adfd4c3e85306ccdc19b76e639bfc215f0e7
	Issue introduced in 4.8 with commit 7c84f7f80d6fcea36246b793d06c3555ca53ddcd and fixed in 7.1.8 with commit 1fb41650bc3e14d2a5ddb4bb25e96811e5afe881
	Issue introduced in 4.8 with commit 7c84f7f80d6fcea36246b793d06c3555ca53ddcd and fixed in 7.2 with commit f46d5ab43a572b84773015a76966f5da56fc1748

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80695

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/hwmon/sht3x.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/81529add4a2e3cca9240e0e2342973d62f88f02e
	https://git.kernel.org/stable/c/c498adfd4c3e85306ccdc19b76e639bfc215f0e7
	https://git.kernel.org/stable/c/1fb41650bc3e14d2a5ddb4bb25e96811e5afe881
	https://git.kernel.org/stable/c/f46d5ab43a572b84773015a76966f5da56fc1748