Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 79B994F390A for ; Thu, 17 Sep 2026 16:20:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662048; cv=none; b=l/TUTnJpAJin6Wi1sXLTZ2JTl9VWfGxeLk8LRExh/qvHJR3hgHvJoOg3DtKNzJo/z244y8XIf9T/8U2PZdIsmDQU2PcE0MjiAxWmJjsJbZMObpjKnn/21VKwtCkSP/qnmPJb3tPuEIZVHYnANcUTZPz6UTSChHkKIsW2+MwvefM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662048; c=relaxed/simple; bh=x3qpNHHDxohW5K+M9UCSmM/X7imWxZGLbsW7tUXzvSY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WwuACIGsPayEMaUTFFey8ADjSqGks9lab+iV11noMTjTdI3jgtxmq5zmlQiCLs261xCdLl71tXeU39Qu73kQ5sZ5vrc7QweWPjbbwhC+7agP3b+OdK5+00WX2QAZ4r5aSM4KQekVGFEm3Zxw6TJUnOKcxcTfRXEhLU78QxRAwcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L3nrwIbU; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L3nrwIbU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D345B1F00893; Thu, 17 Sep 2026 16:20:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662047; bh=tmcA8R+USyx9UHhA5Xigz8XoPQq93FwHTbNc5UMcGJE=; h=From:To:Cc:Subject:Date:Reply-To; b=L3nrwIbUmIDtGzQEKGFLM0txA+KRWlTTus3yWn3GPtG+OLJkW0JLahrT5GBZrYSfG MRkXZl7hM3RmVkSjnugN8hs86bnGTXh9IV3mO5F7f4gUbRxoUpu71zbNsU1ppyLbjT HvPCZsPtbegU/I1xwIgxziKtdKYaiiDow4Z076iI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90223: nfc: llcp: bound SNL TLV parsing to the skb and add length checks Date: Thu, 17 Sep 2026 17:10:53 +0100 Message-ID: <2026091738-CVE-2026-90223-8fa9@gregkh> X-Mailer: git-send-email 2.55.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=4206; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kKzFrcnfT3Gq245VLAjlcBpyRBJCP1PDknXsDkZMLS8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBNoshOZ7nixf0p5zR/G/VWhx0bT3DyzMGlh8q2cfV z9Xai7bEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5doxhrmSJkeX9yZ+XyP/6 FDNB93KDXXTZf4YFB7e3cU7ZqNkaUbuj7uhW/tzpRSvtAA== 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: bound SNL TLV parsing to the skb and add length checks nfc_llcp_recv_snl() walked the SNL TLV list using a u16 offset/length pair derived from skb->len, without bounding reads to the actual skb data. Three problems followed: - For a short frame (skb->len < LLCP_HEADER_SIZE), tlv_len underflowed. - The per-TLV header (type, length) was read without checking that two bytes remained. - A declared TLV length could run past the end of the buffer, and an SDREQ with length == 0 made "service_name_len = length - 1" underflow (size_t), driving an out-of-bounds read in the following strncmp() / nfc_llcp_sock_from_sn(). The SDRES case likewise read tlv[2]/tlv[3] without a length check. A nearby NFC device can reach this without authentication; LLCP link activation happens automatically after NFC-DEP. Walk the TLV list by pointer, bounded by skb_tail_pointer() over the linear skb data, and validate each TLV declared length before use. Add explicit length checks for SDREQ (>= 1) and SDRES (exactly 2). Found by 0sec automated security-research tooling (https://0sec.ai). The Linux kernel CVE team has assigned CVE-2026-90223 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 5.10.270 with commit 88b36d36e12c9ba76decdb580d9c1907c084e587 Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 5.15.221 with commit 587fc2a5a35b41883b22b8f808fe5d345208914b Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 6.1.188 with commit f04ac9bf2379f3e2470c400c235eb12f74891bef Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 6.6.157 with commit 02030f95820c42431280f4f945ff34247fb840ff Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 6.12.110 with commit 99fdb5c2522f365efa199d0117b641e35097041e Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 6.18.52 with commit 749a9048bf51a668ec3ab6c0392ba32325607281 Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 7.2.6 with commit eeb16fb24cfe67947b832fd9ada5f488afc72579 Issue introduced in 3.8 with commit 19cfe5843e86cc95542d9d875c9386e197956d75 and fixed in 7.3-rc1 with commit f4c7f37f0ab990952539dc68d931d65c3657600a 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-90223 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/88b36d36e12c9ba76decdb580d9c1907c084e587 https://git.kernel.org/stable/c/587fc2a5a35b41883b22b8f808fe5d345208914b https://git.kernel.org/stable/c/f04ac9bf2379f3e2470c400c235eb12f74891bef https://git.kernel.org/stable/c/02030f95820c42431280f4f945ff34247fb840ff https://git.kernel.org/stable/c/99fdb5c2522f365efa199d0117b641e35097041e https://git.kernel.org/stable/c/749a9048bf51a668ec3ab6c0392ba32325607281 https://git.kernel.org/stable/c/eeb16fb24cfe67947b832fd9ada5f488afc72579 https://git.kernel.org/stable/c/f4c7f37f0ab990952539dc68d931d65c3657600a