# CVE-2025-37881: usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2025-05-09T06:45:45.205Z
- Modified: 2026-06-17T09:15:37.550Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before a777ccfb9ba8d43f745e41b69ba39d4a506a081e; from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before c8d4faf452a627f9b09c3a5c366133a19e5b7a28; from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before d26a6093d52904cacdbb75424c323c19b443a890; from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before 36d68151712e525450f0fbb3045e7110f0d9b610; from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before cfa7984f69359761b07a7831c1258c0fde1e0389; from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before 052fb65335befeae8500e88d69ea022266baaf6d; from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before 61006ca381b4d65d2b8ca695ea8da1ce18d6dee3; from 7ecca2a4080cb6b1fa174adc588fce9e9014c43c before 8c75f3e6a433d92084ad4e78b029ae680865420f; 4.18 (not affected: before 4.18; from 5.4.293 up to 5.4.*; from 5.10.237 up to 5.10.*; from 5.15.181 up to 5.15.*; from 6.1.136 up to 6.1.*; from 6.6.89 up to 6.6.*; from 6.12.26 up to 6.12.*; from 6.14.5 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 4.18 before 5.4.293; from 5.5 before 5.10.237; from 5.11 before 5.15.181; from 5.16 before 6.1.136; from 6.2 before 6.6.89; from 6.7 before 6.12.26; from 6.13 before 6.14.5
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/a777ccfb9ba8d43f745e41b69ba39d4a506a081e> (patch)
- <https://git.kernel.org/stable/c/c8d4faf452a627f9b09c3a5c366133a19e5b7a28> (patch)
- <https://git.kernel.org/stable/c/d26a6093d52904cacdbb75424c323c19b443a890> (patch)
- <https://git.kernel.org/stable/c/36d68151712e525450f0fbb3045e7110f0d9b610> (patch)
- <https://git.kernel.org/stable/c/cfa7984f69359761b07a7831c1258c0fde1e0389> (patch)
- <https://git.kernel.org/stable/c/052fb65335befeae8500e88d69ea022266baaf6d> (patch)
- <https://git.kernel.org/stable/c/61006ca381b4d65d2b8ca695ea8da1ce18d6dee3> (patch)
- <https://git.kernel.org/stable/c/8c75f3e6a433d92084ad4e78b029ae680865420f> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-37881](https://www.cve.org/CVERecord?id=CVE-2025-37881), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-37881](https://nvd.nist.gov/vuln/detail/CVE-2025-37881), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-37881 · Whole record: https://cve.day/CVE-2025-37881.json · Rebuilt by cve.day 2026-11-25T22:58:57.861Z
