Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39B063DEAFC for ; Fri, 24 Apr 2026 14:45:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041938; cv=none; b=plB2KI3x0XXyaS1E/xrl6BDbu6ynGNO1sHeoBp/XyLWYNFnObrR9q7lbTY389n6g0Sa5o9Q7i858PGYx1JLPB+tH2th1tgwDV+A9vgEHrk8pmkZcEbxzqPGMrftSvMpup6WeFExZwyp9RE/t/Rf6Ld0m5uQmcboNCPFbMgqz8QQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041938; c=relaxed/simple; bh=x4SNVzNXd5p2246I85oTZ1/JRDjUKGR/QxeyupVqlCg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fup5ODaLy8+9HmBJVEBcMT2zASV11Fe2KPjXFasUYMcerXCcwJzQsIdjlyrGlSLwiR62R3EEA2Z1k6A9/50ps6JYrXV38minODkyp10RLkMWwwAjgdhIpDR+ibkRLGRDUgRIM61d4JdzSI1X0g3PNPew63Ym92D/Mg3ovYmmd3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lXBMEPOx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lXBMEPOx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6705C19425; Fri, 24 Apr 2026 14:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041938; bh=x4SNVzNXd5p2246I85oTZ1/JRDjUKGR/QxeyupVqlCg=; h=From:To:Cc:Subject:Date:Reply-To:From; b=lXBMEPOx/kG62+qI3mkdzrJvklg+vjNpIhNz56lVtwjHOWUYx7KZrEH5iIXp6Yn4S U4prATpYMbM4eNhxw2Cb2pvn6vk4AiM/nEXpsnvCfM699MpcTcZT9nglK8KJJQvm96 TpBwvuZfzaX5BpRw+25Zg6chCJSIDMUbvPG9S3Xc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31629: nfc: llcp: add missing return after LLCP_CLOSED checks Date: Fri, 24 Apr 2026 16:44:05 +0200 Message-ID: <2026042428-CVE-2026-31629-84ab@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2500; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CGlB1ZQ5vpmZK3XyUGZBVRJU51Dtiel0l3u+b3Zl4Fk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvGyc8EYyaZtQY6DT59R6+9XVfjZK7ubN9J8etO7e5s +fg2f/aHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRBleGucIKu1qaPhTUi5qu W/GswfLqxNRLpQyzWfOytnz8upbxsrCdFw+besX6lnkTAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-31629 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit 796e0cac058252d0ad34ebe288e6f7979b5fc9b2 Fixed in 6.18.24 with commit 8977fad2b3c6eefd414131168d597c5d1d5e1abf Fixed in 6.19.14 with commit ff3d9e8f7244293e303f7b6ef70774291c7c27e9 Fixed in 7.0.1 with commit aba4712e8f0381cd5d196534ce2ad082626a5ab6 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31629 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/nfc/llcp_core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/796e0cac058252d0ad34ebe288e6f7979b5fc9b2 https://git.kernel.org/stable/c/8977fad2b3c6eefd414131168d597c5d1d5e1abf https://git.kernel.org/stable/c/ff3d9e8f7244293e303f7b6ef70774291c7c27e9 https://git.kernel.org/stable/c/aba4712e8f0381cd5d196534ce2ad082626a5ab6 https://git.kernel.org/stable/c/2b5dd4632966c39da6ba74dbc8689b309065e82c