{"id":"CVE-2024-42246","aliases":["CVE-2024-42246"],"related":[],"kind":"vulnerability","state":"published","title":"net, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket\n\nWhen using a BPF program on kernel_connect(), the call can return -EPERM. This\ncauses xs_tcp_setup_socket() to loop forever, filling up the syslog and causing\nthe kernel to potentially freeze up.\n\nNeil suggested:\n\n  This will propagate -EPERM up into other layers which might not be ready\n  to handle it. It might be safer to map EPERM to an error we would be more\n  likely to expect from the network system - such as ECONNREFUSED or ENETDOWN.\n\nECONNREFUSED as error seems reasonable. For programs setting a different error\ncan be out of reach (see handling in 4fbac77d2d09) in particular on kernels\nwhich do not have f10d05966196 (\"bpf: Make BPF_PROG_RUN_ARRAY return -err\ninstead of allow boolean\"), thus given that it is better to simply remap for\nconsistent behavior. UDP does handle EPERM in xs_udp_send_request().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket\n\nWhen using a BPF program on kernel_connect(), the call can return -EPERM. This\ncauses xs_tcp_setup_socket() to loop forever, filling up the syslog and causing\nthe kernel to potentially freeze up.\n\nNeil suggested:\n\n  This will propagate -EPERM up into other layers which might not be ready\n  to handle it. It might be safer to map EPERM to an error we would be more\n  likely to expect from the network system - such as ECONNREFUSED or ENETDOWN.\n\nECONNREFUSED as error seems reasonable. For programs setting a different error\ncan be out of reach (see handling in 4fbac77d2d09) in particular on kernels\nwhich do not have f10d05966196 (\"bpf: Make BPF_PROG_RUN_ARRAY return -err\ninstead of allow boolean\"), thus given that it is better to simply remap for\nconsistent behavior. UDP does handle EPERM in xs_udp_send_request().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net, sunrpc: reasignar EPERM en caso de falla de conexión en xs_tcp_setup_socket Cuando se usa un programa BPF en kernel_connect(), la llamada puede devolver -EPERM. Esto hace que xs_tcp_setup_socket() se repita indefinidamente, llenando el syslog y provocando que el kernel se congele potencialmente. Neil sugirió: Esto propagará -EPERM a otras capas que podrían no estar listas para manejarlo. Podría ser más seguro asignar EPERM a un error que probablemente esperaríamos del sistema de red, como ECONNREFUSED o ENETDOWN. ECONNREFUSED como error parece razonable. Para los programas, configurar un error diferente puede estar fuera de su alcance (consulte el manejo en 4fbac77d2d09), en particular en los núcleos que no tienen f10d05966196 (\"bpf: Make BPF_PROG_RUN_ARRAY return -err en lugar de permitir boolean\"), por lo que es mejor simplemente reasignar para un comportamiento consistente. UDP maneja EPERM en xs_udp_send_request().","source":"nvd"}],"published":"2024-08-07T15:14:31.615Z","modified":"2026-06-17T07:49:05.860Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-835"],"affected":[{"ranges":[{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"bc790261218952635f846aaf90bcc0974f6f62c6","status":"affected"},{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"934247ea65bc5eca8bdb7f8c0ddc15cef992a5d6","status":"affected"},{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"02ee1976edb21a96ce8e3fd4ef563f14cc16d041","status":"affected"},{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"5d8254e012996cee1a0f9cc920531cb7e4d9a011","status":"affected"},{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"f2431e7db0fe0daccb2f06bb0d23740affcd2fa6","status":"affected"},{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414","status":"affected"},{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"f388cfd913a2b96c05339a335f365795db1b36b6","status":"affected"},{"type":"git","introduced":"4fbac77d2d092b475dda9eea66da674369665427","fixed":"626dfed5fa3bfb41e0dffd796032b555b69f9cde","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"4.19.322","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.284","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.226","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.167","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.100","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.41","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.10","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.17","fixed":"6.1.100"},{"status":"affected","introduced":"6.2","fixed":"6.6.41"},{"status":"affected","introduced":"6.7","fixed":"6.9.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bc790261218952635f846aaf90bcc0974f6f62c6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/934247ea65bc5eca8bdb7f8c0ddc15cef992a5d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/02ee1976edb21a96ce8e3fd4ef563f14cc16d041","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d8254e012996cee1a0f9cc920531cb7e4d9a011","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2431e7db0fe0daccb2f06bb0d23740affcd2fa6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f388cfd913a2b96c05339a335f365795db1b36b6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/626dfed5fa3bfb41e0dffd796032b555b69f9cde","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:13:31.910Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42246","url":"https://www.cve.org/CVERecord?id=CVE-2024-42246","licence":"CVE Terms of Use","modified":"2026-05-11T20:28:37.829Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42246","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42246","licence":"Public domain","modified":"2026-06-17T07:49:05.860Z"}],"updatedAt":"2026-11-25T22:58:44.110Z","epss":{"score":0.00233,"percentile":0.15221,"date":"2026-12-01T12:00:22.000Z"}}