net:修复配置较小的 gso_max_size/gso_ipv4_max_size 时崩溃的问题(CVE-2024-50258)

admin 2024-11-10 18:39:42 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
net:修复配置较小的 gso_max_size/gso_ipv4_max_size 时崩溃的问题(CVE-2024-50258)

CVE编号

CVE-2024-50258

利用情况

暂无

补丁情况

N/A

披露时间

2024-11-09
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: net: fix crash when config small gso_max_size/gso_ipv4_max_size Config a small gso_max_size/gso_ipv4_max_size will lead to an underflow in sk_dst_gso_max_size(), which may trigger a BUG_ON crash, because sk->sk_gso_max_size would be much bigger than device limits. Call Trace: tcp_write_xmit tso_segs = tcp_init_tso_segs(skb, mss_now); tcp_set_skb_tso_segs tcp_skb_pcount_set // skb->len = 524288, mss_now = 8 // u16 tso_segs = 524288/8 = 65535 -> 0 tso_segs = DIV_ROUND_UP(skb->len, mss_now) BUG_ON(!tso_segs) Add check for the minimum value of gso_max_size and gso_ipv4_max_size.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/9ab5cf19fb0e4680f95e506d6c544259bf1111c4
https://git.kernel.org/stable/c/ac5977001eee7660c643f8e07a2de9001990b7b8
https://git.kernel.org/stable/c/e72fd1389a5364bc6aa6312ecf30bdb5891b9486
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