nfsd: add fh_want_write() for early-verified SETATTR in nfsd_proc_setattr()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cc265089ce1b176dde963c74b53593446ee7f99a · < 533964d420d385e11b08dd4c56c66ef5dcccaf08| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfsd: add fh_want_write() for early-verified SETATTR in nfsd_proc_setattr()
The BOTH_TIME_SET branch calls fh_verify() early so setattr_prepare() can inspect the dentry. This causes nfsd_setattr() to skip fh_want_write(), so notify_change() runs without a mount write reference.
Add the missing fh_want_write() call after the early fh_verify().
From the CVE record · Linux
The Linux kernel’s nfsd SETATTR path can call notify_change() without a mount write reference after early file-handle verification. An attacker able to issue an affected SETATTR request may trigger this behavior; the input does not specify authentication requirements or user interaction.
Operators running Linux kernels with the affected nfsd SETATTR path should check their kernel versions against the vendor advisory; affected versions were not provided.