CVE-2026-99371: nfsd: clear XDR padding in GETXATTR replies
In the Linux kernel, the following vulnerability has been resolved:
nfsd: clear XDR padding in GETXATTR replies
nfsd4vbuftostream() uses a raw memcpy() for the first fragment of an attribute value. xdrreservespace() aligns the reservation but does not initialize the extra bytes. If the complete value fits in that fragment, the loop that clears padding for the final fragment is never entered.
A remote client reading an attribute whose length is not a multiple of four can therefore receive one to three stale bytes from the response page.
Encode the first fragment with xdrencodeopaquefixed(), matching the final-fragment path and ensuring that any XDR padding is zeroed.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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 - Compensating control
In nfsd4_vbuf_to_stream(), encode the first fragment of an attribute value with xdr_encode_opaque_fixed() so XDR padding is zeroed, including when the complete value fits in that fragment.