CVE-2024-57974
publishedudp: Deal with race between UDP socket address change and rehash
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux30fff9231fad757c061285e347b33c5149c2c2e4 to < 3946283de7bbb76b2995bd51ab0388d4fd556c77 · 30fff9231fad757c061285e347b33c5149c2c2e4 to < 2855445a1870b8e568fb19edbd60b9c499e3dae0 · 30fff9231fad757c061285e347b33c5149c2c2e4 to < 4f8344fce91c5766d368edb0ad80142eacd805c7 · 30fff9231fad757c061285e347b33c5149c2c2e4 to < d65d3bf309b2649d27b24efd0d8784da2d81f2a6 · 30fff9231fad757c061285e347b33c5149c2c2e4 to < a502ea6fa94b1f7be72a24bcf9e3f5f6b7e6e90c · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.33 (affected) · 0 to < 2.6.33 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.160 through 6.6.* (unaffected · semver) · 6.12.13 through 6.12.* (unaffected · semver) · 6.13.2 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| Debian | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-debug | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-debug-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-debug-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-debug-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-64k-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-687.61.1.el9_8 | ALSA-2026:90365 |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-102.36.5.2.el10uek | ELSA-2025-20530 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-101.33.4.3.el10uek | ELSA-2025-20480 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: udp: Deal with race between UDP socket address change and rehash If a UDP socket changes its local address while it's receiving datagrams, as a result of connect(), there is a period during which a lookup operation might fail to find it, after the address is changed but before the secondary hash (port and address) and the four-tuple hash (local and remote ports and addresses) are updated. Secondary hash chains were introduced by commit 30fff9231fad ("udp: bind() optimisation") and, as a result, a rehash operation became needed to make a bound socket reachable again after a connect(). This operation was introduced by commit 719f835853a9 ("udp: add rehash on connect()") which isn't however a complete fix: the socket will be found once the rehashing completes, but not while it's pending. This is noticeable with a socat(1) server in UDP4-LISTEN mode, and a client sending datagrams to it. After the server receives the first datagram (cf. _xioopen_ipdgram_listen()), it issues a connect() to the address of the sender, in order to set up a directed flow. Now, if the client, running on a different CPU thread, happens to send a (subsequent) datagram while the server's socket changes its address, but is not rehashed yet, this will result in a failed lookup and a port unreachable error delivered to the client, as apparent from the following reproducer: LEN=$(($(cat /proc/sys/net/core/wmem_default) / 4)) dd if=/dev/urandom bs=1 count=${LEN} of=tmp.in while :; do taskset -c 1 socat UDP4-LISTEN:1337,null-eof OPEN:tmp.out,create,trunc & sleep 0.1 || sleep 1 taskset -c 2 socat OPEN:tmp.in UDP4:localhost:1337,shut-null wait done where the client will eventually get ECONNREFUSED on a write() (typically the second or third one of a given iteration): 2024/11/13 21:28:23 socat[46901] E write(6, 0x556db2e3c000, 8192): Connection refused This issue was first observed as a seldom failure in Podman's tests checking UDP functionality while using pasta(1) to connect the container's network namespace, which leads us to a reproducer with the lookup error resulting in an ICMP packet on a tap device: LOCAL_ADDR="$(ip -j -4 addr show|jq -rM '.[] | .addr_info[0] | select(.scope == "global").local')" while :; do ./pasta --config-net -p pasta.pcap -u 1337 socat UDP4-LISTEN:1337,null-eof OPEN:tmp.out,create,trunc & sleep 0.2 || sleep 1 socat OPEN:tmp.in UDP4:${LOCAL_ADDR}:1337,shut-null wait cmp tmp.in tmp.out done Once this fails: tmp.in tmp.out differ: char 8193, line 29 we can finally have a look at what's going on: $ tshark -r pasta.pcap 1 0.000000 :: ? ff02::16 ICMPv6 110 Multicast Listener Report Message v2 2 0.168690 88.198.0.161 ? 88.198.0.164 UDP 8234 60260 ? 1337 Len=8192 3 0.168767 88.198.0.161 ? 88.198.0.164 UDP 8234 60260 ? 1337 Len=8192 4 0.168806 88.198.0.161 ? 88.198.0.164 UDP 8234 60260 ? 1337 Len=8192 5 0.168827 c6:47:05:8d:dc:04 ? Broadcast ARP 42 Who has 88.198.0.161? Tell 88.198.0.164 6 0.168851 9a:55:9a:55:9a:55 ? c6:47:05:8d:dc:04 ARP 42 88.198.0.161 is at 9a:55:9a:55:9a:55 7 0.168875 88.198.0.161 ? 88.198.0.164 UDP 8234 60260 ? 1337 Len=8192 8 0.168896 88.198.0.164 ? 88.198.0.161 ICMP 590 Destination unreachable (Port unreachable) 9 0.168926 88.198.0.161 ? 88.198.0.164 UDP 8234 60260 ? 1337 Len=8192 10 0.168959 88.198.0.161 ? 88.198.0.164 UDP 8234 60260 ? 1337 Len=8192 11 0.168989 88.198.0.161 ? 88.198.0.164 UDP 4138 60260 ? 1337 Len=4096 12 0.169010 88.198.0.161 ? 88.198.0.164 UDP 42 60260 ? 1337 Len=0 On the third datagram received, the network namespace of the container initiates an ARP lookup to deliver the ICMP message. In another variant of this reproducer, starting the client with: strace -f pasta --config-net -u 1337 socat UDP4-LISTEN:1337,null-eof OPEN:tmp.out,create,tru ---truncated---
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 30fff9231fad757c061285e347b33c5149c2c2e4 to < 3946283de7bbb76b2995bd51ab0388d4fd556c77 (affected · git)30fff9231fad757c061285e347b33c5149c2c2e4 to < 2855445a1870b8e568fb19edbd60b9c499e3dae0 (affected · git)30fff9231fad757c061285e347b33c5149c2c2e4 to < 4f8344fce91c5766d368edb0ad80142eacd805c7 (affected · git)30fff9231fad757c061285e347b33c5149c2c2e4 to < d65d3bf309b2649d27b24efd0d8784da2d81f2a6 (affected · git)30fff9231fad757c061285e347b33c5149c2c2e4 to < a502ea6fa94b1f7be72a24bcf9e3f5f6b7e6e90c (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.33 (affected)0 to < 2.6.33 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.160 through 6.6.* (unaffected · semver)6.12.13 through 6.12.* (unaffected · semver)6.13.2 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/2855445a1870b8e568fb19edbd60b9c499e3dae0
- https://git.kernel.org/stable/c/3946283de7bbb76b2995bd51ab0388d4fd556c77
- https://git.kernel.org/stable/c/4f8344fce91c5766d368edb0ad80142eacd805c7
- https://git.kernel.org/stable/c/a502ea6fa94b1f7be72a24bcf9e3f5f6b7e6e90c
- https://git.kernel.org/stable/c/d65d3bf309b2649d27b24efd0d8784da2d81f2a6
Provider assertions
2Linux · cna
udp: Deal with race between UDP socket address change and rehash
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 247217434f3d7503d9725b9a8cbf059e6ccd23274bd68f2e476fce9d71a83a0f
- Ingested
- 07 Nov 2026, 23:22:46 UTC
- Source record
- Official CVE record