CVE-2026-100029: hwmon: (sht4x) Fix jiffies wraparound in heater-ready check

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

hwmon: (sht4x) Fix jiffies wraparound in heater-ready check

sht4x stores in ->heatingcomplete 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.

->heatingcomplete is an unsigned long compared with timebefore(), whose signed difference is only meaningful while the two values are within LONGMAX 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. timebefore() in sht4xreadvalues() then wrongly reports that heating is still in progress and the read path executes

msleep(jiffiestomsecs(data->heatingcomplete - currjiffies));

with a bogus, huge delta, blocking the temperature read for a very long time instead of returning data. The heaterenable 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 getjiffies64()/timebefore64(), which does not wrap in any practical uptime.

[groeck: Squashed 'Fix torn read' patch into this one]

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Store sht4x->heating_complete as a 64-bit jiffies value and use get_jiffies_64()/time_before64() to check the deadline.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203