CVE-2024-58021: HID: winwing: Add NULL check in winwing_init_led()
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.
Security readout for executives and security teams
Plain-English summary
This is a Linux kernel reliability flaw in the HID winwing driver. Under local conditions, an allocation failure can lead to a null pointer dereference and high availability impact. The provided sources do not show internet exposure or active exploitation, but affected Linux systems could be crashed locally.
Executive priority
Treat as routine-to-priority patching for Linux fleets, not an emergency internet-facing incident. Prioritize systems where untrusted local users can run code or where availability loss is operationally significant.
Technical view
winwing_init_led() used devm_kasprintf() without checking for NULL. If allocation fails, later code can dereference NULL, matching CWE-476. The CVSS vector is local, low complexity, low privileges, no user interaction, no confidentiality or integrity impact, and high availability impact.
Likely exposure
Exposure is limited to Linux systems running affected kernel versions with the HID winwing driver present or reachable. The bundle identifies Linux kernels around 6.10 through fixed stable releases, but exact deployed exposure requires checking each system kernel against vendor advisories and referenced stable commits.
Exploitation context
The CVE is not listed as KEV, and the provided sources do not claim active exploitation. The scoring indicates a local attacker with low privileges could cause an availability impact. No remote attack path is supported by the source bundle.
Researcher notes
Evidence supports a local denial-of-service class bug caused by missing NULL checking after devm_kasprintf(). Public sources provided only reference the kernel fix and CVE metadata; they do not provide exploit maturity, affected distribution package names, or non-kernel mitigations.
Mitigation direction
Check Linux distribution advisories for fixed kernel packages covering CVE-2024-58021.
Upgrade affected kernels to vendor-supported fixed releases when available.
Review referenced stable commits if maintaining a custom kernel tree.
Restrict local access on systems that cannot be patched promptly.
Follow vendor guidance for any driver-specific workaround.
Validation and detection
Inventory Linux kernel versions across endpoints, servers, and appliances.
Identify systems with HID winwing driver support enabled or loaded.
Compare deployed kernels with distribution advisories and stable commit backports.
Confirm patch presence in custom kernels by reviewing winwing_init_led() NULL handling.
Record systems not patched and document compensating access controls.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-476 · source CWE mapping
NULL Pointer Dereference
NULL Pointer Dereference represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.