Android security tags, read closely by Lightrion

CVE-2026-58994 AI-generated analysis

platform/packages/modules/Nfc, NfcNci NfcService.TagService (INfcTag binder)

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

Adds a server-side calling-UID check (isTagAccessAllowed) to the INfcTag binder methods of NfcService.TagService, tracking the UID of the reader-mode app a tag was dispatched to in a new mDispatchedUid field and rejecting tag operations from any other UID or when no tag is active.

Root cause

NfcService.TagService (INfcTag.Stub) methods connect, reconnect, getTechList, isNdef, transceive, ndefRead, ndefWrite, ndefMakeReadOnly, formatNdef and rediscover only enforced NfcPermissions.enforceUserPermissions (android.permission.NFC) plus NFC/reader-option state checks (isPresent had only the state checks) and then looked up the TagEndpoint by the caller-supplied nativeHandle via findObject. Nothing tied the active tag session to the application the tag had been dispatched to, and nothing required that a tag be currently active (mCookieUpToDate was not consulted). Per the commit message, background apps holding android.permission.NFC could make raw INfcTag Binder calls against active NFC tag sessions.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings