CVE-2025-37881
kernel: usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 9, 2025
Updated · June 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()
The variable d->name, returned by devm_kasprintf(), could be NULL. A pointer check is added to prevent potential NULL pointer dereference. This is similar to the fix in commit 3027e7b15b02 ("ice: Fix some null pointer dereference issues in ice_ptp.c").
This issue is found by our static analysis tool
Statement
The bug could happen if out of memory (that is unexpected condition in Linux or if happen, then system already unstable). The Red Hat Enterprise Linux (or Fedora) not affected, but vulnerable code not introduced yet.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-476 · NULL Pointer Dereference