CVE-2024-42246 net, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
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().
Upgrade path
11 packages: 11 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.106-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +23 more | 6.1.106-1 | Fixed |
| debian/linux(Debian 13) | < 6.9.10-1 | 6.9.10-1 | Fixed |
| debian/linux(Debian 14) | < 6.9.10-1 | 6.9.10-1 | Fixed |
| Linux kernel | < 4.19.322; < 5.4.284; < 5.10.226; < 5.15.167 +16 more | 02ee1976edb21a96ce8e3fd4ef563f14cc16d041, 4.19.322, 5.4.284, 5.10.226, 5.15.167, 5d8254e012996cee1a0f9cc920531cb7e4d9a011, 6.1.100, 6.6.41, 6.9.10, 6.10, 626dfed5fa3bfb41e0dffd796032b555b69f9cde, 934247ea65bc5eca8bdb7f8c0ddc15cef992a5d6, bc790261218952635f846aaf90bcc0974f6f62c6, d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414, f388cfd913a2b96c05339a335f365795db1b36b6, f2431e7db0fe0daccb2f06bb0d23740affcd2fa6 | Fixed |
| Microsoft azure linux | < 6.6.43.1-7 | 6.6.43.1-7 | Fixed |
| Microsoft cbl mariner | < 5.15.167.1-2 | 5.15.167.1-2 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-125.135 | 5.15.0-125.135 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-48.48 | 6.8.0-48.48 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1069.74 | 5.15.0-1069.74 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1065.68 | 5.15.0-1065.68 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1014.16 | 6.8.0-1014.16 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft azure linux | < 6.6.43.1-7 | 6.6.43.1-7 |
| Microsoft cbl mariner | < 5.15.167.1-2 | 5.15.167.1-2 |
| debian/linux(Debian:12) | < 6.1.106-1 | 6.1.106-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
Show 31 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | = 6.1.94-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.98-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.99-1 | No fix listed |
| debian/linux(Debian:13) | < 6.9.10-1 | 6.9.10-1 |
| debian/linux(Debian:14) | < 6.9.10-1 | 6.9.10-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-125.135 | 5.15.0-125.135 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1069.74 | 5.15.0-1069.74 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1065.68 | 5.15.0-1065.68 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < bc790261218952635f846aaf90bcc0974f6f62c6 | bc790261218952635f846aaf90bcc0974f6f62c6 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < 934247ea65bc5eca8bdb7f8c0ddc15cef992a5d6 | 934247ea65bc5eca8bdb7f8c0ddc15cef992a5d6 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < 02ee1976edb21a96ce8e3fd4ef563f14cc16d041 | 02ee1976edb21a96ce8e3fd4ef563f14cc16d041 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < 5d8254e012996cee1a0f9cc920531cb7e4d9a011 | 5d8254e012996cee1a0f9cc920531cb7e4d9a011 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < f2431e7db0fe0daccb2f06bb0d23740affcd2fa6 | f2431e7db0fe0daccb2f06bb0d23740affcd2fa6 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414 | d6c686c01c5f12ff8f7264e0ddf71df6cb0d4414 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < f388cfd913a2b96c05339a335f365795db1b36b6 | f388cfd913a2b96c05339a335f365795db1b36b6 |
| Linux kernel | >= 4fbac77d2d092b475dda9eea66da674369665427, < 626dfed5fa3bfb41e0dffd796032b555b69f9cde | 626dfed5fa3bfb41e0dffd796032b555b69f9cde |
| Linux kernel | = 4.17 | No fix listed |
| Linux kernel | < 4.19.322 | 4.19.322 |
| Linux kernel | < 5.4.284 | 5.4.284 |
| Linux kernel | < 5.10.226 | 5.10.226 |
| Linux kernel | < 5.15.167 | 5.15.167 |
| Linux kernel | < 6.1.100 | 6.1.100 |
| Linux kernel | < 6.6.41 | 6.6.41 |
| Linux kernel | < 6.9.10 | 6.9.10 |
| Linux kernel | < 6.10 | 6.10 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-48.48 | 6.8.0-48.48 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1014.16 | 6.8.0-1014.16 |
| Linux kernel | >= 4.17, < 6.1.100 | 6.1.100 |
| Linux kernel | >= 6.2, < 6.6.41 | 6.6.41 |
| Linux kernel | >= 6.7, < 6.9.10 | 6.9.10 |
References
- MSRC Security Update Guide vendor-advisory
- kernel vendor-advisory
- Debian Security Tracker CVE-2024-42246 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7088-1 vendor-advisory
- USN-7089-1 vendor-advisory
- USN-7090-1 vendor-advisory
- USN-7088-2 vendor-advisory
- USN-7089-2 vendor-advisory
- USN-7088-3 vendor-advisory
- USN-7089-3 vendor-advisory
- USN-7095-1 vendor-advisory
- USN-7088-4 vendor-advisory
- USN-7100-1 vendor-advisory
- USN-7100-2 vendor-advisory
- USN-7089-4 vendor-advisory
- USN-7089-5 vendor-advisory
- USN-7088-5 vendor-advisory
- USN-7089-6 vendor-advisory
- USN-7119-1 vendor-advisory
- USN-7089-7 vendor-advisory
- USN-7123-1 vendor-advisory
- USN-7144-1 vendor-advisory
- USN-7156-1 vendor-advisory
- USN-7194-1 vendor-advisory
- www.cve.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org
- lists.debian.org