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 C6564340A64 for ; Wed, 22 Oct 2025 13:27:01 +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=1761139621; cv=none; b=Wbl3kuDToS2VrfXs0vzUoFTXj1hbKvhVrHFk1P7Cs3XeZlwGwI/uSifbM7F3OrSbInhwvJRASz9abO4c4GEyCshbLVCVvtA/I1bCKstYuEMFSkmVUlADD+f0+2j0xdNg74N+kXNlkgF2J2RFr7hXSTKkVu6V+nLlZL84/mTpP3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139621; c=relaxed/simple; bh=psbw7dgZb4VZ2V4xV+yyxInvNCbFnOYZHeJ5tRI9DP0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TTkYUBpds+aSIxY0GoeJxREAUvMYrLt0pLk4vOqBMdb5G+prTjzyEHLhgMQnpsmkm7JU+LOSIcCiwd9R52Ku2zMauijQmd7D91DyiKpi6dCmRPdOwE1SrbxLRW8xogIIMPdTNLKUjZBuxjUtVLNe2Jqkxp8Xrjoxn7aFGJKoymU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xrtKW0CN; 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="xrtKW0CN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F3B5C4CEE7; Wed, 22 Oct 2025 13:27:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139621; bh=psbw7dgZb4VZ2V4xV+yyxInvNCbFnOYZHeJ5tRI9DP0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xrtKW0CNrYl2MpKAisV8emjcBo8bnK90Xrz4is/iUXHx/nbzfEFrXaBncSjqhybFe nF15JGGtw18VXWyeKS9yDYSTNuHlcIkA47PrpI0iglkHYa6HimWdVP0gJqBIC6cd5x W/n+3jDVSJAUuO1N8Q+C5VDHXWUv76c2fWiSUQV8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53729: soc: qcom: qmi_encdec: Restrict string length in decode Date: Wed, 22 Oct 2025 15:25:08 +0200 Message-ID: <2025102216-CVE-2023-53729-ef1a@gregkh> X-Mailer: git-send-email 2.51.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=3172; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vNdic5OOOYXD9tT638QBXegCN/jxM6X+Js1Q/ApAu10=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bjPEpTqk72959CTj0aMpvudnP5534t/OTC/jjJ8fR F4uELL/3hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATyapkmGcyQf6L6qfaB6Is q/4Jbbp4jZ3Xp4Rhvseze19WFra4vpBMMLV59t2iYdMGSQA= 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: soc: qcom: qmi_encdec: Restrict string length in decode The QMI TLV value for strings in a lot of qmi element info structures account for null terminated strings with MAX_LEN + 1. If a string is actually MAX_LEN + 1 length, this will cause an out of bounds access when the NULL character is appended in decoding. The Linux kernel CVE team has assigned CVE-2023-53729 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 and fixed in 4.19.295 with commit 6b58859e7c4ac357517a59f0801e8ce1b58a8ee2 Issue introduced in 4.16 with commit 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 and fixed in 5.4.257 with commit 64c5e916fabe5ef7bef0210b8a59fa8941ee1b8e Issue introduced in 4.16 with commit 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 and fixed in 5.10.195 with commit 2ccab9f82772ead618689d17dbc6950d6bd1e741 Issue introduced in 4.16 with commit 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 and fixed in 5.15.132 with commit b2f39b813d1eed4a522428d1e6acd7dfe9b81579 Issue introduced in 4.16 with commit 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 and fixed in 6.1.54 with commit f6250ecb7fbb934b89539e7e2ba6c1d8555c0975 Issue introduced in 4.16 with commit 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 and fixed in 6.5.4 with commit 22ee7c9c7f381be178b4457bc54530002e08e938 Issue introduced in 4.16 with commit 9b8a11e82615274d4133aab3cf5aa1c59191f0a2 and fixed in 6.6 with commit 8d207400fd6b79c92aeb2f33bb79f62dff904ea2 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-53729 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/soc/qcom/qmi_encdec.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/6b58859e7c4ac357517a59f0801e8ce1b58a8ee2 https://git.kernel.org/stable/c/64c5e916fabe5ef7bef0210b8a59fa8941ee1b8e https://git.kernel.org/stable/c/2ccab9f82772ead618689d17dbc6950d6bd1e741 https://git.kernel.org/stable/c/b2f39b813d1eed4a522428d1e6acd7dfe9b81579 https://git.kernel.org/stable/c/f6250ecb7fbb934b89539e7e2ba6c1d8555c0975 https://git.kernel.org/stable/c/22ee7c9c7f381be178b4457bc54530002e08e938 https://git.kernel.org/stable/c/8d207400fd6b79c92aeb2f33bb79f62dff904ea2