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 D4713148FF5 for ; Wed, 3 Apr 2024 14:57:46 +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=1712156266; cv=none; b=BmSDGiVaZfDp9s9Yi4R261ykp7HVp1TvOrNXCP0b1qFMKsDJaEzsld2SADuydzDXXgA/PDd5yh6H1Dk389H4h2mxEpXoDUVjGJBWljEANSYtSu0p2kZ9CNyT+27ytg0y9XKTCpqFLCsML8xhiL9sKUVap2qK4SR1K/umnW2bl9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712156266; c=relaxed/simple; bh=p/miq+CGqAN6IPx9x+OosgS1G+vGexqwGnTB86l9BtY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kRpkTuUA8/j9KaAD+uRsUo8AEnBaLyjPqjtLetI3fbHZL/yqBGDz+3wN+rk1HBf8k/lh71pQumCv8lC1MHu5ojKK+Ov9Zqh+3TQf6gPsolf8pvl/w/+eYOLgGoPrG5L7hjIcx18OGUAKILI6kwCb/F6NS6rrP5QtEOdw4xry9IE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LS4p/flJ; 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="LS4p/flJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46485C433F1; Wed, 3 Apr 2024 14:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712156266; bh=p/miq+CGqAN6IPx9x+OosgS1G+vGexqwGnTB86l9BtY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LS4p/flJqL8ApuacMHMOA0Jnq0kwP37UKI+ognroDG6pfC+1rpqx4LXcA0bBgrvxN 3fl3SxvBY8/lkIr9FgmXCFP9CErtwFVl4pIhbLfMrOli/EZ8Ga8hEKZaXoHP+Mxa16 JW2RX0jkn4GhmZ6l+vX5uPXr6BqKg1ZNszRW2wn0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26721: drm/i915/dsc: Fix the macro that calculates DSCC_/DSCA_ PPS reg address Date: Wed, 3 Apr 2024 16:56:12 +0200 Message-ID: <2024040345-CVE-2024-26721-3377@gregkh> X-Mailer: git-send-email 2.44.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=2607; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p/miq+CGqAN6IPx9x+OosgS1G+vGexqwGnTB86l9BtY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8uR+DGBh8j4qU7P7Vu6suJmuKnU5gdOuiE+//nooIr lxxfuXljlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIrxPDfPd/ttv2JYTPCktr WL6mo5r5y87N7gzzI870XL72udYz1Yx3S9GHNa+vS0alAwA= 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/i915/dsc: Fix the macro that calculates DSCC_/DSCA_ PPS reg address Commit bd077259d0a9 ("drm/i915/vdsc: Add function to read any PPS register") defines a new macro to calculate the DSC PPS register addresses with PPS number as an input. This macro correctly calculates the addresses till PPS 11 since the addresses increment by 4. So in that case the following macro works correctly to give correct register address: _MMIO(_DSCA_PPS_0 + (pps) * 4) However after PPS 11, the register address for PPS 12 increments by 12 because of RC Buffer memory allocation in between. Because of this discontinuity in the address space, the macro calculates wrong addresses for PPS 12 - 16 resulting into incorrect DSC PPS parameter value read/writes causing DSC corruption. This fixes it by correcting this macro to add the offset of 12 for PPS >=12. v3: Add correct paranthesis for pps argument (Jani Nikula) (cherry picked from commit 6074be620c31dc2ae11af96a1a5ea95580976fb5) The Linux kernel CVE team has assigned CVE-2024-26721 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit bd077259d0a9 and fixed in 6.7.6 with commit ff5999fb03f4 Issue introduced in 6.7 with commit bd077259d0a9 and fixed in 6.8 with commit 962ac2dce56b 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-26721 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/i915/display/intel_vdsc_regs.h 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/ff5999fb03f467e1e7159f0ddb199c787f7512b9 https://git.kernel.org/stable/c/962ac2dce56bb3aad1f82a4bbe3ada57a020287c