RUSTSEC-2026-0486: xattr functions mark unwritten bytes as initialized when given a zero-length buffer
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
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.
由索引模型根據 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
- 星號
- 18
- 分支
- 5
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 60
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
hyperlight-dev/hyperlight-js 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
hyperlight-dev/hyperlight-js#459 ·
維護者通常 1 天內回覆
-
lifecycle/needs-review
難度 2/5 1-3 小時 新手友好度 68/100
hyperlight-dev/hyperlight-js#81 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 45/100
hyperlight-dev/hyperlight-js#460 ·
維護者通常 1 天內回覆
-
RUSTSEC-2026-0221: `event-listener` allows `!Send` tags to cross thread boundaries via `StackSlot`未關閉
難度 4/5 3-5 天 新手友好度 25/100
hyperlight-dev/hyperlight-js#446 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 53/100
hyperlight-dev/hyperlight-js#445 ·
維護者通常 1 天內回覆
查看 hyperlight-dev/hyperlight-js 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 65/100
pop-os/cosmic-applets#1641 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
pop-os/cosmic-store#650 ·
-
CI/CD ignore-for-release
難度 2/5 1-3 小時 新手友好度 70/100
eclipse-ankaios/ankaios#844 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
pop-os/cosmic-settings#2309 · 1 則留言 ·
維護者通常 1 天內回覆