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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-02-27T02:18:10.575Z
- Modified: 2026-06-17T08:14:28.893Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

HID: winwing: Add NULL check in winwing_init_led()

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

(As written by CVE List.)

## Affected

- Linux Linux: from 266c990debad2f9589c7a412e897a8e312b09766 before b99dbdee8a89c44d03ae9830ab19f31e124a3f32; from 266c990debad2f9589c7a412e897a8e312b09766 before 4001f6f79183b8868d80dd2036dfb4ea3d325e8f; from 266c990debad2f9589c7a412e897a8e312b09766 before 45ab5166a82d038c898985b0ad43ead69c1f9573; 6.10 (not affected: before 6.10; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.10 before 6.12.16; from 6.13 before 6.13.4; 6.14

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b99dbdee8a89c44d03ae9830ab19f31e124a3f32> (patch)
- <https://git.kernel.org/stable/c/4001f6f79183b8868d80dd2036dfb4ea3d325e8f> (patch)
- <https://git.kernel.org/stable/c/45ab5166a82d038c898985b0ad43ead69c1f9573> (patch)

## Sources

- CVE List: [CVE-2024-58021](https://www.cve.org/CVERecord?id=CVE-2024-58021), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-58021](https://nvd.nist.gov/vuln/detail/CVE-2024-58021), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-58021 · Whole record: https://cve.day/CVE-2024-58021.json · Rebuilt by cve.day 2026-11-25T22:58:52.109Z
