{"id":"DHI-oq5a-ldh5-wqc5-gtce","aliases":[],"title":"The extended-attribute functions in `rustix::fs` (`getxattr`, `lgetxattr`, `fgetxattr`, `listxattr`, `llistxattr` and…","originalDescription":"The extended-attribute functions in `rustix::fs` (`getxattr`, `lgetxattr`, `fgetxattr`, `listxattr`, `llistxattr` and `flistxattr`) write into a `Buffer` and then mark as many bytes initialized as the system call reported. When the buffer has zero length, the operating system treats the call as a size query: it writes nothing and returns the size of the attribute value or of the name list. rustix still marked that many bytes as initialized. Passing a `Vec` whose length equals its capacity through `spare_capacity` gives such a zero-length buffer, and rustix then set the vector's length past its capacity over memory that was never written. This is undefined behavior reachable from safe code. With an empty `&mut [MaybeUninit<u8>]` the call panics instead. From 1.1.6 these functions return an empty result for a zero-length buffer, and new `getxattr_query`, `lgetxattr_query`, `fgetxattr_query`, `listxattr_query`, `llistxattr_query` and `flistxattr_query` functions return the size. The 0.38 series did not have the `Buffer` API and is not affected.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"Docker Hardened Images:Debian:13","name":"uv","range":">=0, <0.13.7-3","fixed":"0.13.7-3"}],"references":[{"url":"https://scout.docker.com/v/DHI-oq5a-ldh5-wqc5-gtce","type":"advisory"},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0486","type":"advisory"},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0486.html","type":"advisory"},{"url":"https://github.com/bytecodealliance/rustix/commit/8e6aaa6713d2bb64b1fdd8c472e3a32a10a76d70","type":"fix"}],"sources":[{"name":"osv","at":"2026-11-28T23:49:10.966Z","url":"https://osv.dev/vulnerability/DHI-oq5a-ldh5-wqc5-gtce","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T21:47:35.729Z"}],"firstSeenAt":"2026-11-19T21:47:35.729Z","publishedAt":"2026-11-19T21:10:41.000Z","modifiedAt":"2026-11-28T22:15:07.477Z"}