KernelScan.io

HIGH Introduced in 3.3

nfc LLCP Header OOB

CVE-2026-80798

CVSS 8.1 / 10.0 KernelScan AI

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

01

In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: reject PDUs shorter than the LLCP header Every LLCP PDU begins with a two-byte header (DSAP/SSAP + PTYPE), but the receive path never checked that a frame is at least LLCP_HEADER_SIZE bytes before parsing it. nfc_llcp_rx_skb() reads the header via nfc_llcp_ptype()/nfc_llcp_dsap()/ nfc_llcp_ssap(), which dereference pdu->data[0] and pdu->data[1], and a CONNECT or CC PDU then computes tlv_array_len = skb->len - LLCP_HEADER_SIZE; as a size_t and hands it to the TLV walk. When the frame is shorter than the header the subtraction wraps to a huge value and the walk runs far past the buffer, an out-of-bounds read. A nearby NFC device can reach this without authentication; LLCP link activation happens automatically after NFC-DEP. Guard the common receive choke point __nfc_llcp_recv(), shared by both the target (nfc_llcp_data_received()) and initiator (nfc_llcp_recv()) paths, so a short skb is dropped before the rx_work worker parses it. Use pskb_may_pull() rather than a skb->len test so the two header bytes are guaranteed to sit in the skb linear area even for a non-linear skb, matching how the sibling NCI and HCI receive paths validate their headers. Reproduced with a KFENCE out-of-bounds read via /dev/virtual_nci on linux-next. Found by 0sec automated security-research tooling (https://0sec.ai).

02

Engine v0.6.0

Risk summary

A nearby NFC device can send an LLCP PDU shorter than the required two-byte header, causing an unsigned subtraction to wrap and an unbounded out-of-bounds read of kernel memory. No authentication is needed — LLCP activation is automatic after NFC-DEP. The impact includes kernel memory disclosure and potential kernel crash if the read reaches unmapped pages.

Affectednet/nfc/llcp_core.c (NFC LLCP)

Vulnerability analysis

The NFC LLCP receive path failed to ensure incoming frames were large enough to contain the protocol header. When a too-short frame arrives, the code subtracts the header size from the frame length as an unsigned value, causing the result to wrap to a huge number. The subsequent parsing loop then reads far beyond the packet buffer, leaking kernel memory or crashing the system if the read reaches unmapped pages. The fix adds a length check at the shared receive entry point, discarding undersized frames before any parsing begins and ensuring the header bytes are present in the buffer's directly accessible area. Any nearby NFC device can trigger this without authentication or user interaction, because the protocol link setup happens automatically.

03

BranchIntroducedFixed inPatch commit
6.13.36.1.185a7b9b449f5a5
6.63.36.6.1543793d768b40f
7.13.37.1.11ae5f20f5842f
mainline3.37.3-rc195674f506c63
7.23.37.2.1d3d90243393c
5.103.35.10.267e6ec76a68dce
6.123.36.12.106eab47618e282
6.183.36.18.47e969e9841005
5.153.35.15.218f36cffea24bf
cip/5.103.35.10.268-cip77e6ec76a68dce
cip/5.10-rt3.35.10.268-cip77-rt34e6ec76a68dce
cip/6.13.36.1.187-cip60a7b9b449f5a5
cip/6.123.36.12.108-cip31eab47618e282