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 796DA1A275 for ; Fri, 24 Apr 2026 14:37:54 +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=1777041474; cv=none; b=JPWD2s0BXUe7jjvXqlteVAlhYFSexZRfUjXaLGeEpCIR31BaZKwEBXPwG8+/5J62hs3u8J9fF+HtXWyRIlM5IHTuoY2svx9eqt1toCa/xN1n5FcteH9lQouQViuEoeVv2p+Pz2Ha24ME48gf+KmJBGgIIusYy+1cLEkcz4F1D3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041474; c=relaxed/simple; bh=5vomKpCcC2zQWFXRC4VEKwbEF0uhh1/EF8sOESnmSwM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B1+JT/UWKeL/fbjqU2Nw52gqbaCGaSUltP1utmCcZysDk2MmXYZ+nak4Yw/4NVp7DvrsK5kl9O8ClEQSaWmrV5nIgagRq/cnM7Z74FdXwiDg5VJAlFM/drW40HItoot9ntXTp7N7BbFm7PUXJ+NEagRJqgNNU7FGIChVd99wuYs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hL0T3ra3; 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="hL0T3ra3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04D0CC19425; Fri, 24 Apr 2026 14:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041474; bh=5vomKpCcC2zQWFXRC4VEKwbEF0uhh1/EF8sOESnmSwM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hL0T3ra3Fec1temMY4xHSn5PZBwjFRVKuFN5V6pDP/8gzYefNTeS5tzNReKROhWTb +5nu6b8wmSSeAJL0eJLjaMBUGI2m04Vx4Rp4+H6LuS3x48sGmruKaI8kpSw9omZ+sD MHR287+h49hq9KckbSNqv04khK69eRKleE8yJlBw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31571: drm/i915: Unlink NV12 planes earlier Date: Fri, 24 Apr 2026 16:36:15 +0200 Message-ID: <2026042402-CVE-2026-31571-41f9@gregkh> X-Mailer: git-send-email 2.53.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=2950; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Sol4UTwC7O78/bumOfIxZEbdDUYw7UNiGn/8VimVvag=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv6y8t03dwCrSfVzulf3foyVzRs75JH8qtWYu8n6yrT HWz1cvviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlwqTEsOHhK7dYPmbsna++q T66+tlPfkLXKgGEOl6JKj9+WYu7Hcbt907I3nP1/SnM5AA== 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/i915: Unlink NV12 planes earlier unlink_nv12_plane() will clobber parts of the plane state potentially already set up by plane_atomic_check(), so we must make sure not to call the two in the wrong order. The problem happens when a plane previously selected as a Y plane is now configured as a normal plane by user space. plane_atomic_check() will first compute the proper plane state based on the userspace request, and unlink_nv12_plane() later clears some of the state. This used to work on account of unlink_nv12_plane() skipping the state clearing based on the plane visibility. But I removed that check, thinking it was an impossible situation. Now when that situation happens unlink_nv12_plane() will just WARN and proceed to clobber the state. Rather than reverting to the old way of doing things, I think it's more clear if we unlink the NV12 planes before we even compute the new plane state. (cherry picked from commit 017ecd04985573eeeb0745fa2c23896fb22ee0cc) The Linux kernel CVE team has assigned CVE-2026-31571 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 6a01df2f1b2a3b29721143729a3feff816bc0083 and fixed in 6.18.21 with commit 70e2eb91cb6310a3508439f6f2539dfffa0abf77 Issue introduced in 6.15 with commit 6a01df2f1b2a3b29721143729a3feff816bc0083 and fixed in 6.19.11 with commit 12f3b6cbab8fbeb95097685b40f0147406cf9746 Issue introduced in 6.15 with commit 6a01df2f1b2a3b29721143729a3feff816bc0083 and fixed in 7.0 with commit bfa71b7a9dc6b5b8af157686e03308291141d00c 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-31571 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_plane.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/70e2eb91cb6310a3508439f6f2539dfffa0abf77 https://git.kernel.org/stable/c/12f3b6cbab8fbeb95097685b40f0147406cf9746 https://git.kernel.org/stable/c/bfa71b7a9dc6b5b8af157686e03308291141d00c