{"id":"CVE-2026-100029","aliases":["CVE-2026-100029"],"related":[],"kind":"vulnerability","state":"published","title":"hwmon: (sht4x) Fix jiffies wraparound in heater-ready check","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (sht4x) Fix jiffies wraparound in heater-ready check\n\nsht4x stores in ->heating_complete the jiffies deadline at which the\ncurrent heater pulse finishes. It is set once at probe (to jiffies) and\nonly updated when the heater is explicitly enabled via sysfs, so in the\ncommon case where the heater is never used it stays frozen at its probe\nvalue.\n\n->heating_complete is an unsigned long compared with time_before(),\nwhose signed difference is only meaningful while the two values are\nwithin LONG_MAX jiffies of each other. Because the deadline is frozen,\njiffies keeps advancing away from it, and after 2^31 jiffies the\ndifference flips sign. On a 32-bit HZ=100 kernel that happens ~248.5\ndays after boot. time_before() in sht4x_read_values() then wrongly\nreports that heating is still in progress and the read path executes\n\n\tmsleep(jiffies_to_msecs(data->heating_complete - curr_jiffies));\n\nwith a bogus, huge delta, blocking the temperature read for a very long\ntime instead of returning data. The heater_enable sysfs attributes are\naffected the same way (spurious -EBUSY and \"1\" readback).\n\nStore the deadline as a 64-bit jiffies value and compare it with\nget_jiffies_64()/time_before64(), which does not wrap in any practical\nuptime.\n\n[groeck: Squashed 'Fix torn read' patch into this one]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (sht4x) Fix jiffies wraparound in heater-ready check\n\nsht4x stores in ->heating_complete the jiffies deadline at which the\ncurrent heater pulse finishes. It is set once at probe (to jiffies) and\nonly updated when the heater is explicitly enabled via sysfs, so in the\ncommon case where the heater is never used it stays frozen at its probe\nvalue.\n\n->heating_complete is an unsigned long compared with time_before(),\nwhose signed difference is only meaningful while the two values are\nwithin LONG_MAX jiffies of each other. Because the deadline is frozen,\njiffies keeps advancing away from it, and after 2^31 jiffies the\ndifference flips sign. On a 32-bit HZ=100 kernel that happens ~248.5\ndays after boot. time_before() in sht4x_read_values() then wrongly\nreports that heating is still in progress and the read path executes\n\n\tmsleep(jiffies_to_msecs(data->heating_complete - curr_jiffies));\n\nwith a bogus, huge delta, blocking the temperature read for a very long\ntime instead of returning data. The heater_enable sysfs attributes are\naffected the same way (spurious -EBUSY and \"1\" readback).\n\nStore the deadline as a 64-bit jiffies value and compare it with\nget_jiffies_64()/time_before64(), which does not wrap in any practical\nuptime.\n\n[groeck: Squashed 'Fix torn read' patch into this one]","source":"cvelist"}],"published":"2026-11-30T13:23:13.490Z","modified":"2026-11-30T14:17:18.597Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f","fixed":"580203eaebaa611f43c07793c77c9c97df9d4a72","status":"affected"},{"type":"git","introduced":"0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f","fixed":"979ebd599c5ce68066baa30601596220b85dce58","status":"affected"},{"type":"git","introduced":"0eed6fc3d2b9eef8074dc799176e0c1e78a3cc3f","fixed":"ce3ff350c4a3b9466bd67bfe2adb2e3bea732b9e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/580203eaebaa611f43c07793c77c9c97df9d4a72","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/979ebd599c5ce68066baa30601596220b85dce58","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce3ff350c4a3b9466bd67bfe2adb2e3bea732b9e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-100029","url":"https://www.cve.org/CVERecord?id=CVE-2026-100029","licence":"CVE Terms of Use","modified":"2026-11-30T13:23:13.490Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-100029","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100029","licence":"Public domain","modified":"2026-11-30T14:17:18.597Z"}],"updatedAt":"2026-11-30T14:32:19.145Z","epss":{"score":0.00174,"percentile":0.07146,"date":"2026-12-01T12:00:22.000Z"}}