What’s Vulnerable › Vulnerabilities
CVE-2024-58021: HID: winwing: Add NULL check in winwing_init_led()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-27 · updated 2026-06-17
- Weakness: CWE-476
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.
Affected products
- Linux kernel: from 6.10 before 6.12.16; from 6.13 before 6.13.4; 6.14-rc1, 6.14-rc2 — fixed in 6.12.16, 6.13.4
How to fix
Upgrade to a fixed version: Linux kernel 6.12.16, 6.13.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/4001f6f79183b8868d80dd2036dfb4ea3d325e8f
- https://git.kernel.org/stable/c/45ab5166a82d038c898985b0ad43ead69c1f9573
- https://git.kernel.org/stable/c/b99dbdee8a89c44d03ae9830ab19f31e124a3f32
Get alerted when CVE-2024-58021 or the next vulnerability affects your stack