# CVE-2025-40273: NFSD: free copynotify stateid in nfs4\_free\_ol\_stateid()

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; 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, login needed
- **EPSS:** 0.88% (percentile 57, 2026-11-26)
- **Published:** 2025-12-06T21:50:55.723Z
- **Modified:** 2026-10-15T22:19:06.630Z

## Who should check

- Anyone running Linux \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 935a2dc8928670bb2c37e21025331e61ec48ccf4; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< b114996a095da39e38410a0328d4a8aca8c36088; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 839f56f626723f36904764858467e7a3881b975d; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 29fbb3ad4018ca2b0988fbac76f4c694cc6d7e66; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< d7be15a634aa3874827d0d3ea47452ee878b8df7; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< f67ad9b33b0e6f00d2acc67cbf9cfa5c756be5fb; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 4aa17144d5abc3c756883e3a010246f0dba8b468
- Anyone running Linux 5.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

NFSD: free copynotify stateid in nfs4\_free\_ol\_stateid()

Typically copynotify stateid is freed either when parent's stateid
is being close/freed or in nfsd4\_laundromat if the stateid hasn't
been used in a lease period.

However, in case when the server got an OPEN (which created
a parent stateid), followed by a COPY\_NOTIFY using that stateid,
followed by a client reboot. New client instance while doing
CREATE\_SESSION would force expire previous state of this client.
It leads to the open state being freed thru release\_openowner-\>
nfs4\_free\_ol\_stateid() and it finds that it still has copynotify
stateid associated with it. We currently print a warning and is
triggerred

WARNING: CPU: 1 PID: 8858 at fs/nfsd/nfs4state.c:1550 nfs4\_free\_ol\_stateid+0xb0/0x100 \[nfsd\]

This patch, instead, frees the associated copynotify stateid here.

If the parent stateid is freed (without freeing the copynotify
stateids associated with it), it leads to the list corruption
when laundromat ends up freeing the copynotify state later.

\[ 1626.839430\] Internal error: Oops - BUG: 00000000f2000800 \[\#1\]  SMP
\[ 1626.842828\] Modules linked in: nfnetlink\_queue nfnetlink\_log bluetooth cfg80211 rpcrdma rdma\_cm iw\_cm ib\_cm ib\_core nfsd nfs\_acl lockd grace nfs\_localio ext4 crc16 mbcache jbd2 overlay uinput snd\_seq\_dummy snd\_hrtimer qrtr rfkill vfat fat uvcvideo snd\_hda\_codec\_generic videobuf2\_vmalloc videobuf2\_memops snd\_hda\_intel uvc snd\_intel\_dspcfg videobuf2\_v4l2 videobuf2\_common snd\_hda\_codec snd\_hda\_core videodev snd\_hwdep snd\_seq mc snd\_seq\_device snd\_pcm snd\_timer snd soundcore sg loop auth\_rpcgss vsock\_loopback vmw\_vsock\_virtio\_transport\_common vmw\_vsock\_vmci\_transport vmw\_vmci vsock xfs 8021q garp stp llc mrp nvme ghash\_ce e1000e nvme\_core sr\_mod nvme\_keyring nvme\_auth cdrom vmwgfx drm\_ttm\_helper ttm sunrpc dm\_mirror dm\_region\_hash dm\_log iscsi\_tcp libiscsi\_tcp libiscsi scsi\_transport\_iscsi fuse dm\_multipath dm\_mod nfnetlink
\[ 1626.855594\] CPU: 2 UID: 0 PID: 199 Comm: kworker/u24:33 Kdump: loaded Tainted: G    B   W           6.17.0-rc7+ \#22 PREEMPT(voluntary)
\[ 1626.857075\] Tainted: \[B\]=BAD\_PAGE, \[W\]=WARN
\[ 1626.857573\] Hardware name: VMware, Inc. VMware20,1/VBSA, BIOS VMW201.00V.24006586.BA64.2406042154 06/04/2024
\[ 1626.858724\] Workqueue: nfsd4 laundromat\_main \[nfsd\]
\[ 1626.859304\] pstate: 61400005 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
\[ 1626.860010\] pc : \_\_list\_del\_entry\_valid\_or\_report+0x148/0x200
\[ 1626.860601\] lr : \_\_list\_del\_entry\_valid\_or\_report+0x148/0x200
\[ 1626.861182\] sp : ffff8000881d7a40
\[ 1626.861521\] x29: ffff8000881d7a40 x28: 0000000000000018 x27: ffff0000c2a98200
\[ 1626.862260\] x26: 0000000000000600 x25: 0000000000000000 x24: ffff8000881d7b20
\[ 1626.862986\] x23: ffff0000c2a981e8 x22: 1fffe00012410e7d x21: ffff0000920873e8
\[ 1626.863701\] x20: ffff0000920873e8 x19: ffff000086f22998 x18: 0000000000000000
\[ 1626.864421\] x17: 20747562202c3839 x16: 3932326636383030 x15: 3030666666662065
\[ 1626.865092\] x14: 6220646c756f6873 x13: 0000000000000001 x12: ffff60004fd9e4a3
\[ 1626.865713\] x11: 1fffe0004fd9e4a2 x10: ffff60004fd9e4a2 x9 : dfff800000000000
\[ 1626.866320\] x8 : 00009fffb0261b5e x7 : ffff00027ecf2513 x6 : 0000000000000001
\[ 1626.866938\] x5 : ffff00027ecf2510 x4 : ffff60004fd9e4a3 x3 : 0000000000000000
\[ 1626.867553\] x2 : 0000000000000000 x1 : ffff000096069640 x0 : 000000000000006d
\[ 1626.868167\] Call trace:
\[ 1626.868382\]  \_\_list\_del\_entry\_valid\_or\_report+0x148/0x200 (P)
\[ 1626.868876\]  \_free\_cpntf\_state\_locked+0xd0/0x268 \[nfsd\]
\[ 1626.869368\]  nfs4\_laundromat+0x6f8/0x1058 \[nfsd\]
\[ 1626.869813\]  laundromat\_main+0x24/0x60 \[nfsd\]
\[ 1626.870231\]  process\_one\_work+0x584/0x1050
\[ 1626.870595\]  worker\_thread+0x4c4/0xc60
\[ 1626.870893\]  kthread+0x2f8/0x398
\[ 1626.871146\]  ret\_from\_fork+0x10/0x20
\[ 1626.871422\] Code: aa1303e1 aa1403e3 910e8000 97bc55d7 (d4210000)
\[ 1626.871892\] SMP: stopping secondary CPUs

## Affected and fixed versions

- Linux: \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 935a2dc8928670bb2c37e21025331e61ec48ccf4; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< b114996a095da39e38410a0328d4a8aca8c36088; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 839f56f626723f36904764858467e7a3881b975d; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 29fbb3ad4018ca2b0988fbac76f4c694cc6d7e66; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< d7be15a634aa3874827d0d3ea47452ee878b8df7; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< f67ad9b33b0e6f00d2acc67cbf9cfa5c756be5fb; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 4aa17144d5abc3c756883e3a010246f0dba8b468 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 4aa17144d5abc3c756883e3a010246f0dba8b468 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40273.md
Affected: Linux >= 624322f1adc58acd0b69f77a6ddc764207e97241, < 935a2dc8928670bb2c37e21025331e61ec48ccf4; >= 624322f1adc58acd0b69f77a6ddc764207e97241, < b114996a095da39e38410a0328d4a8aca8c36088; >= 624322f1adc58acd0b69f77a6ddc764207e97241, < 839f56f626723f36904764858467e7a3881b975d; >= 624322f1adc58acd0b69f77…
Fixed in: Linux 935a2dc8928670bb2c37e21025331e61ec48ccf4, Linux 839f56f626723f36904764858467e7a3881b975d, Linux 29fbb3ad4018ca2b0988fbac76f4c694cc6d7e66, Linux 4aa17144d5abc3c756883e3a010246f0dba8b468

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-40273 being exploited?

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

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

Linux \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 935a2dc8928670bb2c37e21025331e61ec48ccf4; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< b114996a095da39e38410a0328d4a8aca8c36088; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 839f56f626723f36904764858467e7a3881b975d; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 29fbb3ad4018ca2b0988fbac76f4c694cc6d7e66; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< d7be15a634aa3874827d0d3ea47452ee878b8df7; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< f67ad9b33b0e6f00d2acc67cbf9cfa5c756be5fb; \>= 624322f1adc58acd0b69f77a6ddc764207e97241, \< 4aa17144d5abc3c756883e3a010246f0dba8b468; Linux 5.6.

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

Yes. Fixed in Linux 935a2dc8928670bb2c37e21025331e61ec48ccf4, Linux 839f56f626723f36904764858467e7a3881b975d, Linux 29fbb3ad4018ca2b0988fbac76f4c694cc6d7e66, Linux 4aa17144d5abc3c756883e3a010246f0dba8b468. Upgrade Linux to 4aa17144d5abc3c756883e3a010246f0dba8b468 or later.

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

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

- other: <https://git.kernel.org/stable/c/935a2dc8928670bb2c37e21025331e61ec48ccf4>
- other: <https://git.kernel.org/stable/c/b114996a095da39e38410a0328d4a8aca8c36088>
- other: <https://git.kernel.org/stable/c/839f56f626723f36904764858467e7a3881b975d>
- other: <https://git.kernel.org/stable/c/29fbb3ad4018ca2b0988fbac76f4c694cc6d7e66>
- other: <https://git.kernel.org/stable/c/d7be15a634aa3874827d0d3ea47452ee878b8df7>
- other: <https://git.kernel.org/stable/c/f67ad9b33b0e6f00d2acc67cbf9cfa5c756be5fb>
- other: <https://git.kernel.org/stable/c/4aa17144d5abc3c756883e3a010246f0dba8b468>

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

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