{"id":"CVE-2026-74604","state":"PUBLISHED","title":"Revert \"thermal/drivers/hwmon: Cleanup coding style a bit\"","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"thermal/drivers/hwmon: Cleanup coding style a bit\"\n\nRevert commit 030a48b0f6ce (\"thermal/drivers/hwmon: Cleanup coding style\na bit\") that introduced a use-after-free into the error path of\nthermal_add_hwmon_sysfs() by removing a valid check from it.","publishedAt":"2026-08-22T15:31:52.295Z","updatedAt":"2026-10-16T19:06:00.603Z","severity":{"score":8.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"2434f4765da8ccd7ef31be88b86f1bfa2e95be11","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"999e573212d5f1debf073c68be35e55bbfad12fc","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"8d34019d1413629a434a7e8d9f91c76d256196a0","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"6b446d335ba16e93a266dd77adf1ba51abc82df4","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"ff8da20b6f47c48d46e47f93f7a59e2d56ee9107","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/thermal/thermal_hwmon.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.152","status":"unaffected","lessThanOrEqual":"6.6.*","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/thermal/thermal_hwmon.c"]}],"references":["https://git.kernel.org/stable/c/2434f4765da8ccd7ef31be88b86f1bfa2e95be11","https://git.kernel.org/stable/c/b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366","https://git.kernel.org/stable/c/999e573212d5f1debf073c68be35e55bbfad12fc","https://git.kernel.org/stable/c/6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a","https://git.kernel.org/stable/c/8d34019d1413629a434a7e8d9f91c76d256196a0","https://git.kernel.org/stable/c/6b446d335ba16e93a266dd77adf1ba51abc82df4","https://git.kernel.org/stable/c/ff8da20b6f47c48d46e47f93f7a59e2d56ee9107"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74604.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74604","state":"PUBLISHED","datePublished":"2026-08-22T15:31:52.295Z","dateUpdated":"2026-10-16T19:06:00.603Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.919Z"},"containers":{"cna":{"title":"Revert \"thermal/drivers/hwmon: Cleanup coding style a bit\"","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRevert \"thermal/drivers/hwmon: Cleanup coding style a bit\"\n\nRevert commit 030a48b0f6ce (\"thermal/drivers/hwmon: Cleanup coding style\na bit\") that introduced a use-after-free into the error path of\nthermal_add_hwmon_sysfs() by removing a valid check from it."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"2434f4765da8ccd7ef31be88b86f1bfa2e95be11","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"999e573212d5f1debf073c68be35e55bbfad12fc","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"8d34019d1413629a434a7e8d9f91c76d256196a0","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"6b446d335ba16e93a266dd77adf1ba51abc82df4","versionType":"git"},{"version":"030a48b0f6ce393d78b8d33debb1e2043b8cc156","status":"affected","lessThan":"ff8da20b6f47c48d46e47f93f7a59e2d56ee9107","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/thermal/thermal_hwmon.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.15.216","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.183","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.152","status":"unaffected","lessThanOrEqual":"6.6.*","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/thermal/thermal_hwmon.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2434f4765da8ccd7ef31be88b86f1bfa2e95be11"},{"url":"https://git.kernel.org/stable/c/b4c01ae6dd56d9dfd96bd1b29c28afa8fa06b366"},{"url":"https://git.kernel.org/stable/c/999e573212d5f1debf073c68be35e55bbfad12fc"},{"url":"https://git.kernel.org/stable/c/6a48ee9a5bda0f8ee501f9bef159fb9f39ff519a"},{"url":"https://git.kernel.org/stable/c/8d34019d1413629a434a7e8d9f91c76d256196a0"},{"url":"https://git.kernel.org/stable/c/6b446d335ba16e93a266dd77adf1ba51abc82df4"},{"url":"https://git.kernel.org/stable/c/ff8da20b6f47c48d46e47f93f7a59e2d56ee9107"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is in thermal_add_hwmon_sysfs() during thermal zone/hwmon driver registration; it is only reachable from kernel thermal driver probe/init paths, not from network protocols or physical buses.\nAC:L - When a second thermal zone shares an existing hwmon type and registration fails, the error path deterministically kfree()s a still-linked hwmon object, leaving a dangling entry that any later sysfs access can hit without winning a race.\nPR:N - No privileges are needed to exploit the resulting UAF: hwmon temp attributes are world-readable (0444) and unprivileged local processes routinely read /sys/class/hwmon on phones, servers, and embedded devices after latent corruption during multi-sensor thermal probe.\nUI:N - Exploitation requires no victim interaction beyond normal system operation; reading thermal sensors or subsequent kernel hwmon operations can trigger use of the freed object automatically.\nS:U - Impact is confined to kernel memory corruption and privilege escalation within the host kernel; it does not cross VM, container, or IOMMU security boundaries by itself.\nC:H - The use-after-free of struct thermal_hwmon_device leaves a dangling list entry and device pointer; subsequent sysfs reads or thermal hwmon operations can dereference attacker-influencable freed heap memory, enabling arbitrary kernel memory disclosure.\nI:H - Heap UAF on a long-lived thermal_hwmon_device structure adjacent to list pointers and device objects provides standard kernel heap corruption primitives that can be developed into arbitrary write and local privilege escalation.\nA:H - Use-after-free in kernel thermal/hwmon registration can cause immediate kernel oops/panic on access to the freed hwmon device, and repeated or concurrent sysfs access can reliably crash or hang the system."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-25T05:40:28.622Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.216"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.1.183"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.6.152"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.12.104"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.18.45"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.1.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-74604","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T19:02:06.926794Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T19:06:00.603Z"}}]}}}