5.5

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

Modified
AliasesUBUNTU-CVE-2024-42246DEBIAN-CVE-2024-42246
Published 07-08-2024Last modified 11-05-2026

Vulnerability summary

CVE-2024-42246 is a medium (CVSS 5.5) Loop with Unreachable Exit Condition vulnerability in linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 15.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.23%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 39 · Related 32

Timeline

  1. 07-08-2024
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

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

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.23%

Chance of exploitation in the next 30 days

Percentile

15%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.23% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu126 products
  • linux< 5.4.0-200.220 | < 5.15.0-125.135 | < 6.8.0-48.48
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 5.4.0-1135.145 | < 5.15.0-1072.78 | < 6.8.0-1018.20
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 4fbac77d2d092b475dda9eea66da674369665427, < bc790261218952635f846aaf90bcc0974f6f62c6 | ≥ 4fbac77d2d092b475dda9eea66da674369665427, < 934247ea65bc5eca8bdb7f8c0ddc15cef992a5d6 | ≥ 4fbac77d2d092b475dda9eea66da674369665427, < 02ee1976edb21a96ce8e3fd4ef563f14cc16d041 | ≥ 4fbac77d2d092b475dda9eea66da674369665427, < 5d8254e012996cee1a0f9cc920531cb7e4d9a011 | ≥ 4fbac77d2d092b475dda9eea66da674369665427, < f2431e7db0fe0daccb2f06bb0d23740affcd2fa6 | ≥ 4fbac77d2d092b475dda9eea66da674369665427, < d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414 | ≥ 4fbac77d2d092b475dda9eea66da674369665427, < f388cfd913a2b96c05339a335f365795db1b36b6 | ≥ 4fbac77d2d092b475dda9eea66da674369665427, < 626dfed5fa3bfb41e0dffd796032b555b69f9cde | 4.17
  • linux_kernel≥ 4.17, < 6.1.100 | ≥ 6.2, < 6.6.41 | ≥ 6.7, < 6.9.10
Debian1 product
  • linux< 6.1.106-1 | < 6.9.10-1

3 vendors · 129 products

References

36 links
Show all 36 references