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 294B01E764A for ; Wed, 4 Sep 2024 19:57:40 +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=1725479862; cv=none; b=XV1PxMXwiIm4QlhXlshAhtiVNimGBDw7SSDcJr1ofGwvRPFtvZjPT+tg+Ups97VMOybvPye4RextBDCJvUhzxiTl0scs9jrz422Y/S0ztkbahxB9uAF+EduyN8v50S52mpBoiPfwZhZbmEOa3y0Bg4gcodgeUPWXMjWcNdEXlkw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479862; c=relaxed/simple; bh=h+7sjj5CaTKgsaWdlyeQJ8l4Gdpsx7HfD6wo+Qh2URE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UYSOrh1yGsSsHUgdYw+ZqmCigamAGU4+cNbhVK9jfI7LW0Ho5v3HCGUzb5jdqnF4pwpMb3+BOwNrC+QHgpdVHYwh3bnkktT/RNEMXEgfxnWVcIYQesGO6aiUzP45xWArOvbou15l75qCM6kwRU3IUVj3tsCGbOe241K9kbNVSxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FS0ADaZb; 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="FS0ADaZb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E8A2C4CEC2; Wed, 4 Sep 2024 19:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479860; bh=h+7sjj5CaTKgsaWdlyeQJ8l4Gdpsx7HfD6wo+Qh2URE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FS0ADaZb3s8LBUnGVAKkJCXqemwGLM4WtM9kA6niLktJMYUHH+XAdOxIitFaKIalO qj4Cu/nKG8PdNiAgyC+LXw0BIWXh19svdIWnNmCvNea25ELMemqNl+5oGD0zFxr22H t9WFd/AQNMZXRtLbjNVNXAoV3KcjSVYUKDcaLwrs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44980: drm/xe: Fix opregion leak Date: Wed, 4 Sep 2024 21:56:45 +0200 Message-ID: <2024090443-CVE-2024-44980-d1ba@gregkh> X-Mailer: git-send-email 2.46.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=3040; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h+7sjj5CaTKgsaWdlyeQJ8l4Gdpsx7HfD6wo+Qh2URE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3dtcwqC7KkLlX8d79tAVTo/56iXMaLxp2RX9P2u6rM G1tlOvrjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE9gQLk4BmMgiU4b5idPmq96q/Bw7KevK yoq8f4teP2ALZVhwaaq6/Jf5X2zKPb5XacXHatYuz+wFAA== 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/xe: Fix opregion leak Being part o the display, ideally the setup and cleanup would be done by display itself. However this is a bigger refactor that needs to be done on both i915 and xe. For now, just fix the leak: unreferenced object 0xffff8881a0300008 (size 192): comm "modprobe", pid 4354, jiffies 4295647021 hex dump (first 32 bytes): 00 00 87 27 81 88 ff ff 18 80 9b 00 00 c9 ff ff ...'............ 18 81 9b 00 00 c9 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc 99260e31): [] kmemleak_alloc+0x4b/0x80 [] kmalloc_trace_noprof+0x312/0x3d0 [] intel_opregion_setup+0x89/0x700 [xe] [] xe_display_init_noirq+0x2f/0x90 [xe] [] xe_device_probe+0x7a3/0xbf0 [xe] [] xe_pci_probe+0x333/0x5b0 [xe] [] local_pci_probe+0x48/0xb0 [] pci_device_probe+0xc8/0x280 [] really_probe+0xf8/0x390 [] __driver_probe_device+0x8a/0x170 [] driver_probe_device+0x23/0xb0 [] __driver_attach+0xc7/0x190 [] bus_for_each_dev+0x7d/0xd0 [] driver_attach+0x1e/0x30 [] bus_add_driver+0x117/0x250 (cherry picked from commit 6f4e43a2f771b737d991142ec4f6d4b7ff31fbb4) The Linux kernel CVE team has assigned CVE-2024-44980 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 44e694958b95 and fixed in 6.10.7 with commit f7ecdd9853dd Issue introduced in 6.8 with commit 44e694958b95 and fixed in 6.11-rc5 with commit f4b2a0ae1a31 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-44980 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/xe/display/xe_display.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/f7ecdd9853dd9f34e7cdfdadfb70b8f40644ebb4 https://git.kernel.org/stable/c/f4b2a0ae1a31fd3d1b5ca18ee08319b479cf9b5f