CVE-2025-37881 usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()
A missing NULL pointer check in the Linux kernel's Aspeed USB gadget driver can cause a system crash, requiring a kernel patch.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-37881?
CVE-2025-37881 is a medium-severity vulnerability in Debian Debian Linux, published on 9 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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
Weakness: CWE-476
Which versions are affected by CVE-2025-37881?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-37881?
Apply the vendor's patch.
Is CVE-2025-37881 being exploited?
There is no known exploitation of CVE-2025-37881 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2025-37881, DEBIAN-CVE-2025-37881, GHSA-23wv-q9m5-hq8q, ROOT-OS-DEBIAN-12-CVE-2025-37881, ROOT-OS-UBUNTU-2204-CVE-2025-37881, ROOT-OS-UBUNTU-2404-CVE-2025-37881 and 1 more.