CVE-2024-42246: Linux kernel · Infinite Loop
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 30 Oct 2026, 02:50 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 Aug 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel to remap EPERM to ECONNREFUSED in xs_tcp_setup_socket(), preventing the infinite loop. Users should apply the official kernel updates that include this fix. Since this is a kernel-level issue, upgrading to a patched kernel version is the recommended mitigation.
Description
CVE-2024-42246 is a vulnerability in the Linux kernel's net and sunrpc subsystems where the xs_tcp_setup_socket() function can enter an infinite loop if a BPF program on kernel_connect() returns -EPERM. This causes excessive syslog flooding and may lead to kernel freeze. The issue arises because -EPERM is not properly remapped to a more expected network error code, causing improper error handling.
References
- nvd.nist.gov/vuln/detail/CVE-2024-42246 (opens in a new tab)
- git.kernel.org/stable/c/02ee1976edb21a96ce8e3fd4ef563f14cc16d041 (opens in a new tab)
- git.kernel.org/stable/c/5d8254e012996cee1a0f9cc920531cb7e4d9a011 (opens in a new tab)
- git.kernel.org/stable/c/626dfed5fa3bfb41e0dffd796032b555b69f9cde (opens in a new tab)
- git.kernel.org/stable/c/934247ea65bc5eca8bdb7f8c0ddc15cef992a5d6 (opens in a new tab)
- git.kernel.org/stable/c/bc790261218952635f846aaf90bcc0974f6f62c6 (opens in a new tab)
- git.kernel.org/stable/c/d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414 (opens in a new tab)
- git.kernel.org/stable/c/f2431e7db0fe0daccb2f06bb0d23740affcd2fa6 (opens in a new tab)
- git.kernel.org/stable/c/f388cfd913a2b96c05339a335f365795db1b36b6 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/10/msg00003.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/01/msg00001.html (opens in a new tab)