{"id":"CVE-2026-74685","state":"PUBLISHED","title":"hwmon: (ltc4282) Clamp negative current limits","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (ltc4282) Clamp negative current limits\n\nWhen a negative value is passed to ltc4282_write_curr(), the signed long\nval is cast directly to u64:\n\ndrivers/hwmon/ltc4282.c:ltc4282_write_curr() {\n        /* need to pass it in millivolt */\n        u32 in = DIV_ROUND_CLOSEST_ULL((u64)val * st->rsense, DECA * MICRO);\n        ...\n}\n\nThis cast converts negative inputs into large positive values. The\nsubsequent division result overflows the u32 in variable, truncating\nto a pseudo-random positive value. When this is passed to\nltc4282_write_voltage_byte(), it is clamped to the maximum limit instead\nof zero.\n\nClamp val to 0 and to the maximum supported upper limit before the cast\nand assign the result to a 64-bit temporary variable before the division\nto avoid the underflow and an also possible overflow.","publishedAt":"2026-08-22T15:32:51.493Z","updatedAt":"2026-08-22T15:32:51.493Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"60e06c4dba696173982393252a40ceb7dd2eec18","versionType":"git"},{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"de58b90a4d1417c15b693eb04c0ce6bc925d84c6","versionType":"git"},{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"046e56b53c09375ef39903514496aa5508db9729","versionType":"git"},{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"e253dd5f9f6d875a317895bf43ec9534ed7523cb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hwmon/ltc4282.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.104","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.45","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.9","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hwmon/ltc4282.c"]}],"references":["https://git.kernel.org/stable/c/60e06c4dba696173982393252a40ceb7dd2eec18","https://git.kernel.org/stable/c/de58b90a4d1417c15b693eb04c0ce6bc925d84c6","https://git.kernel.org/stable/c/046e56b53c09375ef39903514496aa5508db9729","https://git.kernel.org/stable/c/e253dd5f9f6d875a317895bf43ec9534ed7523cb"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74685.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74685","state":"PUBLISHED","datePublished":"2026-08-22T15:32:51.493Z","dateUpdated":"2026-08-22T15:32:51.493Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.926Z"},"containers":{"cna":{"title":"hwmon: (ltc4282) Clamp negative current limits","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (ltc4282) Clamp negative current limits\n\nWhen a negative value is passed to ltc4282_write_curr(), the signed long\nval is cast directly to u64:\n\ndrivers/hwmon/ltc4282.c:ltc4282_write_curr() {\n        /* need to pass it in millivolt */\n        u32 in = DIV_ROUND_CLOSEST_ULL((u64)val * st->rsense, DECA * MICRO);\n        ...\n}\n\nThis cast converts negative inputs into large positive values. The\nsubsequent division result overflows the u32 in variable, truncating\nto a pseudo-random positive value. When this is passed to\nltc4282_write_voltage_byte(), it is clamped to the maximum limit instead\nof zero.\n\nClamp val to 0 and to the maximum supported upper limit before the cast\nand assign the result to a 64-bit temporary variable before the division\nto avoid the underflow and an also possible overflow."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"60e06c4dba696173982393252a40ceb7dd2eec18","versionType":"git"},{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"de58b90a4d1417c15b693eb04c0ce6bc925d84c6","versionType":"git"},{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"046e56b53c09375ef39903514496aa5508db9729","versionType":"git"},{"version":"cbc29538dbf7d7400f1ffc5dd5713e6a551463a0","status":"affected","lessThan":"e253dd5f9f6d875a317895bf43ec9534ed7523cb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hwmon/ltc4282.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.9","versionType":"semver"},{"version":"6.12.104","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.45","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.9","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hwmon/ltc4282.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/60e06c4dba696173982393252a40ceb7dd2eec18"},{"url":"https://git.kernel.org/stable/c/de58b90a4d1417c15b693eb04c0ce6bc925d84c6"},{"url":"https://git.kernel.org/stable/c/046e56b53c09375ef39903514496aa5508db9729"},{"url":"https://git.kernel.org/stable/c/e253dd5f9f6d875a317895bf43ec9534ed7523cb"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-22T15:32:51.493Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.12.104"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"6.18.45"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.1.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.9","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}