RUSTSEC-2026-0486: xattr functions mark unwritten bytes as initialized when given a zero-length buffer
まだ誰も着手していません。
評価
調査の方向性
まず、プロジェクトがどの rustix バージョンを解決しているかを確認します。Cargo.toml と Cargo.lock で rustix を探し、cargo tree -i rustix を実行してください。アドバイザリでは 1.1.6 が修正版とされているため、依存関係の更新(例: cargo update -p rustix)が必要になる可能性が高く、場合によってはマニフェストの編集も必要です。cargo build と cargo test を実行し、その後 lockfile で rustix が 1.1.6 以降になっていることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/stackable-odbc-sqlite のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
stackabletech/stackable-odbc-sqlite の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
storytold/photocraft#14822 ·
メンテナーはふだん 1 日以内に返信
-
bug css
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
dginev/latexml-oxide#853 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
-
[Bug] export_build_environment admits its output directory only after the export ran in the build computer対応中かも @viniciusdsandrade が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信