VDB

CVE-2021-47385

CVE-2021-47385 PUBLISHED

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

Reported by linux · Published May 21, 2024

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 products

VendorProductVersions
LinuxLinuxf64211151db4269341ee6432ce832ae3756725ad, f64211151db4269341ee6432ce832ae3756725ad, f64211151db4269341ee6432ce832ae3756725ad
LinuxLinux5.4, 0, 5.4.151
linuxlinux_kernel5.4, 5.4, 5.4
LinuxLinux*, *, 0

Timeline

  • May 21, 2024 CVE Published
  • May 22, 2024 EPSS Score (30 in total, the first dated here)
  • Jan 14, 2026 PoC Published
  • Mar 30, 2026 Distribution Patch (59 in total, the first dated here)
  • Mar 30, 2026 Security Advisory (60 in total, the first dated here)
  • Jul 13, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-47385
vulnetix vdb fixes CVE-2021-47385

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-47385/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›