Android security tags, read closely by Lightrion

CVE-2026-58875 AI-generated analysis

platform/frameworks/base, DevicePolicy (device policy engine Bundle policy values and XML serializer)

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 a BundlePolicyTypeVerifier that rejects Bundle policy values containing types other than Boolean, Integer, String, String[], Bundle or Parcelable[] of Bundles, enforced in the BundlePolicyValue constructor. It also makes BundlePolicySerializer.writeBundle throw IllegalArgumentException instead of casting unknown values to String[] without a check.

Root cause

BundlePolicyValue accepted any Bundle without checking the types of its entries. In services/devicepolicy/.../BundlePolicySerializer.java, writeBundle() handled specific value types in earlier branches. The diff shows a Parcelable[] branch that writes each element as a Bundle; the other branches are not shown. Its final else branch assumed anything left over was a String[] and cast it unchecked with `(String[]) value`. A Bundle holding any other type could therefore reach the serializer and cause a runtime exception while the policy was being written to XML. The tests use Long, Double, a Long nested in a child Bundle, and an Intent inside a Parcelable[]. The bulletin classifies the issue as a DoS.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings