usb:gadget:configfs:防止 usb_string_copy() 中的 OOB 读/写(CVE-2024-42236)
CVE编号
CVE-2024-42236利用情况
暂无补丁情况
N/A披露时间
2024-08-08漏洞描述
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: configfs: Prevent OOB read/write in usb_string_copy() Userspace provided string 's' could trivially have the length zero. Left unchecked this will firstly result in an OOB read in the form `if (str[0 - 1] == '\n') followed closely by an OOB write in the form `str[0 - 1] = '\0'`. There is already a validating check to catch strings that are too long. Let's supply an additional check for invalid strings that are too short.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
系统 | linux | linux_kernel | * | Up to (excluding) 4.19.318 | |||||
运行在以下环境 | |||||||||
系统 | linux | linux_kernel | * | From (including) 4.20 | Up to (excluding) 5.4.280 | ||||
运行在以下环境 | |||||||||
系统 | linux | linux_kernel | * | From (including) 5.11 | Up to (excluding) 5.15.163 | ||||
运行在以下环境 | |||||||||
系统 | linux | linux_kernel | * | From (including) 5.16 | Up to (excluding) 6.1.100 | ||||
运行在以下环境 | |||||||||
系统 | linux | linux_kernel | * | From (including) 5.5 | Up to (excluding) 5.10.222 | ||||
运行在以下环境 | |||||||||
系统 | linux | linux_kernel | * | From (including) 6.2 | Up to (excluding) 6.6.41 | ||||
运行在以下环境 | |||||||||
系统 | linux | linux_kernel | * | From (including) 6.7 | Up to (excluding) 6.9.10 | ||||
- 攻击路径 本地
- 攻击复杂度 低
- 权限要求 低
- 影响范围 未更改
- 用户交互 无
- 可用性 高
- 保密性 无
- 完整性 无
CWE-ID | 漏洞类型 |
CWE-787 | 跨界内存写 |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论