From mboxrd@z Thu Jan 1 00:00:00 1970 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 07C571DFD81 for ; Mon, 21 Oct 2024 20:10:49 +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=1729541450; cv=none; b=YQIwOuGseLclXDAjq+raFfp1Pc2aW3b06PvGPZEWtyyFp7grTek3+ifHXNo0G0f1UI7NeIzcDd+EyFqvYiDTLPV3eGz2qjMp5Jcf0oH0wwbQayuQntAHer9zkrjEPzXekQ8TkTyc67/DagvwoG7GQxJXXCjAIr7k144OzU2akYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541450; c=relaxed/simple; bh=hdMCYteM32kytKZGwsNvAPY0VDJX2IPCtJ1UMtuOgds=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dkrsn2f0y9cmZD20N7GO1/4BgIJJeA+vE0L8k77AlfyczK8iMfvTt00lbsSS5tncHw3DfFnaEdUn6LS2hzuP8uGSdlL4Q48gZchJDGNUqmqisPpmEtcKGZVnNhm80C+xY2CDizYHIN7j/6vM+gXfF4YkASg8mq9ceEdf2RcqyQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tHqeQA3Y; 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="tHqeQA3Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36111C4CEC3; Mon, 21 Oct 2024 20:10:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541449; bh=hdMCYteM32kytKZGwsNvAPY0VDJX2IPCtJ1UMtuOgds=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tHqeQA3YjSNx0GvKJ9ZEcBU3wCL/aKEE8l2xHu/E57toSfAPx+33IGXWHk+sO08lU LGNAXX85iL26FgeD8WTK670O2PvFDNao9LRepOHnSfCNmpJaNJpzG1l5kWl3cbs5JF uon/2Y+tiLkX+8Ls2/eYMHb+W2nKurjWmCdn30kY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48967: NFC: nci: Bounds check struct nfc_target arrays Date: Mon, 21 Oct 2024 22:05:59 +0200 Message-ID: <2024102144-CVE-2022-48967-c2ae@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2968; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hdMCYteM32kytKZGwsNvAPY0VDJX2IPCtJ1UMtuOgds=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliWySOvvGstNw6NWjB6aj3QutEDXmUvXkcJ9eJSQpIZ V9nrp7eEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOxb2WYZzTthkiFZYaLMPdJ 615e9fmsze+rGBZMW8SmxnPcZHXhUnkz8Wu752S+jbAEAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: NFC: nci: Bounds check struct nfc_target arrays While running under CONFIG_FORTIFY_SOURCE=y, syzkaller reported: memcpy: detected field-spanning write (size 129) of single field "target->sensf_res" at net/nfc/nci/ntf.c:260 (size 18) This appears to be a legitimate lack of bounds checking in nci_add_new_protocol(). Add the missing checks. The Linux kernel CVE team has assigned CVE-2022-48967 to this issue. Affected and fixed versions =========================== Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 4.9.336 with commit 6b37f0dc0638 Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 4.14.302 with commit dbdcfb9f6748 Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 4.19.269 with commit cff35329070b Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 5.4.227 with commit 677843470694 Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 5.10.159 with commit 27eb2d7a1b99 Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 5.15.83 with commit 908b2da426fe Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 6.0.13 with commit f41547546db9 Issue introduced in 3.4 with commit 019c4fbaa790 and fixed in 6.1 with commit e329e71013c9 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-2022-48967 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/nci/ntf.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/6b37f0dc0638d13a006f2f24d2f6ca61e83bc714 https://git.kernel.org/stable/c/dbdcfb9f6748218a149f62468d6297ce3f014e9c https://git.kernel.org/stable/c/cff35329070b96b4484d23f9f48a5ca2c947e750 https://git.kernel.org/stable/c/6778434706940b8fad7ef35f410d2b9929f256d2 https://git.kernel.org/stable/c/27eb2d7a1b9987b6d0429b7716b1ff3b82c4ffc9 https://git.kernel.org/stable/c/908b2da426fe9c3ce74cf541ba40e7a4251db191 https://git.kernel.org/stable/c/f41547546db9af99da2c34e3368664d7a79cefae https://git.kernel.org/stable/c/e329e71013c9b5a4535b099208493c7826ee4a64