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 E25BB145A03 for ; Tue, 21 May 2024 15:35: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=1716305739; cv=none; b=VJ5oTSJADf5ocb+ttiQl1vbBuU1BnUACKqrYujojMsNEOe633dbCjziZ6dcpyxoHQ68Vi0Qp2L3FwajkQ6s9h0b0CRFs5NHI0QrRTyiOQQSUmlECfRPCa+J8S59m0EpimO5PidakqCgq56C4rbzz6hWrxmnS5/syOIahtgjJJkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305739; c=relaxed/simple; bh=P0WLuIRMEPyMdM5k1GaT66Kns90BZ4zSvrg9h2qG54U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=URdlkjwvWWYMXy4rx6DFmaK0D+aNfqOFTT+tj5KOa3gORa0laygWHj2TAAzGorJ5e2EHKZBq9/d8ZL7mYRC8sD3S3E30YGlwfuqRHdL+7MNq9l9Kj7bOF9T0ZYRHgAjVvrPTIRIX8n1Ls0FoGSn1+sK1Ci9QJBXwySH8SUzEeZY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vHzZzuKo; 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="vHzZzuKo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A992C2BD11; Tue, 21 May 2024 15:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305738; bh=P0WLuIRMEPyMdM5k1GaT66Kns90BZ4zSvrg9h2qG54U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vHzZzuKopDjfQrbBzpa5zQRxxM2tGfzjLJrknI2ktG+qgHRG9eGLUuAMSHg6eIkcy YgAZvb0tPfEEdvWhesHB3FjxuBVoffCe+7LU+q0vS/iZE0BEoPh05pbZ3NVOYaZ+Ie WdVz0Nji8UIArZVPmn2R6i8gRYpmLIxvvliX5E2g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52789: tty: vcc: Add check for kstrdup() in vcc_probe() Date: Tue, 21 May 2024 17:31:25 +0200 Message-ID: <2024052156-CVE-2023-52789-6006@gregkh> X-Mailer: git-send-email 2.45.1 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=2484; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=P0WLuIRMEPyMdM5k1GaT66Kns90BZ4zSvrg9h2qG54U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++ww4uUODT9ta9Kkdtil04J4hri9nby+vvDCC58BRz 0//D7t1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQsmxkWbF58/Xm41v/61Zu/ bBQ38Pp1eaLPD4b51TwsP9KWzvkxm7Xio9nJw2v/x+UcAgA= 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: tty: vcc: Add check for kstrdup() in vcc_probe() Add check for the return value of kstrdup() and return the error, if it fails in order to avoid NULL pointer dereference. The Linux kernel CVE team has assigned CVE-2023-52789 to this issue. Affected and fixed versions =========================== Fixed in 4.14.331 with commit 38cd56fc9de7 Fixed in 4.19.300 with commit 909963e0c167 Fixed in 5.4.262 with commit 460284dfb10b Fixed in 5.10.202 with commit 4ef41a7f33ff Fixed in 5.15.140 with commit 6c80f48912b5 Fixed in 6.1.64 with commit 7cebc86481bf Fixed in 6.5.13 with commit 4a24a3182624 Fixed in 6.6.3 with commit 8f8771757b13 Fixed in 6.7 with commit d81ffb87aaa7 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-2023-52789 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: drivers/tty/vcc.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/38cd56fc9de78bf3c878790785e8c231116ef9d3 https://git.kernel.org/stable/c/909963e0c16778cec28efb1affc21558825f4200 https://git.kernel.org/stable/c/460284dfb10b207980c6f3f7046e33446ceb38ac https://git.kernel.org/stable/c/4ef41a7f33ffe1a335e7db7e1564ddc6afad47cc https://git.kernel.org/stable/c/6c80f48912b5bd4965352d1a9a989e21743a4a06 https://git.kernel.org/stable/c/7cebc86481bf16049e266f6774d90f2fd4f8d5d2 https://git.kernel.org/stable/c/4a24a31826246b15477399febd13292b0c9f0ee9 https://git.kernel.org/stable/c/8f8771757b130383732195497e47fba2aba76d3a https://git.kernel.org/stable/c/d81ffb87aaa75f842cd7aa57091810353755b3e6