Vulnerability · Published Aug 7, 2024 · Assigned by Linux

CVE-2024-42246net, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket

Medium 5.5

In plain English

A medium-severity security flaw in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.2%top 85.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9bpftool7.3.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-debug5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-debug-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-debug-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-debug-modules5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-devel-matched5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-modules5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-modules-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-64k-modules-extra5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-abi-stablelists5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-cross-headers5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug-devel-matched5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug-modules5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug-modules-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug-modules-extra5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-debug-uki-virt5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-devel-matched5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-doc5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-headers5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-modules5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-modules-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-modules-extra5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-debug5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-debug-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-debug-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-debug-modules5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-modules5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-modules-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-rt-modules-extra5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-tools5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-tools-libs5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-tools-libs-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-uki-virt5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-zfcpdump5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-zfcpdump-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-zfcpdump-devel5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-zfcpdump-modules5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9libperf5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9perf5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9python3-perf5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9rtla5.14.0-427.37.1.el9_4ALSA-2024:6997
AlmaLinux:9rv5.14.0-427.37.1.el9_4ALSA-2024:6997
Debian:12linux6.1.106-1DEBIAN-CVE-2024-42246
Debian:13linux6.9.10-1DEBIAN-CVE-2024-42246
Debian:14linux6.9.10-1DEBIAN-CVE-2024-42246
Ubuntu:22.04:LTSlinux5.15.0-125.135USN-7100-1
Ubuntu:22.04:LTSlinux5.15.0-125.135UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux6.8.0-48.48UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-aws5.15.0-1072.78UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-aws5.15.0-1072.78USN-7100-2
Ubuntu:24.04:LTSlinux-aws6.8.0-1018.20UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-aws-6.86.8.0-1018.19~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure5.15.0-1075.84USN-7123-1
Ubuntu:22.04:LTSlinux-azure5.15.0-1075.84UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-azure6.8.0-1017.20UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure-6.86.8.0-1017.20~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure-fde5.15.0-1076.85.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-gcp5.15.0-1071.79USN-7100-1
Ubuntu:22.04:LTSlinux-gcp5.15.0-1071.79UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-gcp6.8.0-1017.19UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-gcp-6.86.8.0-1017.19~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-gke5.15.0-1069.75USN-7100-1
Ubuntu:22.04:LTSlinux-gke5.15.0-1069.75UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-gke6.8.0-1013.17UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1055.62USN-7100-1
Ubuntu:22.04:LTSlinux-gkeop5.15.0-1055.62UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-gkeop6.8.0-1002.4UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-hwe-6.86.8.0-48.48~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-ibm5.15.0-1065.68USN-7100-1
Ubuntu:22.04:LTSlinux-ibm5.15.0-1065.68UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-ibm6.8.0-1015.15UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-ibm-6.86.8.0-1015.15~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1067.73UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-intel-iotg5.15.0-1067.73USN-7144-1
Ubuntu:22.04:LTSlinux-kvm5.15.0-1069.74UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-kvm5.15.0-1069.74USN-7100-1
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-125.135UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-lowlatency5.15.0-125.135USN-7100-1
Ubuntu:24.04:LTSlinux-lowlatency6.8.0-48.48.3UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.86.8.0-48.48.3~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1067.68USN-7100-1
Ubuntu:22.04:LTSlinux-nvidia5.15.0-1067.68UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-nvidia6.8.0-1017.19UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-nvidia-6.86.8.0-1017.19~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-nvidia-lowlatency6.8.0-1017.19.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-nvidia-tegra5.15.0-1032.32UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-nvidia-tegra-igx5.15.0-1020.20UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-oem-6.86.8.0-1016.16UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-oracle5.15.0-1070.76USN-7100-1
Ubuntu:22.04:LTSlinux-oracle5.15.0-1070.76UBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-oracle6.8.0-1015.16UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-oracle-6.86.8.0-1015.15~22.04.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-raspi5.15.0-1065.68UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-raspi5.15.0-1065.68USN-7100-1
Ubuntu:24.04:LTSlinux-raspi6.8.0-1014.16UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-riscv6.8.0-48.48.1UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-riscv-6.86.8.0-48.48.1~22.04.2UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2024-42246
Ubuntu:24.04:LTSlinux-xilinx6.8.0-1009.10UBUNTU-CVE-2024-42246
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1038.42USN-7100-1
Ubuntu:22.04:LTSlinux-xilinx-zynqmp5.15.0-1038.42UBUNTU-CVE-2024-42246

Affected products (as reported)

VendorProductVersions
Linux Linux 4fbac77d2d092b475dda9eea66da674369665427 – before bc790261218952635f846aaf90bcc0974f6f62c64fbac77d2d092b475dda9eea66da674369665427 – before 934247ea65bc5eca8bdb7f8c0ddc15cef992a5d64fbac77d2d092b475dda9eea66da674369665427 – before 02ee1976edb21a96ce8e3fd4ef563f14cc16d0414fbac77d2d092b475dda9eea66da674369665427 – before 5d8254e012996cee1a0f9cc920531cb7e4d9a0114fbac77d2d092b475dda9eea66da674369665427 – before f2431e7db0fe0daccb2f06bb0d23740affcd2fa64fbac77d2d092b475dda9eea66da674369665427 – before d6c686c01c5f12ff8f7264e0ddf71df6cb0d44144fbac77d2d092b475dda9eea66da674369665427 – before f388cfd913a2b96c05339a335f365795db1b36b64fbac77d2d092b475dda9eea66da674369665427 – before 626dfed5fa3bfb41e0dffd796032b555b69f9cde
Linux Linux 4.17

References