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 DC87E1C460C for ; Fri, 8 Nov 2024 05:56:29 +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=1731045389; cv=none; b=mREF+tmxnd2klVzhsBkWLDzjAAx+PjvSfOHC2wubr1KGKc7MPjy14r2kdeFdtUZOc/klvDxUvcn6MjLS7jf/ExfgfpW+5iYeMOOCRWDIc2RG3J4sFihaxq2hxqx7bUN2tXnEpTr4pOXmaAqEt4hmporuuDYUpn+pAXKIyTKbuyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731045389; c=relaxed/simple; bh=vy17MVisWEzhJI7GjOQf0zMmDzms8VJJu67VzCZNXuk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nDZXyeRTiIfjSKv8b+0768UvpY15hTNuKt8Snzw8RWH1UNqU+HzBjPkNnHp6mhgnYkW1/dYD7xFs5MiNzZG48alaeRrOupsG4VC0/m6pJMJLTvzwkeg9js/KjwvxtsT8Pb6GJWLephRbxm/1MTzFlPbhcfH3YEn+8x32vUPUU54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Rmze02Rq; 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="Rmze02Rq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEBCEC4CECE; Fri, 8 Nov 2024 05:56:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731045389; bh=vy17MVisWEzhJI7GjOQf0zMmDzms8VJJu67VzCZNXuk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Rmze02RqI+7REjsmQbpMFra+OKhdrFJPxbIiItJIhoaHZzZz52sT0pcFrmNTH73ZZ HvBPI3+DYZxzQspSGIIEfrMx637UbqN855rBq4Z2SrHjnjwvqVZ7bN6XkdHHohKP8S LviEj+PhfZCu+Cc6xDWD91R0c1w1SuUmNpWMn6xM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50201: drm/radeon: Fix encoder->possible_clones Date: Fri, 8 Nov 2024 06:56:19 +0100 Message-ID: <2024110818-CVE-2024-50201-b73d@gregkh> X-Mailer: git-send-email 2.47.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=2997; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vy17MVisWEzhJI7GjOQf0zMmDzms8VJJu67VzCZNXuk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm6K5gzHQ2Y/A9bzti0PqSm6dnmjEjeK4t+bt8k8OJJr UKoXJlhRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkbA7DgssslV9Xz7RdxzpN j/vYz4XfSpZNYGaYK6bb3he37fo+QcXGZayLrPR+VVZmAAA= 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/radeon: Fix encoder->possible_clones Include the encoder itself in its possible_clones bitmask. In the past nothing validated that drivers were populating possible_clones correctly, but that changed in commit 74d2aacbe840 ("drm: Validate encoder->possible_clones"). Looks like radeon never got the memo and is still not following the rules 100% correctly. This results in some warnings during driver initialization: Bogus possible_clones: [ENCODER:46:TV-46] possible_clones=0x4 (full encoder mask=0x7) WARNING: CPU: 0 PID: 170 at drivers/gpu/drm/drm_mode_config.c:615 drm_mode_config_validate+0x113/0x39c ... (cherry picked from commit 3b6e7d40649c0d75572039aff9d0911864c689db) The Linux kernel CVE team has assigned CVE-2024-50201 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 74d2aacbe840 and fixed in 5.10.228 with commit df75c78bfeff Issue introduced in 5.8 with commit 74d2aacbe840 and fixed in 5.15.169 with commit fda5dc80121b Issue introduced in 5.8 with commit 74d2aacbe840 and fixed in 6.1.114 with commit c3cd27d85f07 Issue introduced in 5.8 with commit 74d2aacbe840 and fixed in 6.6.58 with commit 1a235af02164 Issue introduced in 5.8 with commit 74d2aacbe840 and fixed in 6.11.5 with commit 68801730ebb9 Issue introduced in 5.8 with commit 74d2aacbe840 and fixed in 6.12-rc4 with commit 28127dba64d8 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-50201 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/radeon/radeon_encoders.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/df75c78bfeff99f9b4815c3e79e2b1b1e34fe264 https://git.kernel.org/stable/c/fda5dc80121b12871dc343ab37e0c3f0d138825d https://git.kernel.org/stable/c/c3cd27d85f0778f4ec07384d7516b33153759b8e https://git.kernel.org/stable/c/1a235af0216411a32ab4db54f7bd19020b46c86d https://git.kernel.org/stable/c/68801730ebb9393460b30cd3885e407f15da27a9 https://git.kernel.org/stable/c/28127dba64d8ae1a0b737b973d6d029908599611