Android security tags, read closely by Lightrion

CVE-2026-55261 AI-generated analysis

platform/packages/modules/Nfc, libnfc-nci NFA NDEF-NFCEE (T4T) read path (libnfc-nci/src/nfa/ndefnfcee/t4t/nfa_nfcee_act.cc)

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.

Clamps the per-packet memcpy in nfa_t4tnfcee_store_rx_buf to the remaining capacity of nfa_t4tnfcee_cb.p_dataBuf instead of relying on an all-or-nothing length check, and stops nfa_t4tnfcee_handle_file_operations (WAIT_READ_FILE) from overwriting a NFA_STATUS_FAILED set by the store routine with the raw frame status.

Root cause

nfa_t4tnfcee_store_rx_buf copies each received read-file APDU chunk (p_data->len bytes) into the heap buffer nfa_t4tnfcee_cb.p_dataBuf at nfa_t4tnfcee_cb.rd_offset. In the pre-fix code shown in the diff, an oversize chunk (rd_offset + len > p_dataBuf_len) was dropped entirely and nfa_t4tnfcee_cb.status was set to NFA_STATUS_FAILED. But in nfa_t4tnfcee_handle_file_operations, state WAIT_READ_FILE, once RW_T4tIsReadComplete() returned true, the code unconditionally wrote nfa_t4tnfcee_cb.status = p_rwData->raw_frame.status, overwriting the failure before nfa_t4tnfcee_notify_rx_evt() was called. The commit message calls this a heap buffer overflow in nfa_t4tnfcee_store_rx_buf. It says the drop causes truncated/incomplete NDEF data and the status overwrite masks the failure. The material does not show a memcpy without a bounds check at the pre-fix state of this branch (the pre-image already carries the 508390497 check).

How the fix works

Completeness

Behavior changes

Per major

Unknowns

Back to November 2026 · Findings