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 4BA5C19343E for ; Wed, 11 Sep 2024 15:15:11 +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=1726067711; cv=none; b=gDfS03TWs7kOgIWvXif9bwi9yC/WKoMy30J0dByFgwxPS0/blXF7dUD+CtfT0XchuPMJeCcp3EZfGalB+zd2ssHMoHrJx7ax1Qxx96IdJ7isIFaQ1g+6vaJO/3gE/aKAb6Wp3l9EbjXMpKpEwcp6cI4CYJqxk+gwjSR+YKocIeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726067711; c=relaxed/simple; bh=YXN2MV4WeJ6p9V6MeE5E6i5K6sUB4CRp8n95g0/2glI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dYiO4bGlqZvoo62fTpONSdM6BZU1FsDRVTsbHpuG+xE7TISEEItzB96lj/iSO+hKcaJZTc7em01oXnqaSaFku0MXE2vNy3XbeTZGOYYw/9zwUzQ3m0WBnIhApEVd92iWosu1LsCjsItNfZT+drPUJLt3O+IYssVsAv1uMI7dGpY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=F9fBJfnZ; 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="F9fBJfnZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C44C4C4CEC0; Wed, 11 Sep 2024 15:15:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726067711; bh=YXN2MV4WeJ6p9V6MeE5E6i5K6sUB4CRp8n95g0/2glI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=F9fBJfnZUzqfnGYl9yh2b2PAQRdvUcVTiQCgG05WW2uwudUfaeiaoXjmUsGB2RcfR hXitYlB0orcKYpeqK7s85VfHuS85dj+JPNdqteh0prdrLP8aDqrb04piyIobCs4kgS 8AwiSb5kwFrAv2+jBZcHi4BHdDkH1lYAU4Hi/3wQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-45028: mmc: mmc_test: Fix NULL dereference on allocation failure Date: Wed, 11 Sep 2024 17:14:24 +0200 Message-ID: <2024091110-CVE-2024-45028-34f7@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=2918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YXN2MV4WeJ6p9V6MeE5E6i5K6sUB4CRp8n95g0/2glI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkPNx/aPqtawsJpv9+fOXdaJk44PNeByXZbl+THRcdlJ i4SuLhYvyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmknOeYX5Et5twmsiXCSyd /7YXtO7Y+pGN3Z5hwd7v8XOOTVoYynNuTdIXjfuNSy+9EwYA 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: mmc_test: Fix NULL dereference on allocation failure If the "test->highmem = alloc_pages()" allocation fails then calling __free_pages(test->highmem) will result in a NULL dereference. Also change the error code to -ENOMEM instead of returning success. The Linux kernel CVE team has assigned CVE-2024-45028 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 4.19.321 with commit e97be13a9f51 Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 5.4.283 with commit 2b507b03991f Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 5.10.225 with commit 9b9ba386d7bf Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 5.15.166 with commit e40515582141 Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 6.1.107 with commit 3b4e76ceae5b Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 6.6.48 with commit cac2815f49d3 Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 6.10.7 with commit ecb15b8ca12c Issue introduced in 2.6.27 with commit 2661081f5ab9 and fixed in 6.11-rc5 with commit a1e627af32ed 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-45028 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/core/mmc_test.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/e97be13a9f51284da450dd2a592e3fa87b49cdc9 https://git.kernel.org/stable/c/2b507b03991f44dfb202fc2a82c9874d1b1f0c06 https://git.kernel.org/stable/c/9b9ba386d7bfdbc38445932c90fa9444c0524bea https://git.kernel.org/stable/c/e40515582141a9e7c84b269be699c05236a499a6 https://git.kernel.org/stable/c/3b4e76ceae5b5a46c968bd952f551ce173809f63 https://git.kernel.org/stable/c/cac2815f49d343b2f0acc4973d2c14918ac3ab0c https://git.kernel.org/stable/c/ecb15b8ca12c0cbdab81e307e9795214d8b90890 https://git.kernel.org/stable/c/a1e627af32ed60713941cbfc8075d44cad07f6dd