| 标题 | sonos tract main @ 2b68fb8 (0.21.x) Denial of Service |
|---|
| 描述 | Several InferenceRulesOp::rules() implementations in sonos/tract index inputs[k] or outputs[k] before validating the operator's operand count via check_input_arity or check_output_arity. Loading a crafted .onnx model file that gives an operator too few inputs (or zero outputs) reaches an out-of-bounds slice index and panics during model construction and shape inference ("index out of bounds"), terminating the process in release builds (denial of service).
Affected sites confirmed live on main @ 2b68fb8 by rebuild-and-replay include onnx/src/ops/math/gemm.rs:41 (Gemm::rules), hir/src/ops/array/concat.rs:37 (Concat::rules), onnx/src/ops/array/squeeze.rs:33 (Squeeze::rules), hir/src/ops/array/reshape.rs:19 (Reshape::rules), and onnx/src/ops/rec/common.rs:325. This defect in InferenceRulesOp::rules() operand arity indexing (reported at https://github.com/sonos/tract/issues/2391) is distinct from CVE-2026-75093 / VDB-391335 (sonos/tract#2390, which is in Tensor::from_raw_dt_align tensor initializer byte-slice length validation). Fix: call s.check_input_arity and s.check_output_arity before indexing inputs[] or outputs[]. |
|---|
| 来源 | ⚠️ https://github.com/sonos/tract/issues/2391 |
|---|
| 用户 | m00dy (UID 97162) |
|---|
| 提交 | 2026-10-21 23時20分 (1 月前) |
|---|
| 管理 | 2026-11-20 08時57分 (29 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 441217 [sonos tract 直到 0.23.4 Operand Arity Indexing gemm.rs InferenceRulesOp::rules inputs/outputs 信息公开] |
|---|
| 积分 | 20 |
|---|