ipv6:sr:修复 seg6_input_core 中缺少的 sk_buff 版本(CVE-2024-39490)

admin 2024-07-11 22:26:51 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
ipv6:sr:修复 seg6_input_core 中缺少的 sk_buff 版本(CVE-2024-39490)

CVE编号

CVE-2024-39490

利用情况

暂无

补丁情况

N/A

披露时间

2024-07-10
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: ipv6: sr: fix missing sk_buff release in seg6_input_core The seg6_input() function is responsible for adding the SRH into a packet, delegating the operation to the seg6_input_core(). This function uses the skb_cow_head() to ensure that there is sufficient headroom in the sk_buff for accommodating the link-layer header. In the event that the skb_cow_header() function fails, the seg6_input_core() catches the error but it does not release the sk_buff, which will result in a memory leak. This issue was introduced in commit af3b5158b89d ("ipv6: sr: fix BUG due to headroom too small after SRH push") and persists even after commit 7a3f5b0de364 ("netfilter: add netfilter hooks to SRv6 data plane"), where the entire seg6_input() code was refactored to deal with netfilter hooks. The proposed patch addresses the identified memory leak by requiring the seg6_input_core() function to release the sk_buff in the event that skb_cow_head() fails.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/5447f9708d9e4c17a647b16a9cb29e9e02820bd9
https://git.kernel.org/stable/c/8f1fc3b86eaea70be6abcae2e9aa7e7b99453864
https://git.kernel.org/stable/c/e8688218e38111ace457509d8f0cad75f79c1a7a
https://git.kernel.org/stable/c/f4df8c7670a73752201cbde215254598efdf6ce8
https://git.kernel.org/stable/c/f5fec1588642e415a3d72e02140160661b303940
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 debian_12 linux * Up to (excluding) 6.1.94-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