CVE-2025-37881

usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()

State
Published
Severity
Not scored
Published
May 9, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before a777ccfb9ba8d43f745e41b69ba39d4a506a081eAffected
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before c8d4faf452a627f9b09c3a5c366133a19e5b7a28Affected
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before d26a6093d52904cacdbb75424c323c19b443a890Affected
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before 36d68151712e525450f0fbb3045e7110f0d9b610Affected
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before cfa7984f69359761b07a7831c1258c0fde1e0389Affected
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before 052fb65335befeae8500e88d69ea022266baaf6dAffected
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before 61006ca381b4d65d2b8ca695ea8da1ce18d6dee3Affected
  • 7ecca2a4080cb6b1fa174adc588fce9e9014c43c to before 8c75f3e6a433d92084ad4e78b029ae680865420fAffected
LinuxLinux
  • 4.18Affected
  • before 4.18Not affected
  • 5.4.293 through 5.4.*Not affected
  • 5.10.237 through 5.10.*Not affected
  • 5.15.181 through 5.15.*Not affected
  • 6.1.136 through 6.1.*Not affected
  • 6.6.89 through 6.6.*Not affected
  • 6.12.26 through 6.12.*Not affected
  • 6.14.5 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.