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 1CCCA17D367 for ; Thu, 30 May 2024 14:59:40 +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=1717081181; cv=none; b=mDDpjwjrrg0EYo9lDSQH3mtVh3UCsBIcsCgcBeJ3LwuWbrb+6iNvhpdRsPCUvu6P5uY0VvmAhTX7lo12O4c48wdn41WAFVNExcHlWHaimcem7kTT/sAYgKh1IYQlWxnLbKeW/VoZrDKpsflQl6LLKw7pO8NS1EfwozFXv+Lqt9M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081181; c=relaxed/simple; bh=69wChRZLZ+HA5/dIoV/1jgkGsXJo5Usmk+7kcRYJwoo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F0VlP3xpVGJ+bKw+KMdJrq5QEqcDlOUcTZTsAKsFSHRadfJYqMDSPSUTjyCnXaP/tUOdCmumxsdA+KdLH9OL93p6QAjLwjpS+SECYypc0Bz+bdjAlHkNk0e/5GDw1aW7py7wObjr7M0yE4wfuD0pigHnxQ1HTXOYTMQaKglpbNA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qXw0vTl8; 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="qXw0vTl8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 439F0C32782; Thu, 30 May 2024 14:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717081180; bh=69wChRZLZ+HA5/dIoV/1jgkGsXJo5Usmk+7kcRYJwoo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qXw0vTl85dd6kY4Dp5cjxydcZ+fZI6WTr5gbg6j9IOWQNeleaeGy96ttW6OBHDPo7 tn/196wHwbH1l2LOGW5gPaPiHOS4En/CcfG8U65rFHLP/KqGMRqAgRKCXfRE8tDSGd gV5XEop60HmJwJQ2LFv5j32X/oSxFuyE7tfv6q+A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36019: regmap: maple: Fix cache corruption in regcache_maple_drop() Date: Thu, 30 May 2024 16:59:42 +0200 Message-ID: <2024053044-CVE-2024-36019-59fb@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=2299; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=69wChRZLZ+HA5/dIoV/1jgkGsXJo5Usmk+7kcRYJwoo=; b=kA0DAAIRMUfUDdst+ykByyZiAGZYlGChlmijsT+aCwTR362hWqgxiDIlnlXIdW7X84+G4oVYV YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmZYlGAACgkQMUfUDdst+ylJggCgyV3G 7zMVjdyhn70Qm02b3zDumQ4AoMZlYaEbcOL7oyGAwJtARTY6bUCJ 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: regmap: maple: Fix cache corruption in regcache_maple_drop() When keeping the upper end of a cache block entry, the entry[] array must be indexed by the offset from the base register of the block, i.e. max - mas.index. The code was indexing entry[] by only the register address, leading to an out-of-bounds access that copied some part of the kernel memory over the cache contents. This bug was not detected by the regmap KUnit test because it only tests with a block of registers starting at 0, so mas.index == 0. The Linux kernel CVE team has assigned CVE-2024-36019 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit f033c26de5a5 and fixed in 6.6.26 with commit 3af6c5ac72dc Issue introduced in 6.4 with commit f033c26de5a5 and fixed in 6.8.5 with commit 51c4440b9d3f Issue introduced in 6.4 with commit f033c26de5a5 and fixed in 6.9 with commit 00bb549d7d63 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-36019 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/base/regmap/regcache-maple.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/3af6c5ac72dc5b721058132a0a1d7779e443175e https://git.kernel.org/stable/c/51c4440b9d3fd7c8234e6de9170a487c03506e53 https://git.kernel.org/stable/c/00bb549d7d63a21532e76e4a334d7807a54d9f31