CVE-2024-42246

Updated: 2024-09-12 22:34:18.601593

Description:

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().


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x 0
CVSS Version 3.x MEDIUM 5.5

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

AlmaLinux 9.2 ESU kernel 5.14.0 5.5 MEDIUM Ignored 2024-09-24 05:43:37
AlmaLinux 9.2 FIPS kernel 5.14.0 5.5 MEDIUM Ignored 2024-08-12 12:02:36
CentOS 6 ELS kernel 2.6.32 5.5 MEDIUM Ignored 2024-09-19 17:22:54
CentOS 7 ELS kernel 3.10.0 5.5 MEDIUM Ignored 2024-09-19 17:22:54
CentOS 8.4 ELS kernel 4.18.0 5.5 MEDIUM Ignored 2024-09-24 05:43:34
CentOS 8.5 ELS kernel 4.18.0 5.5 MEDIUM Ignored 2024-09-24 05:43:35
CentOS Stream 8 ELS kernel 4.18.0 5.5 MEDIUM Ignored 2024-09-24 05:43:32
CloudLinux 6 ELS kernel 2.6.32 5.5 MEDIUM Ignored 2024-09-19 17:22:54
CloudLinux 7 ELS kernel 3.10.0 5.5 MEDIUM Ignored 2024-09-19 17:22:54
Oracle Linux 6 ELS kernel 2.6.32 5.5 MEDIUM Ignored 2024-09-19 17:22:54
Total: 11