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 C78F32FCFCD for ; Fri, 4 Jul 2025 13:43: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=1751636585; cv=none; b=KNIbPzo4nSndJMxM8hZzsA+nhvQrfT6ajb5890wN4Ta/rWMEyVJPB8Chrc9pWdKSVX4W+/WVjbEaDMfCijkhsgw3X5fQd+zfOnHzoCXF8Mm/20NKly1bpDoIUpl6FgMaQD6YZ2hgxVYSicFuYJoeNB5druI42FGuiV3Le+fNjG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636585; c=relaxed/simple; bh=egMCquenvYIdKoyjKq4OTOHXKdjt9sChBTfz1zBOcoE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L6q2aR/ZStlO5DoDxHR+7TOTHwXdmdBgFie3fkHEy2dn6BkFdBvsT/0V/Wjsu5hLQnEKQRLsqv7HOUQ3T3tTX0SoOv8K/QzDTusHaYo2YsJ3qH8lFtepu9uEREhwdceqwGvc2Q4nwnQOLXbkFoy1ry5ZzQkfwTIkK9+Cg1BGoL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OuKbIl3D; 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="OuKbIl3D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05412C4CEE3; Fri, 4 Jul 2025 13:43:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636585; bh=egMCquenvYIdKoyjKq4OTOHXKdjt9sChBTfz1zBOcoE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OuKbIl3Dc2/VyrajdC0y9lG9tZlusYieCwjSMye9hQM5m7bWPfHmQjmna3zprBORY Clmw9ufL710cY7kpHp4ow1jP+1K0orLL5lPdUpAN6bhmnkfTI8UhDsT724pwXZZdod t7wtapVqEdRfhhLIWNqtRHJ3fJZh6eRfmHwJ2G9I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38205: drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1 Date: Fri, 4 Jul 2025 15:37:34 +0200 Message-ID: <2025070419-CVE-2025-38205-0316@gregkh> X-Mailer: git-send-email 2.50.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=1896; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SHNjc0sQBQfWkrpVnNBymy9V/fqLfjIov06JStvph8c=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnpN/n9Qz9ZrN+V0i/CvMb+aP4+N96LM4M7pLc3vU0+u W/z2dlPO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAit14xLNjmEW8q81dn0otv yxenL9Y69N0laTXDTMZ5U5tDLIPtMtVl/x9ZKqWwiIGfHwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1 [Why] If the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated then they can lead to a divide by zero in downstream callers like CalculateVMAndRowBytes() [How] Initialize dummy value to a value to avoid divide by zero. The Linux kernel CVE team has assigned CVE-2025-38205 to this issue. Affected and fixed versions =========================== Fixed in 6.15.4 with commit 8044f981b2cf8c32fe1bd5d1fc991552cdf7ffe0 Fixed in 6.16-rc1 with commit 7e40f64896e8e3dca471e287672db5ace12ea0be 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-2025-38205 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/dml2/dml2_translation_helper.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/8044f981b2cf8c32fe1bd5d1fc991552cdf7ffe0 https://git.kernel.org/stable/c/7e40f64896e8e3dca471e287672db5ace12ea0be