# CVE-2025-40210: Revert "NFSD: Remove the cap on number of operations per NFSv4 COMPOUND"

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2025-11-21T10:21:35.540Z
- Modified: 2026-10-19T19:10:00.130Z
- Assigned by: Linux

## Description

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

Revert "NFSD: Remove the cap on number of operations per NFSv4 COMPOUND"

I've found that pynfs COMP6 now leaves the connection or lease in a
strange state, which causes CLOSE9 to hang indefinitely. I've dug
into it a little, but I haven't been able to root-cause it yet.
However, I bisected to commit 48aab1606fa8 ("NFSD: Remove the cap on
number of operations per NFSv4 COMPOUND").

Tianshuo Han also reports a potential vulnerability when decoding
an NFSv4 COMPOUND. An attacker can place an arbitrarily large op
count in the COMPOUND header, which results in:

[   51.410584] nfsd: vmalloc error: size 1209533382144, exceeds total
pages, mode:0xdc0(GFP_KERNEL|__GFP_ZERO),
nodemask=(null),cpuset=/,mems_allowed=0

when NFSD attempts to allocate the COMPOUND op array.

Let's restore the operation-per-COMPOUND limit, but increased to 200
for now.

(As written by CVE List.)

## Affected

- Linux Linux: from 48aab1606fa80027143a445224f552b4eeea845b before b3ee7ce432289deac87b9d14e01f2fe6958f7f0b; from 48aab1606fa80027143a445224f552b4eeea845b before 3e7f011c255582d7c914133785bbba1990441713; 6.17 (not affected: before 6.17; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/b3ee7ce432289deac87b9d14e01f2fe6958f7f0b>
- <https://git.kernel.org/stable/c/3e7f011c255582d7c914133785bbba1990441713>

## Sources

- CVE List: [CVE-2025-40210](https://www.cve.org/CVERecord?id=CVE-2025-40210), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-40210](https://nvd.nist.gov/vuln/detail/CVE-2025-40210), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40210 · Whole record: https://cve.day/CVE-2025-40210.json · Rebuilt by cve.day 2026-11-25T22:59:07.907Z
