CVE-2024-58021

medium

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.

References

https://git.kernel.org/stable/c/b99dbdee8a89c44d03ae9830ab19f31e124a3f32

https://git.kernel.org/stable/c/45ab5166a82d038c898985b0ad43ead69c1f9573

https://git.kernel.org/stable/c/4001f6f79183b8868d80dd2036dfb4ea3d325e8f

Details

Source: Mitre, NVD

Published: 2025-02-27

Updated: 2025-03-06

Risk Information

CVSS v2

Base Score: 4.6

Vector: CVSS2#AV:L/AC:L/Au:S/C:N/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 5.5

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Severity: Medium