# CVE-2026-31629: nfc: llcp: add missing return after LLCP_CLOSED checks

- 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.27%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-04-24T14:42:49.849Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-667
- Assigned by: Linux

## Description

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

nfc: llcp: add missing return after LLCP_CLOSED checks

In nfc_llcp_recv_hdlc() and nfc_llcp_recv_disc(), when the socket
state is LLCP_CLOSED, the code correctly calls release_sock() and
nfc_llcp_sock_put() but fails to return. Execution falls through to
the remainder of the function, which calls release_sock() and
nfc_llcp_sock_put() again. This results in a double release_sock()
and a refcount underflow via double nfc_llcp_sock_put(), leading to
a use-after-free.

Add the missing return statements after the LLCP_CLOSED branches
in both functions to prevent the fall-through.

(As written by CVE List.)

## Affected

- Linux Linux: from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before b2a23529593d011fb433a3d711fc597ed6a6bd2f; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before 665315df9c3486cb213fc44d83cc8bcd47fe0d26; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before 9b49e2a4b8219a2fc5cebf94f4ec34e509aff8a6; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before 0eb1263a3b8c36418c9ba295c9ab3abed664edbf; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before 796e0cac058252d0ad34ebe288e6f7979b5fc9b2; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before 8977fad2b3c6eefd414131168d597c5d1d5e1abf; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before ff3d9e8f7244293e303f7b6ef70774291c7c27e9; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before aba4712e8f0381cd5d196534ce2ad082626a5ab6; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a before 2b5dd4632966c39da6ba74dbc8689b309065e82c; 3.3 (not affected: before 3.3; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.136 up to 6.6.*; from 6.12.83 up to 6.12.*; from 6.18.24 up to 6.18.*; from 6.19.14 up to 6.19.*; from 7.0.1 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 3.3 before 6.6.136; from 6.7 before 6.12.83; from 6.13 before 6.18.24; from 6.19 before 6.19.14; from 7.0 before 7.0.1

## References

- <https://git.kernel.org/stable/c/b2a23529593d011fb433a3d711fc597ed6a6bd2f>
- <https://git.kernel.org/stable/c/665315df9c3486cb213fc44d83cc8bcd47fe0d26>
- <https://git.kernel.org/stable/c/9b49e2a4b8219a2fc5cebf94f4ec34e509aff8a6>
- <https://git.kernel.org/stable/c/0eb1263a3b8c36418c9ba295c9ab3abed664edbf> (patch)
- <https://git.kernel.org/stable/c/796e0cac058252d0ad34ebe288e6f7979b5fc9b2> (patch)
- <https://git.kernel.org/stable/c/8977fad2b3c6eefd414131168d597c5d1d5e1abf> (patch)
- <https://git.kernel.org/stable/c/ff3d9e8f7244293e303f7b6ef70774291c7c27e9> (patch)
- <https://git.kernel.org/stable/c/aba4712e8f0381cd5d196534ce2ad082626a5ab6> (patch)
- <https://git.kernel.org/stable/c/2b5dd4632966c39da6ba74dbc8689b309065e82c> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Sources

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

---

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