Skip to main content
Network Thinking Solutions Logo

CVE-2026-31770

In the Linux kernel, the following vulnerability has been resolved: hwmon: (occ) Fix division by zero in occ_show_power_1() In occ_show_power_1() case 1, the accumulator is divided by update_tag without checking for zero.

All CVEs
CVE-2026-31770Published 5/1/2026

In the Linux kernel, the following vulnerability has been resolved: hwmon: (occ) Fix division by zero in occ_show_power_1() In occ_show_power_1() case 1, the accumulator is divided by update_tag without checking for zero.

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: hwmon: (occ) Fix division by zero in occ_show_power_1() In occ_show_power_1() case 1, the accumulator is divided by update_tag without checking for zero. If no samples have been collected yet (e.g. during early boot when the sensor block is included but hasn't been updated), update_tag is zero, causing a kernel divide-by-zero crash. The 2019 fix in commit 211186cae14d ("hwmon: (occ) Fix division by zero issue") only addressed occ_get_powr_avg() used by occ_show_power_2() and occ_show_power_a0(). This separate code path in occ_show_power_1() was missed. Fix this by reusing the existing occ_get_powr_avg() helper, which already handles the zero-sample case and uses mul_u64_u32_div() to multiply before dividing for better precision. Move the helper above occ_show_power_1() so it is visible at the call site. [groeck: Fix alignment problems reported by checkpatch]

Published
5/1/2026
Last modified
11/11/2026
Assigned by
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.0, < 5.10.253

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.203

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.168

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.134

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.81

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.18.22

Verify advisory

Source
linux kernel
linux
≥ 6.19, < 6.19.12

Verify advisory

Source
linux kernel
linux
7.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < c7d3712362c8ab8f82f441b649d9e446e7b9aa9d

Verify advisory

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < 53e6175756b8c474b6247bbcea0aad3d68357475

Verify advisory

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < 2502684b9e835de9a992ec47c3e6c6faabe3858d

Verify advisory

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < 37ae8fadc74ed68e5bc364ffd17746d88e449ae3

Verify advisory

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < bbbefc48f6617cfb738dcff7f44beb50b5dfeb38

Verify advisory

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < 243d55bd3f08cb15eee9d63f4716d4d4cdd760f5

Verify advisory

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < 7b89ce0c98bf3015f493ca4285b2d1056cd8c733

Verify advisory

Source
Linux
Linux
≥ c10e753d43ebd1d17e1c62bcee20c6124c2c7cca, < 39e2a5bf970402a8530a319cf06122e216ba57b8

Verify advisory

Source
Linux
Linux
5.0

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.