xattr functions mark unwritten bytes as initialized when given a zero-length buffer
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.
Recorded fixes — rustix: 1.1.6. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 1.0.0 before 1.1.6Semantic versions | 1.1.6 |
Version evidence: OSV · RUSTSEC-2026-0486
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "1.0.0"
},
{
"fixed": "1.1.6"
}
],
"type": "SEMVER"
}
],
"versions": []
}