Android security tags, read closely by Lightrion

CVE-2026-58988 AI-generated analysis

platform/packages/modules/NeuralNetworks, shim_and_sl (NNAPI shim/support-library converter); platform/hardware/interfaces, neuralnetworks AIDL VTS (tests only)

AI-generated: written from the bulletin and the fixing diffs by claude-fable-5-1, then checked against the code by claude-opus-5-5 (4 corrections). Verify against the commit before relying on it.

Adds explicit bounds checks in isValid() of the NNAPI shim converter (shim_and_sl/ShimConverter.cpp), so that operation input/output operand indexes and subgraph input/output indexes that are >= the operand count are rejected instead of being used to index vectors. It also adds new VTS tests that require AIDL NeuralNetworks devices to reject models with out-of-bounds model input/output indexes.

Root cause

In shim_and_sl/ShimConverter.cpp, isValid(const Subgraph&) builds a std::vector<bool> operandValueKnown sized to subgraph.operands.size(). It then indexes that vector with k = operation.inputs[j] and k = operation.outputs[j] from the model, without checking that k < operandValueKnown.size(). Likewise, the input/output lifetime loop indexes subgraph.operands[index] with each value of subgraph.inputIndexes and subgraph.outputIndexes, without checking that index < subgraph.operands.size(). A model carrying an operand index equal to or larger than the operand count therefore caused out-of-bounds vector reads during validation.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings