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 50C1117106F for ; Fri, 21 Jun 2024 10:25:29 +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=1718965530; cv=none; b=jXN1wfLOtup95WFaK0jSqAC3oafrJeauErWGNLarG4vmS44hjX1oC1GuhfX1XDfN0tfxIMYS38wdQUJAGvGRBXzISBOSvYbP1CTraSlIr5ca36WOVGABnKG8NFdPIPguyt9SJugM8nx2z5INoNmr6GVqMLKmCZDZYR9zyS/XoVs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965530; c=relaxed/simple; bh=dePY3653iKwIMmaUX9FsEAXRPvderuXOzeoVNKaWd7k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=offiYJE21M78E5EfQv386MMrc+uRFUsVu8R6s7OQinyiALRRfl95tFUNaqxdjzFWMIIgymfL2jBMTbKZJFADFopCFS0312Dbn4NPIZ/PvYf2rdijjyzd/zQG4BnKV/g0F/T8awpXbEOIopgwB+62dgB875z31LwzelVTNVP3xkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tnEhOoMf; 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="tnEhOoMf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76CA2C2BBFC; Fri, 21 Jun 2024 10:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965529; bh=dePY3653iKwIMmaUX9FsEAXRPvderuXOzeoVNKaWd7k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tnEhOoMfbbe7Qa02BODw7lrNHmyZ06g5sST9o9wErpRiXqOGBL5MF3iJQg+sFGgw4 tqbY3JYs1crTeBQEtQhKo6HkcOdkBcHO8oth1J6YTIEsV7uQeCklsrEKR/y1aJSsY+ pQ+IencNKLOi/+K4PLgEuDUE8ymlLgMgjNMTPqTY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38635: soundwire: cadence: fix invalid PDI offset Date: Fri, 21 Jun 2024 12:20:01 +0200 Message-ID: <2024062143-CVE-2024-38635-a3b1@gregkh> X-Mailer: git-send-email 2.45.2 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=2650; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dePY3653iKwIMmaUX9FsEAXRPvderuXOzeoVNKaWd7k=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwfuZnOwYrv/48fPNUuHMcGV3Rn7748tXlOV8sRfmV y3WW3K2I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyO4hhwdaKuR+CT6h92uVg s8WlV2ZOw+zpHgwLLvLbv81bXah9eOEX07ULDr19WRRQAAA= 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: soundwire: cadence: fix invalid PDI offset For some reason, we add an offset to the PDI, presumably to skip the PDI0 and PDI1 which are reserved for BPT. This code is however completely wrong and leads to an out-of-bounds access. We were just lucky so far since we used only a couple of PDIs and remained within the PDI array bounds. A Fixes: tag is not provided since there are no known platforms where the out-of-bounds would be accessed, and the initial code had problems as well. A follow-up patch completely removes this useless offset. The Linux kernel CVE team has assigned CVE-2024-38635 to this issue. Affected and fixed versions =========================== Fixed in 5.4.278 with commit 002364b2d594 Fixed in 5.10.219 with commit fd4bcb991eba Fixed in 5.15.161 with commit 902f6d656441 Fixed in 6.1.93 with commit 2ebcaa0e5db9 Fixed in 6.6.33 with commit 7eeef1e935d2 Fixed in 6.9.4 with commit 4e99103f757c Fixed in 6.10-rc1 with commit 8ee1b439b154 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-2024-38635 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/soundwire/cadence_master.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/002364b2d594a9afc0385c09e00994c510b1d089 https://git.kernel.org/stable/c/fd4bcb991ebaf0d1813d81d9983cfa99f9ef5328 https://git.kernel.org/stable/c/902f6d656441a511ac25c6cffce74496db10a078 https://git.kernel.org/stable/c/2ebcaa0e5db9b6044bb487ae1cf41bc601761567 https://git.kernel.org/stable/c/7eeef1e935d23db5265233d92395bd5c648a4021 https://git.kernel.org/stable/c/4e99103f757cdf636c6ee860994a19a346a11785 https://git.kernel.org/stable/c/8ee1b439b1540ae543149b15a2a61b9dff937d91