RUSTSEC-2026-0486: xattr functions mark unwritten bytes as initialized when given a zero-length buffer
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 55/100
Piste de recherche
The issue identifies rustix 1.1.4 and the affected extended-attribute functions, but does not name files or tests in this repository. Start by checking the dependency declaration and lockfile for the rustix version, then review how the gateway uses the affected functions and the advisory page. Done means confirming whether this project is affected and, if so, updating to a fixed version with relevant coverage.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Rust
- Étoiles
- 0
- Forks
- 2
- Merge moyen
- 14 j 2 h
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de stackabletech/postgresql-trino-gateway
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 62/100
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 60/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 2/5 Moins d'une heure Accessibilité débutants 50/100
Toutes les issues de stackabletech/postgresql-trino-gateway
Issues similaires
-
[Bug]: opencode_go chat route drops reasoning_effort (even 'none'), while the same endpoint honors it via custom_llm_provider=openaiPeut-être pris @arvindkumar-ship-it l’a pris aujourd’hui. Ouvertellm translation
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
BerriAI/litellm#51871 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
comp-formats
Difficulté 2/5 Une demi-journée Accessibilité débutants 64/100
ClickHouse/ClickHouse#131694 ·
Les mainteneurs répondent en général sous 1 jour
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
C-Bug S-Needs-Triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
bevyengine/bevy#26558 ·
Les mainteneurs répondent en général sous 2 jours