Skip to main content
VulnerabilityPublished Updated

CVE-2026-31770: Linux kernel · hwmon: (occ) Fix division by zero in occ_show_power_1()

Source GCVE Database

0

Not known to be exploited · CVSS 5.5 Medium.

Data as of 27 Oct 2026, 00:27 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 1 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…