# CVE-2026-99370: NFSD: copy SETXATTR data from all XDR buffer segments

- Severity: Critical 9.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Published: 2026-11-19T14:23:06.609Z
- Modified: 2026-11-23T08:17:41.873Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

NFSD: copy SETXATTR data from all XDR buffer segments

nfsd4_vbuf_from_vector() 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, nfsd4_decode_setxattr() passes an xdr_buf returned by
xdr_stream_subsegment(). Such a sub-buffer can have a nonzero
page_base and can span its page and tail segments. Ignoring that
layout can copy the wrong bytes into the value passed to
vfs_setxattr().

Use read_bytes_from_xdr_buf(), which observes the complete xdr_buf
layout.

(As written by CVE List.)

## Affected

- Linux Linux: from bbb0a710a2c7a0b171e7a0d6fbdd6d5a2acd003b before dcb096258b059d83320c29ef012643c6f4ee00d8; from c1346a1216ab5cb04a265380ac9035d91b16b6d5 before d887960eda2512330d7fc2fa41339cc94bca3df0; from c1346a1216ab5cb04a265380ac9035d91b16b6d5 before 1cfd4174cd278eac259a0b6742bbf3f486a13603; from c1346a1216ab5cb04a265380ac9035d91b16b6d5 before b5ff29c96ea95d351ab14b9043a25844c26ed41d; from c1346a1216ab5cb04a265380ac9035d91b16b6d5 before 019cf7e0eebf6dc14b465cc984390b41c854da69; from c1346a1216ab5cb04a265380ac9035d91b16b6d5 before 20b76bdbd029343ea98944cb88bf016da2371739; from c1346a1216ab5cb04a265380ac9035d91b16b6d5 before fea77ec4a37614cbbe4fb26c621227182439f487; from c1346a1216ab5cb04a265380ac9035d91b16b6d5 before b01319947c69b0e3ea0fcd4b675eb892f9cad8a0; from 5.10.220 before 5.10.275; 5.11 (not affected: before 5.11; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.61 up to 6.18.*; from 7.3.2 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/dcb096258b059d83320c29ef012643c6f4ee00d8>
- <https://git.kernel.org/stable/c/d887960eda2512330d7fc2fa41339cc94bca3df0>
- <https://git.kernel.org/stable/c/1cfd4174cd278eac259a0b6742bbf3f486a13603>
- <https://git.kernel.org/stable/c/b5ff29c96ea95d351ab14b9043a25844c26ed41d>
- <https://git.kernel.org/stable/c/019cf7e0eebf6dc14b465cc984390b41c854da69>
- <https://git.kernel.org/stable/c/20b76bdbd029343ea98944cb88bf016da2371739>
- <https://git.kernel.org/stable/c/fea77ec4a37614cbbe4fb26c621227182439f487>
- <https://git.kernel.org/stable/c/b01319947c69b0e3ea0fcd4b675eb892f9cad8a0>

## Sources

- CVE List: [CVE-2026-99370](https://www.cve.org/CVERecord?id=CVE-2026-99370), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-99370](https://nvd.nist.gov/vuln/detail/CVE-2026-99370), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-99370 · Whole record: https://cve.day/CVE-2026-99370.json · Rebuilt by cve.day 2026-11-25T22:59:52.046Z
