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 7E8E2160643 for ; Thu, 29 Feb 2024 15:53:23 +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=1709222003; cv=none; b=e5iD0fJ3QvycbQfWKRMFjy/dELyocwdb/tkNJyLyD6yuZCBOVn1xOfYAWl3gv45B9F1KokSsGUZaoL3wsn47+xKtJkeqyCNPCR0qifn/ykSHtuMVsoApDyXF5H7XT4ykayjDcwLpK+YZtvIKTwrCl1y/hoXODXcBRLTGQfavLP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709222003; c=relaxed/simple; bh=YeIMD6yRAfj8X5fsFxu+qfcibVeg4Qqgb8biTuzSLhY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L1Raw4mIe6Cnwe2AywDdkG0VUpxAH6JJAVz5SOM4pphnpOve0c9zUJoQ6Tep6S9KicFPj//hhcG72hNlJQi/zQvIzWMWr0Ag9IDK5FZ1EGMeqS2X3iSZM0zh5Au6pweopKL8kYcKG/xv3ZkQfSGKYs0L0AJAg/keJSEj9SLDwyM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P8uNCihb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P8uNCihb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 704CAC433C7; Thu, 29 Feb 2024 15:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709222003; bh=YeIMD6yRAfj8X5fsFxu+qfcibVeg4Qqgb8biTuzSLhY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P8uNCihbs6HFuGRgpcCBT1J6VEVdZA92ao0L9pdqQlnM9bg6JBQwaa1Y/00hpLHnt 5/ef//qMpUUX8KkdzYYp3KvQydKlPZ+tT/nMgBuR0aBbw47Mw76rhqrJMYWffGCXr2 x1CZ2TyiWXLVcLuL30E3QW5qoCpYdxbydq3FQ8/19CP586uzIaarUKDGdAeoNDrL8u Hc1KXmeNWAhBgPJ42qLe5rMFciZ5gMHfuLQjY9PoDbK5nE0HWYGBMQLPWEDU3yyN6k 9lCUDktICsf+YUdztbXmy80f0ZoCEkVEwGd7TbiyYeSNxJYX47dzU8RBRizfD98wzv ZCEMq83kFDROw== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2023-52494: bus: mhi: host: Add alignment check for event ring read pointer Date: Thu, 29 Feb 2024 15:52:54 +0000 Message-ID: <20240229155245.1571576-35-lee@kernel.org> X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog 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=2599; i=lee@kernel.org; h=from:subject; bh=YeIMD6yRAfj8X5fsFxu+qfcibVeg4Qqgb8biTuzSLhY=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBl4KhOIsIFS7rBE9CeirvGFsy0V5FVCl3b/p0tK WNjMyYz1XOJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZeCoTgAKCRBRr4ovh/x3 YVguD/0SLfP7H5Sttt+KLmCiBOsZYvuYRWQCoWDzvxjsxIHrBt5H52li/7tfaj+KHG6z/4sXqCy PiJKLI5WHXLnJCjCMyCyKCWdQdlmru6ffRWhtmFLXhdt9MKX1OOOqM5BJn4/cVS3OQrG9y9Vkk3 Xe6VYXz+MdifWMZuSfd2CEQITx7HntI2yKB0Rl0riFoAYw218uEocrGHXAO2sFe3S/zT+R+Gwof 9EcPbxQYWZOfR/afOfrxq/eqBJGlmN2XH0I8zjnnTJxiKneqGKPXWIfRyGu/mFNuqdNwd0LecV+ X3rdKywoJhU7JDUOUV46Krb60QXXd7QgRQBS0aArnDEhGrgefwmSaa91M4Hth8xGFoBTT70GCQL jC90ulOf/npWmP6HR9yjBCrjihPsFm91AEZ/PQGhAJFebLeHFyttuyEwqGKbzW9vGKjFfWZ1nZX 8zX6yaoN2qXdtOUZriYrXELP11P1sBflfCz5FTjoxEQ53Ize99p2/Sy2h8isQFIwqPGrXR4Be+V HTCOQOl5NTLFP/N3sZPoZaJcF1eTpAzproZMS4TRZaPGmsIF0OAC6flitc0w2jQ7sSlf4Xl7Wxw ow0UuPEHSFvHo7fVidWOvS+E6g95uUljx1BbO3H5JiBAU6q4Jq44sc/VYMCMEJ9hCEY0LGCFkrX 6MgDaMgGb2j4CWg== X-Developer-Key: i=lee@kernel.org; a=openpgp; fpr=76B6C935A3BE209A94F0874851AF8A2F87FC7761 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: bus: mhi: host: Add alignment check for event ring read pointer Though we do check the event ring read pointer by "is_valid_ring_ptr" to make sure it is in the buffer range, but there is another risk the pointer may be not aligned. Since we are expecting event ring elements are 128 bits(struct mhi_ring_element) aligned, an unaligned read pointer could lead to multiple issues like DoS or ring buffer memory corruption. So add a alignment check for event ring read pointer. The Linux kernel CVE team has assigned CVE-2023-52494 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit ec32332df764 and fixed in 5.15.149 with commit 94991728c84f Issue introduced in 5.13 with commit ec32332df764 and fixed in 6.1.76 with commit 2df39ac8f813 Issue introduced in 5.13 with commit ec32332df764 and fixed in 6.6.15 with commit a9ebfc405fe1 Issue introduced in 5.13 with commit ec32332df764 and fixed in 6.7.3 with commit ecf832011182 Issue introduced in 5.13 with commit ec32332df764 and fixed in 6.8-rc1 with commit eff9704f5332 Please see https://www.kernel.org or 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-52494 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/bus/mhi/host/main.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/94991728c84f8df54fd9eec9b85855ef9057ea08 https://git.kernel.org/stable/c/2df39ac8f813860f79782807c3f7acff40b3c551 https://git.kernel.org/stable/c/a9ebfc405fe1be145f414eafadcbf09506082010 https://git.kernel.org/stable/c/ecf8320111822a1ae5d5fc512953eab46d543d0b https://git.kernel.org/stable/c/eff9704f5332a13b08fbdbe0f84059c9e7051d5f