CVE-2026-99370: NFSD: copy SETXATTR data from all XDR buffer segments
In the Linux kernel, the following vulnerability has been resolved:
NFSD: copy SETXATTR data from all XDR buffer segments
nfsd4vbuffromvector() manually copies the head followed by whole pages starting at offset zero. This assumes that all remaining data starts at the beginning of the page array and that no data is stored in the tail.
However, nfsd4decodesetxattr() passes an xdrbuf returned by xdrstreamsubsegment(). Such a sub-buffer can have a nonzero pagebase and can span its page and tail segments. Ignoring that layout can copy the wrong bytes into the value passed to vfssetxattr().
Use readbytesfromxdrbuf(), which observes the complete xdrbuf layout.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.11 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1 - Compensating control
Update nfsd4_decode_setxattr() to use read_bytes_from_xdr_buf() to copy SETXATTR data from all XDR buffer segments.