| Titolo | sonos tract main @ 2b68fb8 (0.21.x) Denial of Service |
|---|
| Descrizione | 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[]. |
|---|
| Fonte | ⚠️ https://github.com/sonos/tract/issues/2391 |
|---|
| Utente | m00dy (UID 97162) |
|---|
| Sottomissione | 21/10/2026 23:20 (30 giorni fa) |
|---|
| Moderazione | 20/11/2026 08:57 (29 days later) |
|---|
| Stato | Accettato |
|---|
| Voce VulDB | 441217 [sonos tract fino a 0.23.4 Operand Arity Indexing gemm.rs InferenceRulesOp::rules inputs/outputs rivelazione di informazioni] |
|---|
| Punti | 20 |
|---|