NFSD: copy SETXATTR data from all XDR buffer segments
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fea77ec4a37614cbbe4fb26c621227182439f487, Kernel 5.11, Kernel 019cf7e0eebf6dc14b465cc984390b41c854da69 and 5 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=c1346a1216ab5cb04a265380ac9035d91b16b6d5 <fea77ec4a37614cbbe4fb26c621227182439f487, >=5.10.220 <5.11, >=c1346a1216ab5cb04a265380ac9035d91b16b6d5 <019cf7e0eebf6dc14b465cc984390b41c854da69, >=c1346a1216ab5cb04a265380ac9035d91b16b6d5 <20b76bdbd029343ea98944cb88bf016da2371739, >=c1346a1216ab5cb04a265380ac9035d91b16b6d5 <b01319947c69b0e3ea0fcd4b675eb892f9cad8a0, =5.11, =bbb0a710a2c7a0b171e7a0d6fbdd6d5a2acd003b | fea77ec4a37614cbbe4fb26c621227182439f487, 5.11, 019cf7e0eebf6dc14b465cc984390b41c854da69, 20b76bdbd029343ea98944cb88bf016da2371739, b01319947c69b0e3ea0fcd4b675eb892f9cad8a0 |
| linux-kernel: Kernel | >=5.11.0 <6.12.117, >=6.13.0 <6.18.61, >=6.19.0 <7.3.2, >=5.10.220 <5.11 | 6.12.117, 6.18.61, 7.3.2, 5.11 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket