Skip to main content
Vulnerability Database/CVE-2026-98482

CVE-2026-98482: Linux Kernel NFC LLCP Use-After-Free Flaw

CVE-2026-98482 is a use-after-free vulnerability in the Linux kernel NFC LLCP component that allows reading uninitialized memory. This article covers technical details, affected versions, security impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98482 Overview

CVE-2026-98482 is a Linux kernel vulnerability in the Near Field Communication (NFC) Logical Link Control Protocol (LLCP) subsystem. The flaw resides in nfc_llcp_recv_hdlc(), which reads the sequence byte at skb->data[2] through nfc_llcp_ns() and nfc_llcp_nr() before performing a length check. The receive path only guarantees the two-byte LLCP header, so a truncated Information (I), Receive Ready (RR), or Receive Not Ready (RNR) Protocol Data Unit (PDU) causes the kernel to read one byte of uninitialized socket buffer tailroom. The upstream fix adds a pskb_may_pull() guard to ensure the sequence byte is present and linear before access.

Critical Impact

A local or proximate attacker able to deliver crafted NFC LLCP frames can trigger an uninitialized memory read in kernel space, affecting integrity of connection state and enabling potential information exposure through kernel tailroom contents.

Affected Products

  • Linux kernel builds with NFC LLCP support (CONFIG_NFC) enabled
  • Multiple stable kernel branches prior to the backported fix referenced in the eight commits listed under References
  • Distributions shipping affected kernels on devices with NFC hardware

Discovery Timeline

  • 2026-10-18 - CVE-2026-98482 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98482

Vulnerability Analysis

The vulnerability sits in the NFC LLCP receive handler for High-Level Data Link Control (HDLC) style PDUs. When __nfc_llcp_recv() admits a frame, it validates only the two-byte LLCP header using pskb_may_pull(). The nfc_llcp_recv_agf() aggregation handler further admits two-byte inner PDUs. Both paths funnel into nfc_llcp_recv_hdlc(), which immediately dereferences skb->data[2] through the inline helpers nfc_llcp_ns() and nfc_llcp_nr() to extract the send and receive sequence numbers N(S) and N(R).

When the PDU is exactly two bytes long, byte index 2 lies beyond the valid payload and inside uninitialized skb tailroom. The kernel then uses that byte to drive LLCP sequence tracking. Classified as Uninitialized Memory Use [CWE-908], the issue acts on stale kernel memory rather than attacker-controlled bytes, so the primary risk is state corruption and non-deterministic protocol behavior rather than direct code execution.

Root Cause

The root cause is a missing length check before field access. RR and RNR PDUs require LLCP_HEADER_SIZE + LLCP_SEQUENCE_SIZE bytes, and I PDUs are longer still. The receive path never enforced this minimum before reading skb->data[2], mirroring the earlier defect fixed by commit 95674f506c63 for the two-byte header itself.

Attack Vector

An attacker within NFC range of a vulnerable device, or a local attacker able to inject frames through an NFC interface, can transmit a truncated I, RR, or RNR LLCP PDU. The malformed frame survives header validation and reaches nfc_llcp_recv_hdlc(), where the uninitialized read occurs. No authentication is required beyond the ability to establish an LLCP link with the target.

No verified exploit code is available for this vulnerability. See the kernel commits referenced below for the authoritative patch diff and reviewer discussion.

Detection Methods for CVE-2026-98482

Indicators of Compromise

  • Unexpected NFC LLCP connection resets or malformed-frame log entries from the nfc subsystem
  • Kernel warnings or KMSAN reports flagging uninitialized value use within nfc_llcp_recv_hdlc, nfc_llcp_ns, or nfc_llcp_nr
  • Repeated short-length LLCP PDUs observed on NFC-capable endpoints with no legitimate pairing activity

Detection Strategies

  • Enable KMSAN or KASAN on test kernels to catch the uninitialized read during fuzzing of the NFC stack
  • Audit running kernel versions against the fixed commits listed in References to identify unpatched hosts
  • Monitor for unauthorized loading of the nfc and nfc_digital modules on systems that do not require NFC

Monitoring Recommendations

  • Collect kernel ring buffer messages from endpoints with NFC hardware and alert on nfc: llcp warnings
  • Track module load events for NFC drivers through endpoint telemetry
  • Correlate NFC activity with physical access context for mobile and point-of-sale devices

How to Mitigate CVE-2026-98482

Immediate Actions Required

  • Apply the stable kernel update containing the pskb_may_pull() guard in nfc_llcp_recv_hdlc() from the referenced commits
  • Inventory devices with NFC hardware and prioritize patching mobile endpoints, kiosks, and point-of-sale systems
  • Where NFC is not required, blacklist the nfc kernel module to remove the attack surface entirely

Patch Information

The fix is distributed across eight stable branch commits. Review the authoritative patches at Kernel Commit 06620555, Kernel Commit 18f60ee8, Kernel Commit 273f9d66, Kernel Commit 3afdbebe, Kernel Commit 51b6d733, Kernel Commit 744e61bd, Kernel Commit 810f204e, and Kernel Commit 9b4086eb. The patch guards the sequence byte read with pskb_may_pull(), dropping truncated PDUs without a Disconnected Mode (DM) reply.

Workarounds

  • Disable NFC radios in firmware or operating system settings on devices that do not use NFC services
  • Blacklist the nfc, nfc_digital, and vendor-specific NFC driver modules via /etc/modprobe.d/
  • Restrict physical access to NFC-enabled devices in sensitive environments until the patch is deployed
bash
# Prevent the NFC LLCP code path from loading on hosts that do not require NFC
cat <<'EOF' | sudo tee /etc/modprobe.d/disable-nfc.conf
blacklist nfc
blacklist nfc_digital
install nfc /bin/true
EOF

sudo update-initramfs -u
# Verify the module is not loaded after reboot
lsmod | grep -E '^nfc'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.