# CVE-2025-37894: net: use sock\_gen\_put() when sk\_state is TCP\_TIME\_WAIT

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-20T15:21:31.283Z
- **Modified:** 2026-08-05T11:58:09.042Z

## Who should check

- Anyone running Linux \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< c0dba059b118b5206e755042b15b49368a388898; \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< 786650e644c5b1c063921799ca203c0b8670d79a; \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< f920436a44295ca791ebb6dae3f4190142eec703
- Anyone running Linux 6.10

## Description

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

## Affected and fixed versions

- Linux: \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< c0dba059b118b5206e755042b15b49368a388898; \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< 786650e644c5b1c063921799ca203c0b8670d79a; \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< f920436a44295ca791ebb6dae3f4190142eec703 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37894. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37894.md
Affected: Linux >= c9d1d23e5239f41700be69133a5769ac5ebc88a8, < c0dba059b118b5206e755042b15b49368a388898; >= c9d1d23e5239f41700be69133a5769ac5ebc88a8, < 786650e644c5b1c063921799ca203c0b8670d79a; >= c9d1d23e5239f41700be69133a5769ac5ebc88a8, < f920436a44295ca791ebb6dae3f4190142eec703; Linux 6.10
Fixed in: Linux 786650e644c5b1c063921799ca203c0b8670d79a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37894 being exploited?

There is no confirmed exploitation: CVE-2025-37894 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.72% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37894?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-37894?

Linux \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< c0dba059b118b5206e755042b15b49368a388898; \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< 786650e644c5b1c063921799ca203c0b8670d79a; \>= c9d1d23e5239f41700be69133a5769ac5ebc88a8, \< f920436a44295ca791ebb6dae3f4190142eec703; Linux 6.10.

### Is there a fix for CVE-2025-37894?

Yes. Fixed in Linux 786650e644c5b1c063921799ca203c0b8670d79a. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-37894?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c0dba059b118b5206e755042b15b49368a388898>
- patch: <https://git.kernel.org/stable/c/786650e644c5b1c063921799ca203c0b8670d79a>
- patch: <https://git.kernel.org/stable/c/f920436a44295ca791ebb6dae3f4190142eec703>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37894>

HTML: <https://flawdb.com/CVE-2025-37894> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37894>
