RUSTSEC-2026-0486: xattr functions mark unwritten bytes as initialized when given a zero-length buffer
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 18
- Fork
- 5
- Merge medio
- 1g 11h
- PR unite (30g)
- 60
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di hyperlight-dev/hyperlight-js
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
hyperlight-dev/hyperlight-js#459 ·
I maintainer di solito rispondono entro 1 giorno
-
lifecycle/needs-review
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
hyperlight-dev/hyperlight-js#81 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
hyperlight-dev/hyperlight-js#460 ·
I maintainer di solito rispondono entro 1 giorno
-
RUSTSEC-2026-0221: `event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
hyperlight-dev/hyperlight-js#446 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 53/100
hyperlight-dev/hyperlight-js#445 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di hyperlight-dev/hyperlight-js
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
pop-os/cosmic-applets#1641 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pop-os/cosmic-store#650 ·
-
CI/CD ignore-for-release
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
eclipse-ankaios/ankaios#844 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pop-os/cosmic-settings#2309 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno