Android security tags, read closely by Lightrion

CVE-2026-58879 AI-generated analysis

platform/hardware/interfaces, CAS HAL default implementation (hal_cas_default): DescramblerImpl in cas/1.0, cas/1.1, cas/1.2 and cas/aidl

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 (3 corrections). Verify against the commit before relying on it.

Adds an early range check in all four default CAS HAL DescramblerImpl::descramble implementations (HIDL 1.0/1.1/1.2 and AIDL). It rejects srcOffset, dstOffset and srcBuffer.offset values that do not fit in int32 before they reach the DescramblerPlugin ABI.

Root cause

DescramblerImpl::descramble receives srcOffset, dstOffset and srcBuffer.offset as 64-bit values (uint64_t in HIDL 1.0/1.1/1.2, int64_t in AIDL). The existing validation (validateRangeForSize / isInRange and the heapBase size check) works on 64-bit values. Per the commit message, the offsets are then handed to the DescramblerPlugin ABI as int32. A value that exceeds INT32_MAX (or is negative in the AIDL variant) is truncated at that boundary, so the plugin can operate on an offset other than the one that was validated. The commit describes the result as an out-of-bounds write/read in hal_cas_default.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings