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 C6DC243172 for ; Wed, 18 Jun 2025 11:02:35 +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=1750244558; cv=none; b=nk5GvzMJYGo6z78F4TrQ5wCkYjTcsPriEcsod8f5/5ej92EEEV0kFGM/XMbXB0dYhcuRd9zgzQlbPnHJ71we6WZg2Q5HCSCdEWEzUHwFsRpuwk28IBRW+lTy/qq5gOVKykK/FG2v7OAhEBdUP1WlxCgS8TW3iZLUV4iu71menfM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244558; c=relaxed/simple; bh=OGZrATgkY7NCe8jtQgoeOXJB0bywjQZF/5+Tce8obpo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PgOOxBvkxZYvGuB9V0idKdKzdkuGUl4GCR6SU5t0qDa7FM1ceN0VUQmpwTPZgcZ/iQsGj9Vfimx4PwpjzIXCq6AswH8tQBBeNk8Mo70mgzzPpSayUs3ch9qJufpgdDYCYFQGh7W9vvP665mb4pOR7UHHz+/u6bhObEWkA5aqsYk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P2O7gvVl; 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="P2O7gvVl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B636C4CEE7; Wed, 18 Jun 2025 11:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244555; bh=OGZrATgkY7NCe8jtQgoeOXJB0bywjQZF/5+Tce8obpo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P2O7gvVlZZcxVKgVkQyUhnpCvGkiOAxC8635mW/LdnzK09TsluRIGLX5imOLguqJf 2pIqpwVf48DdI23Cb/peR1wtF+Ho4vF2HxmcNNOz63H8z5rFqvOgxVtNdCHc4kZzu0 7dq7v3VxJBsv6J5db+X4dKHyxU5J3ZlsxR+7X5s4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49960: drm/i915: fix null pointer dereference Date: Wed, 18 Jun 2025 13:00:25 +0200 Message-ID: <2025061813-CVE-2022-49960-d554@gregkh> X-Mailer: git-send-email 2.49.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=3599; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WFcIhJIU8ar0kvR6KOEIXiqYhLQKlzrrcBr+0mO5vAw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc2xZ7m8/0y7N6FVUn5Vyb50308/pFk86jnf9ejBFc vtT09a0jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI5jyG+aFLXOxn5ifmvKxb ZMT8qci2vmPPbYa5EkqXV1TrHZx1QujjK74H2691zTd7DQA= 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: fix null pointer dereference Asus chromebook CX550 crashes during boot on v5.17-rc1 kernel. The root cause is null pointer defeference of bi_next in tgl_get_bw_info() in drivers/gpu/drm/i915/display/intel_bw.c. BUG: kernel NULL pointer dereference, address: 000000000000002e PGD 0 P4D 0 Oops: 0002 [#1] PREEMPT SMP NOPTI CPU: 0 PID: 1 Comm: swapper/0 Tainted: G U 5.17.0-rc1 Hardware name: Google Delbin/Delbin, BIOS Google_Delbin.13672.156.3 05/14/2021 RIP: 0010:tgl_get_bw_info+0x2de/0x510 ... [ 2.554467] Call Trace: [ 2.554467] [ 2.554467] intel_bw_init_hw+0x14a/0x434 [ 2.554467] ? _printk+0x59/0x73 [ 2.554467] ? _dev_err+0x77/0x91 [ 2.554467] i915_driver_hw_probe+0x329/0x33e [ 2.554467] i915_driver_probe+0x4c8/0x638 [ 2.554467] i915_pci_probe+0xf8/0x14e [ 2.554467] ? _raw_spin_unlock_irqrestore+0x12/0x2c [ 2.554467] pci_device_probe+0xaa/0x142 [ 2.554467] really_probe+0x13f/0x2f4 [ 2.554467] __driver_probe_device+0x9e/0xd3 [ 2.554467] driver_probe_device+0x24/0x7c [ 2.554467] __driver_attach+0xba/0xcf [ 2.554467] ? driver_attach+0x1f/0x1f [ 2.554467] bus_for_each_dev+0x8c/0xc0 [ 2.554467] bus_add_driver+0x11b/0x1f7 [ 2.554467] driver_register+0x60/0xea [ 2.554467] ? mipi_dsi_bus_init+0x16/0x16 [ 2.554467] i915_init+0x2c/0xb9 [ 2.554467] ? mipi_dsi_bus_init+0x16/0x16 [ 2.554467] do_one_initcall+0x12e/0x2b3 [ 2.554467] do_initcall_level+0xd6/0xf3 [ 2.554467] do_initcalls+0x4e/0x79 [ 2.554467] kernel_init_freeable+0xed/0x14d [ 2.554467] ? rest_init+0xc1/0xc1 [ 2.554467] kernel_init+0x1a/0x120 [ 2.554467] ret_from_fork+0x1f/0x30 [ 2.554467] ... Kernel panic - not syncing: Fatal exception (cherry picked from commit c247cd03898c4c43c3bce6d4014730403bc13032) The Linux kernel CVE team has assigned CVE-2022-49960 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit c64a9a7c05beb2b71b7496d873654f88e1a08593 and fixed in 5.19.8 with commit c2798203315f4729bab0b917bf4c17a159abf9f8 Issue introduced in 5.17 with commit c64a9a7c05beb2b71b7496d873654f88e1a08593 and fixed in 6.0 with commit 458ec0c8f35963626ccd51c3d50b752de5f1b9d4 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-2022-49960 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_bw.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/c2798203315f4729bab0b917bf4c17a159abf9f8 https://git.kernel.org/stable/c/458ec0c8f35963626ccd51c3d50b752de5f1b9d4