usb:gadget:configfs:防止 usb_string_copy() 中的 OOB 读/写(CVE-2024-42236)

admin 2024-08-10 12:27:00 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
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.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/2d16f63d8030903e5031853e79d731ee5d474e70
https://git.kernel.org/stable/c/6d3c721e686ea6c59e18289b400cc95c76e927e0
https://git.kernel.org/stable/c/72b8ee0d9826e8ed00e0bdfce3e46b98419b37ce
https://git.kernel.org/stable/c/a444c3fc264119801575ab086e03fb4952f23fd0
https://git.kernel.org/stable/c/c95fbdde87e39e5e0ae27f28bf6711edfb985caa
https://git.kernel.org/stable/c/d1205033e912f9332c1dbefa812e6ceb0575ce0a
https://git.kernel.org/stable/c/e8474a10c535e6a2024c3b06e37e4a3a23beb490
https://git.kernel.org/stable/c/eecfefad0953b2f31aaefa058f7f348ff39c4bba
受影响软件情况
# 类型 厂商 产品 版本 影响面
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
CVSS3评分 5.5
  • 攻击路径 本地
  • 攻击复杂度 低
  • 权限要求 低
  • 影响范围 未更改
  • 用户交互 无
  • 可用性 高
  • 保密性 无
  • 完整性 无
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-ID 漏洞类型
CWE-787 跨界内存写
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论:0   参与:  0