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 7647C84A52 for ; Wed, 7 Aug 2024 15:26: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=1723044384; cv=none; b=djmCl2/3o1AbH/LtjIDJVBgxwNs1Hbteac/6iaSb8G/O2KPxVGllI4tpYtdTbYjXoxtu7RxHfpyDi27qtYDXz1j3o5nxSHMc/7Ppb+V7V6fha1tg75s4Updpwk5J4EhPNZozrQf+VQ5VdRAd+CZxcKTzIvk3QwFHHH+coH7K/HE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723044384; c=relaxed/simple; bh=jpqvKkaQGiYM1+61wOovZDyAGMHLyPQzA4aTosTGTQ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bfb8qYPRJguHxO5jDDnmbyFhLAm8ZSawr3SubEO3iT99YFRl8MsIDu2qYshHhrRNQA4msai+C/lATFYZm/kn96ndBNXjdOs+39WJnIcK0z5VvZ5p7AEHQH4YTMOPuycaTk9UrGAVt8LbdOiuY/+AWpOO+Ug9N7PaZbh+NgPEHsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p38TEf/M; 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="p38TEf/M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A69FFC32781; Wed, 7 Aug 2024 15:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723044384; bh=jpqvKkaQGiYM1+61wOovZDyAGMHLyPQzA4aTosTGTQ8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p38TEf/MjSzd2shNquekWlxK3yLmP1+oy0BmUBRJ5Hg0fxxeqON3uC+/xoDBJheGA fUvLxe46sxsLTXdAUTI0f+yd9eGHThvaM73lU+IKotrtdmoc+VSOnA6as1J3V149Wn 5RiGsKL/H84u4rGlXgaONYz8T+6EBNubzD0DYzTg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42242: mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE Date: Wed, 7 Aug 2024 17:14:48 +0200 Message-ID: <2024080741-CVE-2024-42242-add7@gregkh> X-Mailer: git-send-email 2.46.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=2040; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jpqvKkaQGiYM1+61wOovZDyAGMHLyPQzA4aTosTGTQ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmb+xPnlD6bYqW34MWs0i1z9rxMXrG84u0ye22P3p/no k43Mb9o7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHLrPME8htPSqZir7zhzZ DRPU/poLcbgFfGCYH7ZHawqb/5PwTZfemYd2qc74Wni5FgA= 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: mmc: sdhci: Fix max_seg_size for 64KiB PAGE_SIZE blk_queue_max_segment_size() ensured: if (max_size < PAGE_SIZE) max_size = PAGE_SIZE; whereas: blk_validate_limits() makes it an error: if (WARN_ON_ONCE(lim->max_segment_size < PAGE_SIZE)) return -EINVAL; The change from one to the other, exposed sdhci which was setting maximum segment size too low in some circumstances. Fix the maximum segment size when it is too low. The Linux kernel CVE team has assigned CVE-2024-42242 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 616f87661792 and fixed in 6.9.10 with commit bf78b1accef4 Issue introduced in 6.9 with commit 616f87661792 and fixed in 6.10 with commit 63d20a94f24f 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-42242 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/mmc/host/sdhci.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/bf78b1accef46efd9b624967cb74ae8d3c215a2b https://git.kernel.org/stable/c/63d20a94f24fc1cbaf44d0e7c0e0a8077fde0aef