net、sunrpc:如果 xs_tcp_setup_socket 中的连接失败,则重新映射 EPERM(CVE-2024-42246)

admin 2024-08-10 12:24:30 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
net、sunrpc:如果 xs_tcp_setup_socket 中的连接失败,则重新映射 EPERM(CVE-2024-42246)

CVE编号

CVE-2024-42246

利用情况

暂无

补丁情况

N/A

披露时间

2024-08-08
漏洞描述
In the Linux kernel, the following vulnerability has been resolved: net, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket When using a BPF program on kernel_connect(), the call can return -EPERM. This causes xs_tcp_setup_socket() to loop forever, filling up the syslog and causing the kernel to potentially freeze up. Neil suggested: This will propagate -EPERM up into other layers which might not be ready to handle it. It might be safer to map EPERM to an error we would be more likely to expect from the network system - such as ECONNREFUSED or ENETDOWN. ECONNREFUSED as error seems reasonable. For programs setting a different error can be out of reach (see handling in 4fbac77d2d09) in particular on kernels which do not have f10d05966196 ("bpf: Make BPF_PROG_RUN_ARRAY return -err instead of allow boolean"), thus given that it is better to simply remap for consistent behavior. UDP does handle EPERM in xs_udp_send_request().
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://git.kernel.org/stable/c/626dfed5fa3bfb41e0dffd796032b555b69f9cde
https://git.kernel.org/stable/c/d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414
https://git.kernel.org/stable/c/f2431e7db0fe0daccb2f06bb0d23740affcd2fa6
https://git.kernel.org/stable/c/f388cfd913a2b96c05339a335f365795db1b36b6
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
系统 linux linux_kernel * From (including) 4.17 Up to (excluding) 6.1.100
运行在以下环境
系统 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-835 不可达退出条件的循环(无限循环)
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论:0   参与:  0