CVE-2024-58021: HID: winwing: Add NULL check in winwing_init_led()

Published Feb 27, 2025
·
Updated

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

HID: winwing: Add NULL check in winwinginitled()

devmkasprintf() can return a NULL pointer on failure,but this returned value in winwinginitled() is not checked. Add NULL check in winwinginitled(), to handle kernel NULL pointer dereference error.

Affected Software

7 affected componentsFixes available
Linux Linux kernel>=6.10<6.12.16
Linux Linux kernel>=6.13<6.13.4
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
debian/linux<6.12.16-1
6.12.16-1
debian/linux<6.12.16-1
6.12.16-1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.16-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1
  3. Compensating control

    Add a NULL check for the value returned by devm_kasprintf() in winwing_init_led() to prevent kernel NULL pointer dereference.

Event History

Feb 27, 2025
CVE Published
via MITRE·02:18 AM
Data Sourced
via MITRE·02:18 AM
Description
Data Sourced
via NVD·03:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·03:15 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-58021?

CVE-2024-58021 has been classified as a moderate severity vulnerability due to the potential for NULL pointer dereference.

2

How do I fix CVE-2024-58021?

To fix CVE-2024-58021, update to the latest Linux kernel version that includes the NULL check in winwing_init_led().

3

Which kernel versions are affected by CVE-2024-58021?

CVE-2024-58021 affects Linux kernel versions from 6.10 to 6.12.16 and versions 6.13.0 to 6.13.4, as well as 6.14-rc1 and 6.14-rc2.

4

What component is impacted by CVE-2024-58021?

CVE-2024-58021 impacts the Human Interface Device (HID) subsystem in the Linux kernel.

5

Is CVE-2024-58021 being actively exploited?

As of now, there are no known active exploits for CVE-2024-58021.

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