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 0AE6C1991CF for ; Thu, 6 Mar 2025 16:04:39 +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=1741277080; cv=none; b=slEFTPsII/okgW094wjeJzSXxtgtYiac8gRip7D8aEJcgBiGLgpXFq+krUUFWPWLEIWYKf1CHRSCZSbQULBGJNWVGABruRTx+0PI9VG2yQHviNMYoIdFkmWT/ztWksEwJ8M1w8R9keMkkCb5nE4pVfSc6tFdyBfP+OHW6gAf5OA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741277080; c=relaxed/simple; bh=D4n0Sh68mVMzrnvSMpy87DrsR8UpOw6PyohzvtqFF0w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KtQy5hHjVRBu7BSqYbLiuoMgBXK2bZQo+px0iBDHD+gDbj0SHYYX70wQttR4rvkbtxbLONDqldIkplfOLurG0aWQgJ8CFXrsvVfgVQ5bc4oHWfvdtPjF9vcof3rkvkXdvllNO4Bk1va+V0EbTFcEK2jOw2d4MBqLHPzc/yUtLBM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ueDg0Vl8; 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="ueDg0Vl8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE90EC4CEE0; Thu, 6 Mar 2025 16:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741277079; bh=D4n0Sh68mVMzrnvSMpy87DrsR8UpOw6PyohzvtqFF0w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ueDg0Vl87ICcPOSHsVJKpLQ+v/gWxPnyEi+ibGxaa9BFYwJXn4UdqFrzUbV3v+zhR 0DX0nf47IL9YnPLWw8QEPHAGz6Wx2HF6ey81Xcbg54tYWH/KOq8SR6G2cRsGvSBldH Bq3RGpKahe5ON8RkOEQ2ZvDYK2ld5+j+sn1AucHM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58074: drm/i915: Grab intel_display from the encoder to avoid potential oopsies Date: Thu, 6 Mar 2025 17:04:28 +0100 Message-ID: <2025030627-CVE-2024-58074-28c1@gregkh> X-Mailer: git-send-email 2.48.1 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=2139; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D4n0Sh68mVMzrnvSMpy87DrsR8UpOw6PyohzvtqFF0w=; b=owGbwMvMwCRo6H6F97bub03G02pJDOknj3cvyd54LsP5Lct3t3+5v5ZV259+dsgpNuWsF/Mlq 9VzOp0+dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVpswzE/ua7L4x2B2btOO /z/Kgqdcy11/4hHD/MJW+c0HHx3iOK4XXmmjlZ+19OSk+wA= 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: Grab intel_display from the encoder to avoid potential oopsies Grab the intel_display from 'encoder' rather than 'state' in the encoder hooks to avoid the massive footgun that is intel_sanitize_encoder(), which passes NULL as the 'state' argument to encoder .disable() and .post_disable(). TODO: figure out how to actually fix intel_sanitize_encoder()... The Linux kernel CVE team has assigned CVE-2024-58074 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a and fixed in 6.13.2 with commit 1885401569f24eb35c631bcc4e6543360dbe9292 Issue introduced in 6.12 with commit ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a and fixed in 6.14-rc1 with commit dc3806d9eb66d0105f8d55d462d4ef681d9eac59 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-58074 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_crt.c drivers/gpu/drm/i915/display/intel_tv.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/1885401569f24eb35c631bcc4e6543360dbe9292 https://git.kernel.org/stable/c/dc3806d9eb66d0105f8d55d462d4ef681d9eac59