phy: ti: tusb1210:如果充电器 psy 未注册,则解决充电器 det 崩溃问题 (CVE-2024-35986)

admin 2024-05-21 23:55:54 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
phy: ti: tusb1210:如果充电器 psy 未注册,则解决充电器 det 崩溃问题 (CVE-2024-35986)

CVE编号

CVE-2024-35986

利用情况

暂无

补丁情况

N/A

披露时间

2024-05-20
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: phy: ti: tusb1210: Resolve charger-det crash if charger psy is unregistered The power_supply frame-work is not really designed for there to be long living in kernel references to power_supply devices. Specifically unregistering a power_supply while some other code has a reference to it triggers a WARN in power_supply_unregister(): WARN_ON(atomic_dec_return(&psy->use_cnt)); Folllowed by the power_supply still getting removed and the backing data freed anyway, leaving the tusb1210 charger-detect code with a dangling reference, resulting in a crash the next time tusb1210_get_online() is called. Fix this by only holding the reference in tusb1210_get_online() freeing it at the end of the function. Note this still leaves a theoretical race window, but it avoids the issue when manually rmmod-ing the charger chip driver during development.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/25b3498485ac281e5851700e33b97f12c9533fd8
https://git.kernel.org/stable/c/73224a5d2180066c7fe05b4656647601ba08d588
https://git.kernel.org/stable/c/9827caa5105fb16d1fae2e75c8d0e4662014b3ca
https://git.kernel.org/stable/c/bf6e4ee5c43690e4c5a8a057bbcd4ff986bed052
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 debian_10 linux * Up to (excluding) 4.19.304-1
运行在以下环境
系统 debian_11 linux * Up to (excluding) 5.10.216-1
运行在以下环境
系统 debian_12 linux * Up to (excluding) 6.1.90-1
CVSS3评分 N/A
  • 攻击路径 N/A
  • 攻击复杂度 N/A
  • 权限要求 N/A
  • 影响范围 N/A
  • 用户交互 N/A
  • 可用性 N/A
  • 保密性 N/A
  • 完整性 N/A
N/A
CWE-ID 漏洞类型
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论:0   参与:  0