Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2024-57974: udp: Deal with race between UDP socket address change and rehash

Noroxi assessment

Priority: Monitor (action score 18/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.18% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. Special conditions such as timing or configuration are required.
  • Fixed version: Linux Linux 2855445a1870b8e568fb19edbd60b9c499e3dae0, 4f8344fce91c5766d368edb0ad80142eacd805c7, a502ea6fa94b1f7be72a24bcf9e3f5f6b7e6e90c; azl3 kernel 6.6.152.1-1 on Azure Linux 3.0 Release Notes; azl3 kernel 6.6.157.1-1 on Azure Linux 3.0 Release Notes.

Low priority for now. Upgrade to Linux Linux 2855445a1870b8e568fb19edbd60b9c499e3dae0, 4f8344fce91c5766d368edb0ad80142eacd805c7, a502ea6fa94b1f7be72a24bcf9e3f5f6b7e6e90c; azl3 kernel 6.6.152.1-1 on Azure Linux 3.0 Release Notes; azl3 kernel 6.6.157.1-1 on Azure Linux 3.0 Release Notes or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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---

MediumCVSS 4.7 · v3.1—No exploit Fix available
Published
Feb 27, 2025
Updated
Oct 21, 2026
EPSS
0.1% · 7th percentile

Report tools

JSON

Action score

18

Monitor

Low priority for now.

CVSS
18 / 40 · 4.7 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.1%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2024-57974

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
linuxlinux kernel

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • linux linux kernel2.6.33 and later · before 6.12.13
  • linux linux kernel6.13 and later · before 6.13.2

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 2.6.33affected
    • 30fff9231fad757c061285e347b33c5149c2c2e4 and later · before 2855445a1870b8e568fb19edbd60b9c499e3dae0affected · git
    • 30fff9231fad757c061285e347b33c5149c2c2e4 and later · before 4f8344fce91c5766d368edb0ad80142eacd805c7affected · git
    • 30fff9231fad757c061285e347b33c5149c2c2e4 and later · before d65d3bf309b2649d27b24efd0d8784da2d81f2a6affected · git
    • 30fff9231fad757c061285e347b33c5149c2c2e4 and later · before a502ea6fa94b1f7be72a24bcf9e3f5f6b7e6e90caffected · git
    • before 2.6.33not affected · semver
    • 6.6.160 and later · up to and including 6.6.*not affected · semver
    • 6.12.13 and later · up to and including 6.12.*not affected · semver
    • 6.13.2 and later · up to and including 6.13.*not affected · semver
    • 6.14 and laternot affected · original_commit_for_fix

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:9kernelbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64kbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-corebefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-debugbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-debug-corebefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-debug-develbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-debug-devel-matchedbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-debug-modulesbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-debug-modules-corebefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-debug-modules-extrabefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-develbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-devel-matchedbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-modulesbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-modules-corebefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-64k-modules-extrabefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-abi-stablelistsbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-corebefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-cross-headersbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-debugbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-debug-corebefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-debug-develbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-debug-devel-matchedbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-debug-modulesbefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8
AlmaLinux:9kernel-debug-modules-corebefore 5.14.0-687.61.1.el9_85.14.0-687.61.1.el9_8

+52

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

Published before and after this one in the same product

  • ← EarlierCVE-2025-21797Feb 26, 2025 · HID: corsair-void: Add missing delayed work cancel for headset status
    31Monitor
  • ← EarlierCVE-2024-57973Feb 27, 2025 · rdma/cxgb4: Prevent potential integer overflow on 32bit
    22Monitor
  • Later →CVE-2024-57975Feb 27, 2025 · btrfs: do proper folio cleanup when run_delalloc_nocow() failed
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux2855445a1870b8e568fb19edbd60b9c499e3dae0Vendor (CNA)
Linux Linux4f8344fce91c5766d368edb0ad80142eacd805c7Vendor (CNA)
Linux Linuxa502ea6fa94b1f7be72a24bcf9e3f5f6b7e6e90cVendor (CNA)
Linux Linuxd65d3bf309b2649d27b24efd0d8784da2d81f2a6Vendor (CNA)
azl3 kernel 6.6.152.1-1 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
azl3 kernel 6.6.157.1-1 on Azure Linux 3.0Release NotesMicrosoft (MSRC)
cbl2 kernel 5.15.202.1-1 on CBL-Mariner 2.0—Microsoft (MSRC)
almalinux:kernel5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-core5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-debug5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-debug-core5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-debug-devel5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-debug-devel-matched5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-debug-modules5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-debug-modules-core5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-debug-modules-extra5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-devel5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
almalinux:kernel-64k-devel-matched5.14.0-687.61.1.el9_8 · AlmaLinux:9Package registry (OSV)
debian:linux6.12.13-1 · Debian:13Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records