{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99370","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.410Z","datePublished":"2026-11-19T14:23:06.609Z","dateUpdated":"2026-11-22T11:07:54.303Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:07:54.303Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nNFSD: copy SETXATTR data from all XDR buffer segments\n\nnfsd4_vbuf_from_vector() manually copies the head followed by whole\npages starting at offset zero. This assumes that all remaining data\nstarts at the beginning of the page array and that no data is stored\nin the tail.\n\nHowever, nfsd4_decode_setxattr() passes an xdr_buf returned by\nxdr_stream_subsegment(). Such a sub-buffer can have a nonzero\npage_base and can span its page and tail segments. Ignoring that\nlayout can copy the wrong bytes into the value passed to\nvfs_setxattr().\n\nUse read_bytes_from_xdr_buf(), which observes the complete xdr_buf\nlayout."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H","baseScore":9.4,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The OP_SETXATTR xattr value is attacker-controlled XDR inside an NFSv4.2 COMPOUND. nfs4svc_decode_compoundargs calls nfsd4_decode_setxattr, which takes the value with xdr_stream_subsegment() from rq_arg filled by svc_tcp_recvfrom or svc_rdma_recvfrom and passes that sub-buffer to nfsd4_vbuf_from_vector. SUNRPC on TCP port 2049 is routable.\nAC:L - The client chooses the COMPOUND offset of the value and, for a single Read chunk, the position and length that svc_rdma_read_complete_one splits into rq_arg.pages and rq_arg.tail. A nonzero page_base, or a value that continues from the chunk into that tail, makes the pre-fix walk in nfsd4_vbuf_from_vector copy the wrong bytes on every send.\nPR:N - nfsd_dispatch reaches the decoder only after svcauth_unix_accept returns SVC_OK. That path records the uid and gid from the AUTH_SYS credential and accepts an empty AUTH_NULL verifier. nfsd4_vbuf_from_vector then runs inside nfsd4_decode_setxattr, before nfsd_setxattr calls fh_verify.\nUI:N - The client triggers nfsd4_decode_setxattr by sending the COMPOUND, and the Read chunk if it uses one, on its own connection. No second party has to mount an export, open a file, or answer a prompt.\nS:U - The memcpy in nfsd4_vbuf_from_vector and the later __vfs_setxattr_locked of that buffer both affect only the nfsd host kernel and the exported inode's user xattr, which is the same security authority as the server.\nC:H - When the value extends past the Read-chunk page_len into the tail built by svc_rdma_read_complete_one, nfsd4_vbuf_from_vector copies the overrun from the following rq_pages entry. svc_fill_pages obtains those pages with alloc_pages_bulk(GFP_KERNEL) and does not zero them, and a completed SETXATTR is readable back with GETXATTR. The overrun is the tail fragment, up to the 4096-byte default inline threshold.\nI:L - nfsd_setxattr feeds the mis-copied buffer to __vfs_setxattr_locked as the value of the user.* name built in nfsd4_decode_xattr_name, with length setxa_len. svcxdr_tmpalloc sizes the destination to that length, so the modification is that one attribute.\nA:H - A Read chunk that fills every svc_serv_maxpages slot of rq_pages leaves rq_pages[rq_maxpages] NULL from kcalloc. A value that begins on the last chunk page and spills into the tail makes nfsd4_vbuf_from_vector pass that NULL to page_address, and memcpy from page_to_virt(NULL) faults in kernel context."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4xdr.c"],"versions":[{"version":"c1346a1216ab5cb04a265380ac9035d91b16b6d5","lessThan":"019cf7e0eebf6dc14b465cc984390b41c854da69","status":"affected","versionType":"git"},{"version":"c1346a1216ab5cb04a265380ac9035d91b16b6d5","lessThan":"20b76bdbd029343ea98944cb88bf016da2371739","status":"affected","versionType":"git"},{"version":"c1346a1216ab5cb04a265380ac9035d91b16b6d5","lessThan":"fea77ec4a37614cbbe4fb26c621227182439f487","status":"affected","versionType":"git"},{"version":"c1346a1216ab5cb04a265380ac9035d91b16b6d5","lessThan":"b01319947c69b0e3ea0fcd4b675eb892f9cad8a0","status":"affected","versionType":"git"},{"version":"bbb0a710a2c7a0b171e7a0d6fbdd6d5a2acd003b","status":"affected","versionType":"git"},{"version":"5.10.220","lessThan":"5.11","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfsd/nfs4xdr.c"],"versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.220"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/019cf7e0eebf6dc14b465cc984390b41c854da69"},{"url":"https://git.kernel.org/stable/c/20b76bdbd029343ea98944cb88bf016da2371739"},{"url":"https://git.kernel.org/stable/c/fea77ec4a37614cbbe4fb26c621227182439f487"},{"url":"https://git.kernel.org/stable/c/b01319947c69b0e3ea0fcd4b675eb892f9cad8a0"}],"title":"NFSD: copy SETXATTR data from all XDR buffer segments","x_generator":{"engine":"bippy-1.2.0"}}}}