{"id":"CVE-2026-89674","aliases":["CVE-2026-89674"],"related":[],"kind":"vulnerability","state":"published","title":"nfsd: fix XDR length calculation in nfsd4_ff_encode_layoutget","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: fix XDR length calculation in nfsd4_ff_encode_layoutget\n\nThe XDR buffer size calculation in nfsd4_ff_encode_layoutget() has\nmultiple errors that can result in either an out-of-bounds write or\nleaking uninitialized kernel memory to the client:\n\n - fh_len doesn't account for XDR padding on the file handle data\n - uid and gid lengths use \"8 + len\" but xdr_encode_opaque() actually\n   writes \"4 + xdr_align_size(len)\" bytes\n - ds_len omits the flags and stats_collect_hint fields (8 bytes),\n   while len's header constant overestimates by 8 bytes -- these\n   partially cancel but leave a net mismatch\n\nThe worst case occurs with short strings (e.g. uid=0, gid=0 with an\nodd-sized file handle), where the function writes up to 5 bytes past\nthe reserved XDR buffer. Conversely, when string lengths happen to be\n4-byte aligned, the reservation is too large and stale buffer content\nis sent to the client.\n\nFix this by breaking out every encoded field explicitly in the ds_len\ncalculation, using xdr_align_size() for all variable-length opaque\nfields, and correcting the header constants.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfsd: fix XDR length calculation in nfsd4_ff_encode_layoutget\n\nThe XDR buffer size calculation in nfsd4_ff_encode_layoutget() has\nmultiple errors that can result in either an out-of-bounds write or\nleaking uninitialized kernel memory to the client:\n\n - fh_len doesn't account for XDR padding on the file handle data\n - uid and gid lengths use \"8 + len\" but xdr_encode_opaque() actually\n   writes \"4 + xdr_align_size(len)\" bytes\n - ds_len omits the flags and stats_collect_hint fields (8 bytes),\n   while len's header constant overestimates by 8 bytes -- these\n   partially cancel but leave a net mismatch\n\nThe worst case occurs with short strings (e.g. uid=0, gid=0 with an\nodd-sized file handle), where the function writes up to 5 bytes past\nthe reserved XDR buffer. Conversely, when string lengths happen to be\n4-byte aligned, the reservation is too large and stale buffer content\nis sent to the client.\n\nFix this by breaking out every encoded field explicitly in the ds_len\ncalculation, using xdr_align_size() for all variable-length opaque\nfields, and correcting the header constants.","source":"cvelist"}],"published":"2026-09-11T19:45:58.883Z","modified":"2026-10-19T09:18:05.607Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"3a7fd224df0fbb42167eb1b77be45d72fe0b1098","status":"affected"},{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"29e4478e2ed5a227e8f0c33cacb91bf227cedd47","status":"affected"},{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"65a72b721943618eeb3a41c8b36e915591f3f83f","status":"affected"},{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"bee826c00ac900473f91306f1f3e5a5a81fd4a74","status":"affected"},{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"e7d9d23ecd9172f05b09bb678ff22db8e361c428","status":"affected"},{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"0380129b1373c437eb35401a174671c8888f4b80","status":"affected"},{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"c81cef6a805dec266c10fc4f83c93d6fcf1a2b43","status":"affected"},{"type":"git","introduced":"9b9960a0ca4773e21c4b153ed355583946346b25","fixed":"f9868174af49d207fbaf0c5e055d088a983684af","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.109","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3a7fd224df0fbb42167eb1b77be45d72fe0b1098","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/29e4478e2ed5a227e8f0c33cacb91bf227cedd47","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/65a72b721943618eeb3a41c8b36e915591f3f83f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bee826c00ac900473f91306f1f3e5a5a81fd4a74","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7d9d23ecd9172f05b09bb678ff22db8e361c428","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0380129b1373c437eb35401a174671c8888f4b80","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c81cef6a805dec266c10fc4f83c93d6fcf1a2b43","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9868174af49d207fbaf0c5e055d088a983684af","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89674","url":"https://www.cve.org/CVERecord?id=CVE-2026-89674","licence":"CVE Terms of Use","modified":"2026-10-19T08:50:47.609Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89674","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89674","licence":"Public domain","modified":"2026-10-19T09:18:05.607Z"}],"updatedAt":"2026-11-25T22:59:38.109Z","epss":{"score":0.00514,"percentile":0.45296,"date":"2026-12-01T12:00:22.000Z"}}