串行:在 uart_shutdown() 中也保护 uart_port_dtr_rts()(CVE-2024-50058)

admin 2024-10-25 00:40:52 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
串行:在 uart_shutdown() 中也保护 uart_port_dtr_rts()(CVE-2024-50058)

CVE编号

CVE-2024-50058

利用情况

暂无

补丁情况

N/A

披露时间

2024-10-22
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: serial: protect uart_port_dtr_rts() in uart_shutdown() too Commit af224ca2df29 (serial: core: Prevent unsafe uart port access, part 3) added few uport == NULL checks. It added one to uart_shutdown(), so the commit assumes, uport can be NULL in there. But right after that protection, there is an unprotected "uart_port_dtr_rts(uport, false);" call. That is invoked only if HUPCL is set, so I assume that is the reason why we do not see lots of these reports. Or it cannot be NULL at this point at all for some reason :P. Until the above is investigated, stay on the safe side and move this dereference to the if too. I got this inconsistency from Coverity under CID 1585130. Thanks.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/602babaa84d627923713acaf5f7e9a4369e77473
https://git.kernel.org/stable/c/76ed24a34223bb2c6b6162e1d8389ec4e602a290
https://git.kernel.org/stable/c/e418d91195d29d5f9c9685ff309b92b04b41dc40
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 linux linux_kernel * Up to (excluding) 6.6.57
运行在以下环境
系统 linux linux_kernel * From (including) 6.7 Up to (excluding) 6.11.4
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-476 空指针解引用
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论:0   参与:  0