Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5526A3C1D70 for ; Mon, 10 Aug 2026 12:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363388; cv=none; b=phUDTjw9b1gQFixZZcXDmtOrdKigkSHWrV7vPDW3Qj1Q2e+Ie1rqEchzbpZrT7mGrEc99DPw+3IYM7Cf6BfFkfNbJzspW9XsUtT5IgzFW1BDAPcfJ66IltyCUxFX7WIipUzB8SlWvXbVs+HruQleJty76gMetONwWOMHOdd6ufY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363388; c=relaxed/simple; bh=DFj+1Aw5xXu8lP1Duyp/4I1r3Pg0HcijyYDdN8pRBS4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oA8FdjYCwj7QizFcB75QQYz6jbOqQLHaqlrzlrQYS4v6Lo0uCQVnpJSyrVjNoSejUgN5bknMDwjajIeV67lb+Q0a9rJS/bEBk/UiAAkuAKTkRQdCl1gtGK8J0vJIqJMN0e+HRpH0/JqaTFGbFDXzRT6fxC7+rlhkJJNNu0QM924= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qQ9I1Wz8; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="qQ9I1Wz8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 862081F00A3A; Mon, 10 Aug 2026 12:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363387; bh=Ab/QZ6kORuJG2Y6hYVQzb7FN9hiDrNXO+1EC1Yv0IWM=; h=From:To:Cc:Subject:Date:Reply-To; b=qQ9I1Wz8erTB40gifqWlwxF6IMOAP8FueA6jHisvryb6xMKOkMXmV6IZkqNASoFnU jOUFwEoKw3pf/kINg1Q2r2RSO9d/FHHPmDUwtWkrxihFMW9wWKmGO52lHxr/4dgXTb nO9soUPLjMKwEF9iAK3rTt4uq8dLmMcioaI/zF5s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68106: drm/amdgpu: fix division by zero with invalid uvd dimensions Date: Mon, 10 Aug 2026 13:57:03 +0200 Message-ID: <2026081053-CVE-2026-68106-16c3@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2563; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gelZEq0ufn+xMXP+CUiTyOpyt6NnFSc0o+yVhO+YSoI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe1qZEhdLa+81+LKnTLVknki5tMGxGy8vpqZXVO01F dnh+vthRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk+3uGBfN0LRc2Z9h2ypja nNsRv1teO89PhGHBtStb9O6pn++UZDRSqG516yr4FcYDAA== 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/amdgpu: fix division by zero with invalid uvd dimensions When width or height is less than 16, width_in_mb or height_in_mb becomes 0, leading to fs_in_mb being 0. This causes a division by zero when calculating num_dpb_buffer in H264 and H264 Perf decode paths. Add validation to reject frames with width < 16 or height < 16 before performing any calculations that depend on these values. V2: Format change - move up all vaiable definitions. V3: Use warn_once to avoid spam. (cherry picked from commit 3e41d26c70b0a459d041cc19482a226c4b7423cb) The Linux kernel CVE team has assigned CVE-2026-68106 to this issue. Affected and fixed versions =========================== Fixed in 6.6.148 with commit 52f9a588296432accf2982f7d258192a37562f4f Fixed in 6.12.101 with commit a00946b5ab7c25da5685ca9c58f50ff6f43c0fdf Fixed in 6.18.42 with commit ffb33d466a68cea3e8a3dbed04d79037a3cbabd1 Fixed in 7.1.6 with commit be725ab23aa45c11a5afef3e2a9f6d8c084ae5dc Fixed in 7.2-rc2 with commit 0c01c811be47e6b146552dd59bfedbea8f09b8f4 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-2026-68106 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/amdgpu/amdgpu_uvd.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/52f9a588296432accf2982f7d258192a37562f4f https://git.kernel.org/stable/c/a00946b5ab7c25da5685ca9c58f50ff6f43c0fdf https://git.kernel.org/stable/c/ffb33d466a68cea3e8a3dbed04d79037a3cbabd1 https://git.kernel.org/stable/c/be725ab23aa45c11a5afef3e2a9f6d8c084ae5dc https://git.kernel.org/stable/c/0c01c811be47e6b146552dd59bfedbea8f09b8f4