CVE-2026-64010: nfc: llcp: Fix use-after-free race in nfc_llcp_recv_cc()
In the Linux kernel, the following vulnerability has been resolved:
nfc: llcp: Fix use-after-free race in nfcllcprecvcc()
A race condition exists in the NFC LLCP connection state machine where the connection acceptance packet (CC) can be processed concurrently with socket release. This can lead to a use-after-free of the socket object.
When nfcllcprecvcc() moves the socket from the connectingsockets list to the sockets list, it does so without holding the socket lock. If llcpsockrelease() is executing concurrently, it might have already unlinked the socket and dropped its references, which can result in nfcllcprecvcc() linking a freed socket into the live list.
Fix this by holding locksock() during the state transition and list movement in nfcllcprecvcc(). After acquiring the lock, check if the socket is still hashed to ensure it hasn't already been unlinked and marked for destruction by the release path. This aligns the locking pattern with recvhdlc() and recvdisc().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Hold lock_sock() during the state transition in nfc_llcp_recv_cc(), including checking that the socket is still hashed before moving it from the connecting_sockets list to the sockets list.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64010?
CVE-2026-64010 has a risk rating of 35, indicating a moderate severity level.
What vulnerabilities are associated with CVE-2026-64010?
CVE-2026-64010 is associated with a use-after-free vulnerability and a race condition.
How do I fix CVE-2026-64010?
To fix CVE-2026-64010, ensure that your Linux kernel is updated to a version that includes the patch for this vulnerability.
What is affected by CVE-2026-64010?
CVE-2026-64010 affects the NFC LLCP connection state machine within the Linux kernel.
When was CVE-2026-64010 published?
CVE-2026-64010 was published on July 19, 2026.