{"id":"CVE-2026-31629","aliases":["CVE-2026-31629"],"related":[],"kind":"vulnerability","state":"published","title":"nfc: llcp: add missing return after LLCP_CLOSED checks","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: llcp: add missing return after LLCP_CLOSED checks\n\nIn nfc_llcp_recv_hdlc() and nfc_llcp_recv_disc(), when the socket\nstate is LLCP_CLOSED, the code correctly calls release_sock() and\nnfc_llcp_sock_put() but fails to return. Execution falls through to\nthe remainder of the function, which calls release_sock() and\nnfc_llcp_sock_put() again. This results in a double release_sock()\nand a refcount underflow via double nfc_llcp_sock_put(), leading to\na use-after-free.\n\nAdd the missing return statements after the LLCP_CLOSED branches\nin both functions to prevent the fall-through.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnfc: llcp: add missing return after LLCP_CLOSED checks\n\nIn nfc_llcp_recv_hdlc() and nfc_llcp_recv_disc(), when the socket\nstate is LLCP_CLOSED, the code correctly calls release_sock() and\nnfc_llcp_sock_put() but fails to return. Execution falls through to\nthe remainder of the function, which calls release_sock() and\nnfc_llcp_sock_put() again. This results in a double release_sock()\nand a refcount underflow via double nfc_llcp_sock_put(), leading to\na use-after-free.\n\nAdd the missing return statements after the LLCP_CLOSED branches\nin both functions to prevent the fall-through.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnfc: llcp: añadir retorno faltante después de las comprobaciones de LLCP_CLOSED\n\nEn nfc_llcp_recv_hdlc() y nfc_llcp_recv_disc(), cuando el estado del socket es LLCP_CLOSED, el código llama correctamente a release_sock() y nfc_llcp_sock_put() pero no retorna. La ejecución continúa hacia el resto de la función, que llama a release_sock() y nfc_llcp_sock_put() de nuevo. Esto resulta en una doble llamada a release_sock() y un subdesbordamiento del contador de referencias a través de una doble llamada a nfc_llcp_sock_put(), lo que lleva a un uso después de liberación.\n\nAñadir las sentencias ’return’ faltantes después de las ramas LLCP_CLOSED en ambas funciones para evitar el paso directo.","source":"nvd"}],"published":"2026-04-24T14:42:49.849Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"b2a23529593d011fb433a3d711fc597ed6a6bd2f","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"665315df9c3486cb213fc44d83cc8bcd47fe0d26","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"9b49e2a4b8219a2fc5cebf94f4ec34e509aff8a6","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"0eb1263a3b8c36418c9ba295c9ab3abed664edbf","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"796e0cac058252d0ad34ebe288e6f7979b5fc9b2","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"8977fad2b3c6eefd414131168d597c5d1d5e1abf","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"ff3d9e8f7244293e303f7b6ef70774291c7c27e9","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"aba4712e8f0381cd5d196534ce2ad082626a5ab6","status":"affected"},{"type":"git","introduced":"d646960f7986fefb460a2b062d5ccc8ccfeacc3a","fixed":"2b5dd4632966c39da6ba74dbc8689b309065e82c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.3","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.3","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"semver","introduced":"7.0.1","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.3","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","introduced":"7.0","fixed":"7.0.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b2a23529593d011fb433a3d711fc597ed6a6bd2f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/665315df9c3486cb213fc44d83cc8bcd47fe0d26","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b49e2a4b8219a2fc5cebf94f4ec34e509aff8a6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0eb1263a3b8c36418c9ba295c9ab3abed664edbf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/796e0cac058252d0ad34ebe288e6f7979b5fc9b2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8977fad2b3c6eefd414131168d597c5d1d5e1abf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff3d9e8f7244293e303f7b6ef70774291c7c27e9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/aba4712e8f0381cd5d196534ce2ad082626a5ab6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b5dd4632966c39da6ba74dbc8689b309065e82c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31629","url":"https://www.cve.org/CVERecord?id=CVE-2026-31629","licence":"CVE Terms of Use","modified":"2026-10-15T01:17:21.139Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31629","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31629","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.523Z","epss":{"score":0.00265,"percentile":0.19643,"date":"2026-12-01T12:00:22.000Z"}}