CVE-2025-40315
中文标题:
(暂无数据)
英文标题:
usb: gadget: f_fs: Fix epfile null pointer access after ep enable.
漏洞描述
中文描述:
(暂无数据)
英文描述:
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: Fix epfile null pointer access after ep enable. A race condition occurs when ffs_func_eps_enable() runs concurrently with ffs_data_reset(). The ffs_data_clear() called in ffs_data_reset() sets ffs->epfiles to NULL before resetting ffs->eps_count to 0, leading to a NULL pointer dereference when accessing epfile->ep in ffs_func_eps_enable() after successful usb_ep_enable(). The ffs->epfiles pointer is set to NULL in both ffs_data_clear() and ffs_data_close() functions, and its modification is protected by the spinlock ffs->eps_lock. And the whole ffs_func_eps_enable() function is also protected by ffs->eps_lock. Thus, add NULL pointer handling for ffs->epfiles in the ffs_func_eps_enable() function to fix issues
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| Linux | Linux | 32048f4be071f9a6966744243f1786f45bb22dc2 | - | - |
cpe:2.3:a:linux:linux:32048f4be071f9a6966744243f1786f45bb22dc2:*:*:*:*:*:*:*
|
| Linux | Linux | cfe5f6fd335d882bcc829a1c8a7d462a455c626e | - | - |
cpe:2.3:a:linux:linux:cfe5f6fd335d882bcc829a1c8a7d462a455c626e:*:*:*:*:*:*:*
|
| Linux | Linux | 3e078b18753669615301d946297bafd69294ad2c | - | - |
cpe:2.3:a:linux:linux:3e078b18753669615301d946297bafd69294ad2c:*:*:*:*:*:*:*
|
| Linux | Linux | 5.17 | - | - |
cpe:2.3:a:linux:linux:5.17:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
CVSS评分详情
NOT_EXTRACTED
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2025-40315 |
2026-01-04 02:04:25 | 2026-01-12 02:11:47 |
| NVD | nvd_CVE-2025-40315 |
2025-12-09 03:00:04 | 2026-01-12 02:27:47 |
版本与语言
安全公告
变更历史
查看详细变更
- data_sources: ['cve'] -> ['cve', 'nvd']