CVE-2021-47386: hwmon: (w83791d) Fix NULL pointer dereference by removing unnecessary structure field

Published May 21, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

hwmon: (w83791d) 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 devmi2cnewdummydevice() in w83791ddetectsubclients().

The patch fixes possible NULL pointer dereference by removing lm75[].

Found by Linux Driver Verification project (linuxtesting.org).

[groeck: Dropped unnecessary continuation lines, fixed multi-line alignment]

Other sources

In the Linux kernel, the following vulnerability has been resolved:

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

The Linux kernel CVE team has assigned CVE-2021-47386 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052145-CVE-2021-47386-2701@gregkh/T

Red Hat

Affected Software

14 affected componentsFixes available
Linux Linux kernel<5.4.151
Linux Linux kernel>=5.5<5.10.71
Linux Linux kernel>=5.11<5.14.10
Linux Linux kernel=5.15-rc1
Linux Linux kernel=5.15-rc2
Linux Linux kernel=5.15-rc3
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
redhat/kernel<5.4.151
5.4.151
redhat/kernel<5.10.71
5.10.71
redhat/kernel<5.14.10
5.14.10
redhat/kernel<5.15
5.15

Event History

May 21, 2024
CVE Published
via MITRE·03:03 PM
Data Sourced
via MITRE·03:03 PM
Description
May 22, 2024
Data Sourced
via Red Hat·09:08 AM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-47386?

The severity of CVE-2021-47386 is categorized as low, as it involves a NULL pointer dereference in the hwmon subsystem of the Linux kernel.

2

How do I fix CVE-2021-47386?

To fix CVE-2021-47386, upgrade your Linux kernel to version 5.4.151, 5.10.71, or later versions that have mitigated this vulnerability.

3

Which Linux kernel versions are affected by CVE-2021-47386?

CVE-2021-47386 affects Linux kernel versions prior to 5.4.151, 5.10.71, 5.14.10, and 5.15.

4

Does CVE-2021-47386 affect all distributions of Linux?

CVE-2021-47386 is specifically relevant to distributions that use the affected versions of the Linux kernel, particularly those from Red Hat.

5

Is CVE-2021-47386 exploitable in production environments?

While CVE-2021-47386 poses a low severity risk, any vulnerability in a production environment should be assessed, as exploitation can lead to system instability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203