RUSTSEC-2026-0486: xattr functions mark unwritten bytes as initialized when given a zero-length buffer
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
The report identifies unsound extended-attribute functions in rustix and says the issue is fixed from version 1.1.6. Start by checking how this repository depends on rustix and whether it uses the listed xattr functions; the payload names no repository files or tests. Done means the affected dependency or usage is addressed and the zero-length buffer case no longer permits unwritten bytes to be treated as initialized.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
xattr functions mark unwritten bytes as initialized when given a zero-length buffer
| Details | |
|---|---|
| Status | unsound |
| Package | rustix |
| Version | 1.1.4 |
| URL | https://github.com/bytecodealliance/rustix/commit/8e6aaa6713d2bb64b1fdd8c472e3a32a10a76d70 |
| Date | 2026-10-27 |
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.
See advisory page for additional details.
- Linguagem predominante
- Rust
- Estrelas
- 18
- Forks
- 5
- Merge médio
- 1d 11h
- PRs com merge (30d)
- 60
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de hyperlight-dev/hyperlight-js
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
hyperlight-dev/hyperlight-js#459 ·
Mantenedores costumam responder em até 1 dia
-
lifecycle/needs-review
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
hyperlight-dev/hyperlight-js#81 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
hyperlight-dev/hyperlight-js#460 ·
Mantenedores costumam responder em até 1 dia
-
RUSTSEC-2026-0221: `event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
hyperlight-dev/hyperlight-js#446 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 53/100
hyperlight-dev/hyperlight-js#445 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de hyperlight-dev/hyperlight-js
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
pop-os/cosmic-applets#1641 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
pop-os/cosmic-store#650 ·
-
CI/CD ignore-for-release
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
eclipse-ankaios/ankaios#844 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
pop-os/cosmic-settings#2309 · 1 comentário ·
Mantenedores costumam responder em até 1 dia