# CVE-2026-64010: nfc: llcp: Fix use-after-free race in nfc_llcp_recv_cc()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-02)
- Published: 2026-07-19T14:56:25.162Z
- Modified: 2026-10-13T13:57:35.497Z
- Weaknesses: CWE-362, CWE-416
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfc: llcp: Fix use-after-free race in nfc_llcp_recv_cc()

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 nfc_llcp_recv_cc() moves the socket from the connecting_sockets
list to the sockets list, it does so without holding the socket lock.
If llcp_sock_release() is executing concurrently, it might have already
unlinked the socket and dropped its references, which can result in
nfc_llcp_recv_cc() linking a freed socket into the live list.

Fix this by holding lock_sock() during the state transition and list
movement in nfc_llcp_recv_cc().  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 recv_hdlc() and recv_disc().

(As written by CVE List.)

## Affected

- Linux Linux: from a69f32af86e389dd232b1bb2269e202c1bfcc60f before dce85215a6c7b0fd753f577a4c487f647119884c; from a69f32af86e389dd232b1bb2269e202c1bfcc60f before bd08bb7443c501d2f2a71d529e4afcf11c9b07d2; from a69f32af86e389dd232b1bb2269e202c1bfcc60f before 0b45c31746e1523d5d482fda8fcf54a35ac417f1; from a69f32af86e389dd232b1bb2269e202c1bfcc60f before ee2d1a8a1833c5e56e9a1745e64b0b4edda732c2; from a69f32af86e389dd232b1bb2269e202c1bfcc60f before ad8a27d63cac96bac441edd002209ebd996e12fb; from a69f32af86e389dd232b1bb2269e202c1bfcc60f before 650bdd8fdfab64a09ee474150313dbc48c374795; from a69f32af86e389dd232b1bb2269e202c1bfcc60f before b2a60f7f846faaf5c2cdad4ea6d3a33e5f863183; from a69f32af86e389dd232b1bb2269e202c1bfcc60f before b493ea2765cc17cb8aa7e7544a4b6dcb05b6ed77; 3.6 (not affected: before 3.6; from 5.10.259 up to 5.10.*; from 5.15.210 up to 5.15.*; from 6.1.176 up to 6.1.*; from 6.6.143 up to 6.6.*; from 6.12.93 up to 6.12.*; from 6.18.35 up to 6.18.*; from 7.0.12 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.6 before 5.10.259; from 5.11 before 5.15.210; from 5.16 before 6.1.176; from 6.2 before 6.6.143; from 6.7 before 6.12.93; from 6.13 before 6.18.35; from 6.19 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/dce85215a6c7b0fd753f577a4c487f647119884c> (patch)
- <https://git.kernel.org/stable/c/bd08bb7443c501d2f2a71d529e4afcf11c9b07d2> (patch)
- <https://git.kernel.org/stable/c/0b45c31746e1523d5d482fda8fcf54a35ac417f1> (patch)
- <https://git.kernel.org/stable/c/ee2d1a8a1833c5e56e9a1745e64b0b4edda732c2> (patch)
- <https://git.kernel.org/stable/c/ad8a27d63cac96bac441edd002209ebd996e12fb> (patch)
- <https://git.kernel.org/stable/c/650bdd8fdfab64a09ee474150313dbc48c374795> (patch)
- <https://git.kernel.org/stable/c/b2a60f7f846faaf5c2cdad4ea6d3a33e5f863183> (patch)
- <https://git.kernel.org/stable/c/b493ea2765cc17cb8aa7e7544a4b6dcb05b6ed77> (patch)

## Sources

- CVE List: [CVE-2026-64010](https://www.cve.org/CVERecord?id=CVE-2026-64010), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-64010](https://nvd.nist.gov/vuln/detail/CVE-2026-64010), Public domain, modified 2026-10-13

---

Page: https://cve.day/CVE-2026-64010 · Whole record: https://cve.day/CVE-2026-64010.json · Rebuilt by cve.day 2026-11-25T22:59:28.919Z
