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-98581 Overview
CVE-2026-98581 is a Linux kernel vulnerability in the Near Field Communication (NFC) Logical Link Control Protocol (LLCP) subsystem. The flaw resides in nfc_llcp_recv_dm(), which fails to unlink a socket from the connecting_sockets list before transitioning it to LLCP_CLOSED state. This mismatch between socket state and list membership causes llcp_sock_release() to operate on the wrong list under the wrong lock, corrupting the hlist and desyncing sock_hold()/__sock_put() reference counting.
Critical Impact
An unprivileged local process holding LLCP sockets, in combination with Disconnected Mode (DM) frames supplied by a remote peer over an established LLCP link, can leak kernel socket objects without bound, leading to memory exhaustion and denial of service.
Affected Products
- Linux kernel versions containing the vulnerable nfc_llcp_recv_dm() handler in net/nfc/llcp_core.c
- Distributions shipping kernels with the NFC LLCP subsystem enabled (CONFIG_NFC=y and CONFIG_NFC_LLCP)
- Stable kernel branches prior to the fix commits referenced in the kernel.org advisory
Discovery Timeline
- 2026-10-18 - CVE-2026-98581 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98581
Vulnerability Analysis
The vulnerability is a race condition and list corruption flaw in the Linux kernel NFC LLCP implementation [CWE-416, CWE-667 class]. The function nfc_llcp_recv_dm() handles DM(NOBOUND) and DM(REJ) frames received for sockets that are still linked on local->connecting_sockets. It looks the socket up with nfc_llcp_connecting_sock_get(), sets sk->sk_state = LLCP_CLOSED, and returns without taking the socket lock and without unlinking the socket from the connecting_sockets list.
The downstream function llcp_sock_release() selects the list to unlink from by inspecting sk_state. A socket in LLCP_CONNECTING is unlinked from connecting_sockets; otherwise the socket is unlinked from the general sockets list. Because recv_dm leaves the socket physically on connecting_sockets but in the LLCP_CLOSED state, release() takes the wrong branch and invokes nfc_llcp_sock_unlink(&local->sockets, sk).
Root Cause
The root cause is improper synchronization between socket state transitions and list membership. sk_del_node_init() runs while holding sockets.lock, but it mutates an hlist that is actually serialized by connecting_sockets.lock. A concurrent connect() operation linking another socket onto connecting_sockets under the correct lock then mutates the same hlist unserialized, corrupting the list and desyncing the sk_add_node()/sk_del_node_init() and sock_hold()/__sock_put() pairings.
Attack Vector
An unprivileged local process opens LLCP sockets and initiates connections. A remote peer over an established LLCP link supplies DM(NOBOUND) or DM(REJ) frames to trigger the vulnerable path. The mis-decrement traverses the non-freeing __sock_put() path, so the kernel socket object is never released. Repeated exploitation leaks kernel sockets without bound, exhausting memory. This is the same class of bug fixed in the sibling handler nfc_llcp_recv_cc() by commit b493ea2765cc ("nfc: llcp: Fix use-after-free race in nfc_llcp_recv_cc()"); recv_dm did not receive the equivalent fix at that time.
See the Linux Kernel Commit b94cf097 and Linux Kernel Commit 320a2ff for the authoritative patch content.
Detection Methods for CVE-2026-98581
Indicators of Compromise
- Unexplained growth in kernel slab allocations for sock and NFC_SOCKET objects without corresponding user-space socket counts
- Kernel warnings or list_add/list_del corruption messages originating from net/nfc/llcp_core.c
- Processes repeatedly opening NFC LLCP sockets (AF_NFC with NFC_SOCKPROTO_LLCP) on systems with active NFC peer connections
Detection Strategies
- Audit kernel logs (dmesg, journalctl -k) for list debugging messages, soft lockups, or memory pressure events tied to the NFC subsystem
- Monitor /proc/slabinfo for abnormal sock_inode_cache or NFC-related allocator growth over time
- Correlate NFC radio activity with sudden kernel memory consumption on endpoints that expose NFC hardware
Monitoring Recommendations
- Track kmemleak reports on test and production systems running affected kernels
- Alert on kernel-level BUG: or WARNING: entries referencing nfc_llcp symbols
- Baseline per-host NFC socket counts and flag deviations consistent with socket leaks
How to Mitigate CVE-2026-98581
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in the kernel.org commits listed below to all affected stable branches
- If patching is not immediately feasible, disable the NFC subsystem on hosts that do not require it by blacklisting the nfc and nfc_llcp modules
- Restrict local access on multi-user systems that expose NFC hardware to limit the ability of unprivileged users to open LLCP sockets
Patch Information
The fix mirrors the resolution applied to nfc_llcp_recv_cc(): take lock_sock(), re-check that the socket is still hashed (the release() path may have won the race), and for the NOBOUND/REJ case unlink the socket from connecting_sockets before transitioning it to LLCP_CLOSED. The unlink drops the connecting_sockets membership reference via sk_del_node_init(), leaving the socket unhashed, so the later nfc_llcp_sock_unlink() call in llcp_sock_release() becomes a no-op and no double put occurs.
Patch references:
- Linux Kernel Commit 320a2ff
- Linux Kernel Commit 7fb2c0ee
- Linux Kernel Commit 812731dd
- Linux Kernel Commit b94cf097
- Linux Kernel Commit bf1460ac
- Linux Kernel Commit c1e9ed52
- Linux Kernel Commit dba1d9c7
- Linux Kernel Commit dd2d24ad
Workarounds
- Blacklist the NFC kernel modules on systems that do not use NFC functionality to eliminate the attack surface entirely
- Physically disable or remove NFC hardware on devices where the capability is not required
- Limit untrusted NFC peer pairing by keeping NFC disabled unless actively in use
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

