CVE-2026-31770: Linux kernel · hwmon: (occ) Fix division by zero in occ_show_power_1()
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 27 Oct 2026, 00:27 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
A fix is available that reuses the existing occ_get_powr_avg() helper function to prevent division by zero in occ_show_power_1(). Users should apply the updated Linux kernel version containing this fix. Since this is not a cloud service, remediation requires patching the affected kernel on local systems. No other mitigations are indicated.
Description
CVE-2026-31770 is a medium-severity vulnerability in the Linux kernel's hardware monitoring (hwmon) subsystem. It involves a division by zero error in the function occ_show_power_1() when the update_tag variable is zero, such as during early boot before sensor data is collected. This flaw can cause a kernel crash (denial of service). The issue was missed in a prior 2019 fix that addressed similar code paths. The fix involves reusing an existing helper function that safely handles zero samples and improves calculation precision.
References
- nvd.nist.gov/vuln/detail/CVE-2026-31770 (opens in a new tab)
- git.kernel.org/stable/c/243d55bd3f08cb15eee9d63f4716d4d4cdd760f5 (opens in a new tab)
- git.kernel.org/stable/c/2502684b9e835de9a992ec47c3e6c6faabe3858d (opens in a new tab)
- git.kernel.org/stable/c/37ae8fadc74ed68e5bc364ffd17746d88e449ae3 (opens in a new tab)
- git.kernel.org/stable/c/39e2a5bf970402a8530a319cf06122e216ba57b8 (opens in a new tab)
- git.kernel.org/stable/c/53e6175756b8c474b6247bbcea0aad3d68357475 (opens in a new tab)
- git.kernel.org/stable/c/7b89ce0c98bf3015f493ca4285b2d1056cd8c733 (opens in a new tab)
- git.kernel.org/stable/c/bbbefc48f6617cfb738dcff7f44beb50b5dfeb38 (opens in a new tab)
- git.kernel.org/stable/c/c7d3712362c8ab8f82f441b649d9e446e7b9aa9d (opens in a new tab)