Skip to contentSkip to conversation

CVE-2026-72394: hwmon: (aspeed-g6-pwm-tach) Guard fan RPM calculation against divide-by-zero

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

hwmon: (aspeed-g6-pwm-tach) Guard fan RPM calculation against divide-by-zero

Sashiko reports:

In the aspeed-g6-pwm-tacho driver, the aspeed_tach_val_to_rpm() function calculates the fan RPM using the tachometer value. However, it does not check if the tachometer value is zero before performing the division.

If the hardware reports a tachometer value of 0 (which can happen due to an extremely fast pulse, a stuck edge, or a hardware glitch), the calculated tach_div evaluates to 0. The subsequent call to do_div() with tach_div as the divisor triggers a divide-by-zero exception, leading to a kernel panic.

Check the divisor against zero to fix the problem.

The Linux kernel CVE team has assigned CVE-2026-72394 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.9 with commit 7e1449cd15d1096157d1a9923b82e37602fb7eb0 and fixed in 6.12.97 with commit a3f98bd397398e2d4a7f98e006b5aaf4d54ebdf3
	Issue introduced in 6.9 with commit 7e1449cd15d1096157d1a9923b82e37602fb7eb0 and fixed in 6.18.40 with commit 898ca04b096b9e4640300eab91468c826a1ec92b
	Issue introduced in 6.9 with commit 7e1449cd15d1096157d1a9923b82e37602fb7eb0 and fixed in 7.1.5 with commit fb8a5afe6f1f8aa7f19c6dda23d277dd6ae5d9e1
	Issue introduced in 6.9 with commit 7e1449cd15d1096157d1a9923b82e37602fb7eb0 and fixed in 7.2-rc2 with commit fe87b8dc67f1b2c64e76a66e78468c533d3c44ca

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-72394

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/hwmon/aspeed-g6-pwm-tach.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/a3f98bd397398e2d4a7f98e006b5aaf4d54ebdf3
	https://git.kernel.org/stable/c/898ca04b096b9e4640300eab91468c826a1ec92b
	https://git.kernel.org/stable/c/fb8a5afe6f1f8aa7f19c6dda23d277dd6ae5d9e1
	https://git.kernel.org/stable/c/fe87b8dc67f1b2c64e76a66e78468c533d3c44ca