Android security tags, read closely by Lightrion

CVE-2026-55292 AI-generated analysis

platform/packages/modules/Nfc, libnfc-nci reader/writer (RW) Chinese ID card (CI) tag handler

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 response-length validation in rw_ci_data_cback (libnfc-nci rw_ci.cc) for the RW_CI_STATE_ATTRIB and RW_CI_STATE_UID states so that short or zero-length tag responses are rejected with NFC_STATUS_BAD_RESP instead of being parsed past the end of the buffer.

Root cause

rw_ci_data_cback in libnfc-nci/src/nfc/tags/rw_ci.cc trusted the length of the received R-APDU (p_r_apdu->len). In RW_CI_STATE_ATTRIB it copied sizeof(p_ci->attrib_res) bytes from the payload pointer p without checking that the buffer held that many bytes. In RW_CI_STATE_UID it did p_r_apdu->len -= 1 and then computed p_sw = payload + (p_r_apdu->len - T4T_RSP_STATUS_WORDS_SIZE); with a zero or very short payload the length underflows (wraps), so p_sw and subsequent parsing point outside the GKI buffer, producing an out-of-bounds read.

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings