7.5high
Revert "NFSD: Remove the cap on number of operations per NFSv4 COMPOUND"
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: Revertir 'NFSD: Remove the cap on number of operations per NFSv4 COMPOUND' He descubierto que pynfs COMP6 ahora deja la conexión o el arrendamiento en un estado extraño, lo que provoca que CLOSE9 se cuelgue indefinidamente. He investigado un poco, pero aún no he podido determinar la causa raíz. Sin embargo, hice una búsqueda binaria hasta el commit 48aab1606fa8 ('NFSD: Remove the cap on number of operations per NFSv4 COMPOUND'). Tianshuo Han también informa una posible vulnerabilidad al decodificar un COMPOUND NFSv4. Un atacante puede colocar un recuento de operaciones arbitrariamente grande en la cabecera del COMPOUND, lo que resulta en: [ 51.410584] nfsd: vmalloc error: size 1209533382144, exceeds total pages, mode:0xdc0(GFP_KERNEL|__GFP_ZERO), nodemask=(null),cpuset=/,mems_allowed=0 cuando NFSD intenta asignar el array de operaciones del COMPOUND. Restauremos el límite de operaciones por COMPOUND, pero aumentado a 200 por ahora.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-40210 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-40210 changed 2026-10-19 | Public domain |