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 0E5E8259CBB for ; Fri, 2 May 2025 15:57:24 +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=1746201444; cv=none; b=t3oeqEkMoZ43BA0tVgRCTLrmD7a1zTOSK1UfAbCdJye1wZ1HAI5g/IXWKSHGbmyBDJtcWDTm0WOmiVpOZ8BgBJs7JQERQVwEtevFSiptFb4g1iRJ5eQCii/cCCJzGcgzYZdqqGLnnNfEkxf2Z9H2TeGlJ76ncD7k8FnTiMJMwcg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201444; c=relaxed/simple; bh=XOWnnjV7ET691+AXgWvSoxR9QaF15nxnB2ezXxSvojw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l7EOhudCkrOB1FxD6/w3CutU8J0VURXETgciADk75V1t4zn5ddWOYHyncddTdLScSi0do/Zx25dkQZUxhhhkTLoFG/VXIZf4wVDUE2rtlGeCUlQCfWTt1nh7QFmp0ldVFGTEL1ZT5kvdj2B2bOal7B2GcrAK05NsSkwHFttmFVA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HVfvIk9H; 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="HVfvIk9H" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 519C5C4CEE9; Fri, 2 May 2025 15:57:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201443; bh=XOWnnjV7ET691+AXgWvSoxR9QaF15nxnB2ezXxSvojw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HVfvIk9HPmw802SikcTTG4DNIz9oxDMEmO7eYkwwkPwLuwGrfwN1U7XZnosnuzjq0 fuSgggVtEkFowIAsyOxynrGUpe3uYmuuyD5KcRMyKE3/xO0WGgRfWhpzADM2pulEGa 6+gMgoi9nwbNYHEry9hPlVYMtn6yE8ZrUjpK6xec= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53059: platform/chrome: cros_ec_chardev: fix kernel data leak from ioctl Date: Fri, 2 May 2025 17:55:24 +0200 Message-ID: <2025050209-CVE-2023-53059-47f3@gregkh> X-Mailer: git-send-email 2.49.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=2966; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=B5j06kgQQhNqImmHTYCu5IymAd4inzM1UkkcZ/7q070=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkir+6qX4i2/lPNeeZ0Uk9Lmen33fz6s8xjGBdPUJrzZ 1LDxSWlHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRzy4MC3ZbcSW+OXb4V3Tv hEXnJe5ynQkLMWeYH6JUmxW2Nt97wm1foaUnTuvprpt2EgA= 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: platform/chrome: cros_ec_chardev: fix kernel data leak from ioctl It is possible to peep kernel page's data by providing larger `insize` in struct cros_ec_command[1] when invoking EC host commands. Fix it by using zeroed memory. [1]: https://elixir.bootlin.com/linux/v6.2/source/include/linux/platform_data/cros_ec_proto.h#L74 The Linux kernel CVE team has assigned CVE-2023-53059 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 5.4.240 with commit 13493ad6a220cb3f6f3552a16b4f2753a118b633 Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 5.10.177 with commit f86ff88a1548ccf5a13960c0e7625ca787ea0993 Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 5.15.105 with commit ebea2e16504f40d2c2bac42ad5c5a3de5ce034b4 Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 6.1.22 with commit eab28bfafcd1245a3510df9aa9eb940589956ea6 Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 6.2.9 with commit a0d8644784f73fa39f57f72f374eefaba2bf48a0 Issue introduced in 5.4 with commit eda2e30c6684d67288edb841c6125d48c608a242 and fixed in 6.3 with commit b20cf3f89c56b5f6a38b7f76a8128bf9f291bbd3 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-53059 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/platform/chrome/cros_ec_chardev.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/13493ad6a220cb3f6f3552a16b4f2753a118b633 https://git.kernel.org/stable/c/f86ff88a1548ccf5a13960c0e7625ca787ea0993 https://git.kernel.org/stable/c/ebea2e16504f40d2c2bac42ad5c5a3de5ce034b4 https://git.kernel.org/stable/c/eab28bfafcd1245a3510df9aa9eb940589956ea6 https://git.kernel.org/stable/c/a0d8644784f73fa39f57f72f374eefaba2bf48a0 https://git.kernel.org/stable/c/b20cf3f89c56b5f6a38b7f76a8128bf9f291bbd3