CVE-2026-100029
publishedhwmon: (sht4x) Fix jiffies wraparound in heater-ready check
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f to < 580203eaebaa611f43c07793c77c9c97df9d4a72 · 0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f to < 979ebd599c5ce68066baa30601596220b85dce58 · 0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f to < ce3ff350c4a3b9466bd67bfe2adb2e3bea732b9e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.13 (affected) · 0 to < 6.13 (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
Description
In the Linux kernel, the following vulnerability has been resolved: hwmon: (sht4x) Fix jiffies wraparound in heater-ready check sht4x stores in ->heating_complete the jiffies deadline at which the current heater pulse finishes. It is set once at probe (to jiffies) and only updated when the heater is explicitly enabled via sysfs, so in the common case where the heater is never used it stays frozen at its probe value. ->heating_complete is an unsigned long compared with time_before(), whose signed difference is only meaningful while the two values are within LONG_MAX jiffies of each other. Because the deadline is frozen, jiffies keeps advancing away from it, and after 2^31 jiffies the difference flips sign. On a 32-bit HZ=100 kernel that happens ~248.5 days after boot. time_before() in sht4x_read_values() then wrongly reports that heating is still in progress and the read path executes msleep(jiffies_to_msecs(data->heating_complete - curr_jiffies)); with a bogus, huge delta, blocking the temperature read for a very long time instead of returning data. The heater_enable sysfs attributes are affected the same way (spurious -EBUSY and "1" readback). Store the deadline as a 64-bit jiffies value and compare it with get_jiffies_64()/time_before64(), which does not wrap in any practical uptime. [groeck: Squashed 'Fix torn read' patch into this one]
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f to < 580203eaebaa611f43c07793c77c9c97df9d4a72 (affected · git)0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f to < 979ebd599c5ce68066baa30601596220b85dce58 (affected · git)0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f to < ce3ff350c4a3b9466bd67bfe2adb2e3bea732b9e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.13 (affected)0 to < 6.13 (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
hwmon: (sht4x) Fix jiffies wraparound in heater-ready check
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8b78beaa75e33589c3e91f8b214168d706390a0e164a44ac37f1cd565738c461
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record