CVE-2021-47385

hwmon: (w83792d) Fix NULL pointer dereference by removing unnecessary structure field

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 03:03 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: hwmon: (w83792d) Fix NULL pointer dereference by removing unnecessary structure field If driver read val value sufficient for (val & 0x08) && (!(val & 0x80)) && ((val & 0x7) == ((val >> 4) & 0x7)) from device then Null pointer dereference occurs. (It is possible if tmp = 0b0xyz1xyz, where same literals mean same numbers) Also lm75[] does not serve a purpose anymore after switching to devm_i2c_new_dummy_device() in w83791d_detect_subclients(). The patch fixes possible NULL pointer dereference by removing lm75[]. Found by Linux Driver Verification project (linuxtesting.org). [groeck: Dropped unnecessary continuation lines, fixed multipline alignment]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.4.1515.11 ≤ v < 5.14.105.4 ≤ v < 5.10.715.4 ≤ v < 5.14.105.4 ≤ v < 5.155.4 ≤ v < 5.4.1515.5 ≤ v < 5.10.715.15 rc15.15 rc25.15 rc3f64211151db4269341ee6432ce832ae3756725ad
Vendor states this is fixed in 0f36b88173f028e372668ae040ab1a496834d278 (fixed)
Vendor states this is fixed in 1499bb2c3a87a2efea0065adab2bd66badee61c3 (fixed)
Vendor states this is fixed in 200ced5ba724d8bbf29dfac4ed1e17a39ccaccd1 (fixed)
Vendor states this is fixed in 24af1fe376e22c42238a4a604d31e46c486876c3 (fixed)
Vendor states this is fixed in 5.10.71 (unaffected)
Vendor states this is fixed in 5.14.10 (unaffected)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.4 (unaffected)
Vendor states this is fixed in 5.4.151 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0f36b88173f028e372668ae040ab1a496834d278
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1499bb2c3a87a2efea0065adab2bd66badee61c3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/200ced5ba724d8bbf29dfac4ed1e17a39ccaccd1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/24af1fe376e22c42238a4a604d31e46c486876c3

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card