VDB

CVE-2025-37894

CVE-2025-37894 PUBLISHED CVSS 9.8 CRITICAL

net: use sock_gen_put() when sk_state is TCP_TIME_WAIT

Reported by linux · Published May 20, 2025

In the Linux kernel, the following vulnerability has been resolved: net: use sock_gen_put() when sk_state is TCP_TIME_WAIT It is possible for a pointer of type struct inet_timewait_sock to be returned from the functions __inet_lookup_established() and __inet6_lookup_established(). This can cause a crash when the returned pointer is of type struct inet_timewait_sock and sock_put() is called on it. The following is a crash call stack that shows sk->sk_wmem_alloc being accessed in sk_free() during the call to sock_put() on a struct inet_timewait_sock pointer. To avoid this issue, use sock_gen_put() instead of sock_put() when sk->sk_state is TCP_TIME_WAIT. mrdump.ko ipanic() + 120 vmlinux notifier_call_chain(nr_to_call=-1, nr_calls=0) + 132 vmlinux atomic_notifier_call_chain(val=0) + 56 vmlinux panic() + 344 vmlinux add_taint() + 164 vmlinux end_report() + 136 vmlinux kasan_report(size=0) + 236 vmlinux report_tag_fault() + 16 vmlinux do_tag_recovery() + 16 vmlinux __do_kernel_fault() + 88 vmlinux do_bad_area() + 28 vmlinux do_tag_check_fault() + 60 vmlinux do_mem_abort() + 80 vmlinux el1_abort() + 56 vmlinux el1h_64_sync_handler() + 124 vmlinux > 0xFFFFFFC080011294() vmlinux __lse_atomic_fetch_add_release(v=0xF2FFFF82A896087C) vmlinux __lse_atomic_fetch_sub_release(v=0xF2FFFF82A896087C) vmlinux arch_atomic_fetch_sub_release(i=1, v=0xF2FFFF82A896087C) + 8 vmlinux raw_atomic_fetch_sub_release(i=1, v=0xF2FFFF82A896087C) + 8 vmlinux atomic_fetch_sub_release(i=1, v=0xF2FFFF82A896087C) + 8 vmlinux __refcount_sub_and_test(i=1, r=0xF2FFFF82A896087C, oldp=0) + 8 vmlinux __refcount_dec_and_test(r=0xF2FFFF82A896087C, oldp=0) + 8 vmlinux refcount_dec_and_test(r=0xF2FFFF82A896087C) + 8 vmlinux sk_free(sk=0xF2FFFF82A8960700) + 28 vmlinux sock_put() + 48 vmlinux tcp6_check_fraglist_gro() + 236 vmlinux tcp6_gro_receive() + 624 vmlinux ipv6_gro_receive() + 912 vmlinux dev_gro_receive() + 1116 vmlinux napi_gro_receive() + 196 ccmni.ko ccmni_rx_callback() + 208 ccmni.ko ccmni_queue_recv_skb() + 388 ccci_dpmaif.ko dpmaif_rxq_push_thread() + 1088 vmlinux kthread() + 268 vmlinux 0xFFFFFFC08001F30C()

EPSS 0.49% · 43.4th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-modules-extraAmazon Linux6.12.29-33.102.amzn2023
python3-perf6.12Amazon Linux6.12.29-33.102.amzn2023
kernel-develAmazon Linux6.12.29-33.102.amzn2023
kernel-libbpf-develAmazon Linux6.12.29-33.102.amzn2023

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.49%
43.4th percentile

Affected products

VendorProductVersions
LinuxLinuxc9d1d23e5239f41700be69133a5769ac5ebc88a8, c9d1d23e5239f41700be69133a5769ac5ebc88a8, c9d1d23e5239f41700be69133a5769ac5ebc88a8
LinuxLinux6.10, 0, 6.12.28
amazon:2023kernel6.12-modules-extra0
amazon:2023python3-perf6.120
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-devel0
linuxlinux_kernel6.10, 6.10, 6.10
amazon:2023kernel-headers0
amazon:2023perf6.120
LinuxLinux6.15, *, *
amazon:2023kernel-libbpf-static0
amazon:2023bpftool0
amazon:2023kernel-tools-devel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-livepatch-6.12.29-33.1020
amazon:2023kernel-tools0
amazon:2023kernel6.120
amazon:2023kernel-libbpf0

Timeline

  • May 20, 2025 CVE Published
  • May 21, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 24, 2025 PoC Published (3 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (196 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score
  • Jul 30, 2026 CVE Updated
  • Sep 19, 2026 Distribution Patch (188 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-37894
vulnetix vdb fixes CVE-2025-37894

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-37894/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›