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 A1E8010E3 for ; Tue, 30 Jul 2024 07:49:05 +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=1722325745; cv=none; b=lDWTEHqARd5b1ee2AamDVuf1gl+lJbJn3Px+Qgympd79oWr8gl2ih8y9jRYLANHe+Mzm4EyFLCnbDmpjwW7f+SEYLQHTvMH6PMVIj7kA8Jkgm0veAFgk00DinBX7ievMB5l7osM843bn47iJAGYKjIvbGyGhxRZ1nXXhlbVO/1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325745; c=relaxed/simple; bh=heeMlhaeJVk0D3dzNEucnkTDt8RZUfwK1DiQYJt50Ig=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KbVDTPppoBxHfR4FeJmZuMxJQS3w6j+7lzbI6l/nopuCMFZaMTTP1XTNWLageRocom3ij4F+Yig7zhagozA/J0AGkkkKLbmvNVwQgoYm6mVswbAOhAeU9Q0D9rnDjuSl0/NsP0SxYAUyWxONZFoa3X1BV1zKgSEHlIl4N2YeDbg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=equyj8N8; 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="equyj8N8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12730C32782; Tue, 30 Jul 2024 07:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325745; bh=heeMlhaeJVk0D3dzNEucnkTDt8RZUfwK1DiQYJt50Ig=; h=From:To:Cc:Subject:Date:Reply-to:From; b=equyj8N8YCZamyBJ6GfcVanp7XNIyHUIgfiuWKofziIrQDQbXYJvCyE6SkpHXlB1H ggqPtgd50e/u6/AsxsOdtBM7TmIyPFTZ5Gf/E/CfBQkoc8KAfexptCq5Qyg9RD/Ytd I30v///K4IqGiFOt68ioy4awJAUEbeUj0+YDi/VM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42122: drm/amd/display: Add NULL pointer check for kzalloc Date: Tue, 30 Jul 2024 09:47:40 +0200 Message-ID: <2024073025-CVE-2024-42122-2f70@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=2293; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=heeMlhaeJVk0D3dzNEucnkTDt8RZUfwK1DiQYJt50Ig=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZvWeSpnFNzds3SEWwa1up3z6S9nM8psu/M9gmxxdd aavS12kI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYiNpdhfhr/W/OH2/jkn/46 KGTEK2LSEyMdyDDPwM6KO0K09tHZh2kZ0XPviHH4BV0EAA== 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: drm/amd/display: Add NULL pointer check for kzalloc [Why & How] Check return pointer of kzalloc before using it. The Linux kernel CVE team has assigned CVE-2024-42122 to this issue. Affected and fixed versions =========================== Fixed in 6.9.9 with commit 062edd612fcd Fixed in 6.10 with commit 8e65a1b7118a 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-42122 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/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c drivers/gpu/drm/amd/display/dc/resource/dcn30/dcn30_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn31/dcn31_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn314/dcn314_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn316/dcn316_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn32/dcn32_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn321/dcn321_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.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/062edd612fcd300f0f79a36fca5b8b6a5e2fce70 https://git.kernel.org/stable/c/8e65a1b7118acf6af96449e1e66b7adbc9396912