{"id":"CVE-2026-89674","summary":"nfsd: fix XDR length calculation in nfsd4_ff_encode_layoutget","details":"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.","modified":"2026-11-15T17:28:08.419980857Z","published":"2026-09-11T19:45:58.883Z","related":["SUSE-SU-2026:24179-1","SUSE-SU-2026:24181-1","SUSE-SU-2026:24182-1","SUSE-SU-2026:24184-1","SUSE-SU-2026:24197-1","SUSE-SU-2026:24235-1","SUSE-SU-2026:24315-1","SUSE-SU-2026:24316-1","SUSE-SU-2026:24479-1","SUSE-SU-2026:24480-1","SUSE-SU-2026:24481-1","SUSE-SU-2026:24482-1","SUSE-SU-2026:24483-1","SUSE-SU-2026:24484-1","SUSE-SU-2026:24485-1","SUSE-SU-2026:24486-1","SUSE-SU-2026:24487-1","SUSE-SU-2026:24488-1","SUSE-SU-2026:24489-1","SUSE-SU-2026:24490-1","SUSE-SU-2026:24491-1","SUSE-SU-2026:24492-1","SUSE-SU-2026:24495-1","SUSE-SU-2026:24496-1","SUSE-SU-2026:24497-1","SUSE-SU-2026:24498-1","SUSE-SU-2026:24499-1","SUSE-SU-2026:24500-1","SUSE-SU-2026:24501-1","SUSE-SU-2026:24502-1","SUSE-SU-2026:24503-1","SUSE-SU-2026:24504-1","SUSE-SU-2026:24505-1","SUSE-SU-2026:24506-1","SUSE-SU-2026:24507-1","SUSE-SU-2026:24508-1","SUSE-SU-2026:24509-1","SUSE-SU-2026:24510-1","SUSE-SU-2026:24511-1","SUSE-SU-2026:24512-1","SUSE-SU-2026:24521-1","SUSE-SU-2026:24522-1","SUSE-SU-2026:24523-1","SUSE-SU-2026:24524-1","SUSE-SU-2026:24525-1","SUSE-SU-2026:24526-1","SUSE-SU-2026:24527-1","SUSE-SU-2026:24528-1","SUSE-SU-2026:24529-1","SUSE-SU-2026:24530-1","SUSE-SU-2026:24531-1","SUSE-SU-2026:24532-1","SUSE-SU-2026:24533-1","SUSE-SU-2026:24534-1","SUSE-SU-2026:24535-1","SUSE-SU-2026:24536-1","SUSE-SU-2026:24537-1","SUSE-SU-2026:24538-1","SUSE-SU-2026:24560-1","SUSE-SU-2026:24561-1","SUSE-SU-2026:24562-1","SUSE-SU-2026:24563-1","SUSE-SU-2026:24564-1","SUSE-SU-2026:24565-1","SUSE-SU-2026:24566-1","SUSE-SU-2026:24567-1","SUSE-SU-2026:24568-1","SUSE-SU-2026:24571-1","SUSE-SU-2026:24572-1","SUSE-SU-2026:24573-1","SUSE-SU-2026:24574-1","SUSE-SU-2026:24575-1","SUSE-SU-2026:24576-1","SUSE-SU-2026:24577-1","SUSE-SU-2026:24578-1","SUSE-SU-2026:24581-1","SUSE-SU-2026:24582-1","SUSE-SU-2026:24583-1","SUSE-SU-2026:24584-1","SUSE-SU-2026:24585-1","SUSE-SU-2026:24586-1","SUSE-SU-2026:24587-1","SUSE-SU-2026:24588-1","SUSE-SU-2026:24589-1","SUSE-SU-2026:24590-1","SUSE-SU-2026:24591-1","SUSE-SU-2026:24592-1","SUSE-SU-2026:24593-1","SUSE-SU-2026:24594-1","SUSE-SU-2026:24595-1","SUSE-SU-2026:24620-1","SUSE-SU-2026:24621-1","SUSE-SU-2026:24623-1","SUSE-SU-2026:24624-1","SUSE-SU-2026:24626-1","SUSE-SU-2026:24627-1","SUSE-SU-2026:24628-1","SUSE-SU-2026:24629-1","SUSE-SU-2026:24630-1","SUSE-SU-2026:24631-1","SUSE-SU-2026:24632-1","SUSE-SU-2026:24633-1","SUSE-SU-2026:24634-1","SUSE-SU-2026:24635-1","SUSE-SU-2026:24636-1","SUSE-SU-2026:24637-1","SUSE-SU-2026:24638-1","SUSE-SU-2026:24639-1","SUSE-SU-2026:24663-1","SUSE-SU-2026:24664-1","SUSE-SU-2026:24666-1","SUSE-SU-2026:24667-1","SUSE-SU-2026:24668-1","SUSE-SU-2026:24669-1","SUSE-SU-2026:24670-1","SUSE-SU-2026:24671-1","SUSE-SU-2026:24672-1","SUSE-SU-2026:24673-1","SUSE-SU-2026:24674-1","SUSE-SU-2026:24675-1","SUSE-SU-2026:24676-1","SUSE-SU-2026:24677-1","SUSE-SU-2026:24678-1","SUSE-SU-2026:24679-1","SUSE-SU-2026:24680-1","SUSE-SU-2026:24681-1","SUSE-SU-2026:24691-1","SUSE-SU-2026:4640-1","SUSE-SU-2026:4660-1","SUSE-SU-2026:4665-1","SUSE-SU-2026:4666-1","SUSE-SU-2026:4667-1","SUSE-SU-2026:4668-1","SUSE-SU-2026:4687-1","SUSE-SU-2026:4706-1","SUSE-SU-2026:4960-1","SUSE-SU-2026:4969-1","SUSE-SU-2026:4972-1","SUSE-SU-2026:4977-1","SUSE-SU-2026:4978-1","SUSE-SU-2026:4979-1","SUSE-SU-2026:4983-1","SUSE-SU-2026:4984-1","SUSE-SU-2026:5012-1","SUSE-SU-2026:5016-1","SUSE-SU-2026:5019-1","SUSE-SU-2026:5020-1","SUSE-SU-2026:5034-1","SUSE-SU-2026:5048-1","SUSE-SU-2026:5052-1","SUSE-SU-2026:5053-1","SUSE-SU-2026:5055-1","SUSE-SU-2026:5058-1","SUSE-SU-2026:5059-1","SUSE-SU-2026:5084-1","SUSE-SU-2026:5085-1","SUSE-SU-2026:5086-1","SUSE-SU-2026:5088-1","openSUSE-SU-2026:11805-1","openSUSE-SU-2026:22091-1","openSUSE-SU-2026:22313-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89674.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0380129b1373c437eb35401a174671c8888f4b80"},{"type":"WEB","url":"https://git.kernel.org/stable/c/29e4478e2ed5a227e8f0c33cacb91bf227cedd47"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a7fd224df0fbb42167eb1b77be45d72fe0b1098"},{"type":"WEB","url":"https://git.kernel.org/stable/c/65a72b721943618eeb3a41c8b36e915591f3f83f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bee826c00ac900473f91306f1f3e5a5a81fd4a74"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c81cef6a805dec266c10fc4f83c93d6fcf1a2b43"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e7d9d23ecd9172f05b09bb678ff22db8e361c428"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9868174af49d207fbaf0c5e055d088a983684af"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89674.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89674"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9b9960a0ca4773e21c4b153ed355583946346b25"},{"fixed":"3a7fd224df0fbb42167eb1b77be45d72fe0b1098"},{"fixed":"29e4478e2ed5a227e8f0c33cacb91bf227cedd47"},{"fixed":"65a72b721943618eeb3a41c8b36e915591f3f83f"},{"fixed":"bee826c00ac900473f91306f1f3e5a5a81fd4a74"},{"fixed":"e7d9d23ecd9172f05b09bb678ff22db8e361c428"},{"fixed":"0380129b1373c437eb35401a174671c8888f4b80"},{"fixed":"c81cef6a805dec266c10fc4f83c93d6fcf1a2b43"},{"fixed":"f9868174af49d207fbaf0c5e055d088a983684af"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89674.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.8.0"},{"fixed":"5.10.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.221"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.157"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.109"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.50"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89674.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}