漏洞标题
USB:小工具:aspeed:在ast_vhub_init_dev()中添加空指针检查
漏洞描述信息
## 概述
Linux内核中修复了如下漏洞:在`aspeed` USB设备初始化函数`ast_vhub_init_dev()`中添加了空指针检查,以防止空指针解引用问题。
## 细节
在`ast_vhub_init_dev()`函数中,`d->name`变量由`devm_kasprintf()`返回,该变量可能为空。此次修复添加了空指针检查以避免潜在的空指针解引用问题,这一修复方式与commit `3027e7b15b02`中的修复类似,该commit修复了`ice_ptp.c`中的空指针解引用问题。
## 影响
该问题通过静态分析工具检测到,可能会导致空指针解引用错误,进而影响系统稳定性。
CVSS信息
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
漏洞类别
空指针解引用
漏洞标题
usb: gadget: aspeed: Add NULL pointer check in ast_vhub_init_dev()
漏洞描述信息
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
CVSS信息
N/A
漏洞类别
N/A