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 80668190670 for ; Tue, 30 Jul 2024 07:50:56 +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=1722325856; cv=none; b=quvgM95KhxEiKfMZYfEKGKyYRUI7VoP4G7Ds5KHOJd0sgAaGb79xZYx7FWDCV09aoZ2FBGEd+yk+ZGTfDIBc5mQk1uhb3I4yXnJpuZxhGTGBcn248XpNTvz/GLBs8w2oJlOM2XB5DWNRRRLYIvYOtsCjoiAU5vb9v7onx6YSxN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325856; c=relaxed/simple; bh=L8qrec7gmYl21gz9jyHB438IkxN1N6egPL4ooIT3qPw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SIxquOJK/cEFtcVW6c6oTi7iniziPVJM42yZvb4qJbVt3cDJnBwdtyakuQGDl86ekTu/Zyi5jeBb7hGjAIJG//PwoPT891wz1ibLxUL4uW+9yJHYVebbXbH4FyDfUjqGuWvq1nvVrHD5WcyEY38Q4ZxT3gE5fd5Tm3V+/Juocbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vd+WPaLp; 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="vd+WPaLp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1D40C32782; Tue, 30 Jul 2024 07:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325856; bh=L8qrec7gmYl21gz9jyHB438IkxN1N6egPL4ooIT3qPw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vd+WPaLpsX2ySdt7WCzvBbeh5AGzyJP/bI+7YfPbaB8zkP65L6EW+gj+gr5fd1Tew CEqLAfPKmzPZ0srJtqFrLKZB50Eyr3ergTkE/nDmyMwaVkaiGqcqc7sOs20yP9WxfK dVK/iZTpyrCxIXCaRGKoImMVJCm3GjGHpo6HK6II= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42146: drm/xe: Add outer runtime_pm protection to xe_live_ktest@xe_dma_buf Date: Tue, 30 Jul 2024 09:48:04 +0200 Message-ID: <2024073032-CVE-2024-42146-cbd0@gregkh> X-Mailer: git-send-email 2.45.2 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=2163; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=L8qrec7gmYl21gz9jyHB438IkxN1N6egPL4ooIT3qPw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk35wabstmZ6cqdwlISXWk/WQtc5D2sWzWqxONATF Bjyd+umjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIRhTDgkVcloKzWyVMtf83 CR3wN21jsapwZpiftXS3w7N995vtLi9bkP+/sj5m4gQ9AA== 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: Add outer runtime_pm protection to xe_live_ktest@xe_dma_buf Any kunit doing any memory access should get their own runtime_pm outer references since they don't use the standard driver API entries. In special this dma_buf from the same driver. Found by pre-merge CI on adding WARN calls for unprotected inner callers: <6> [318.639739] # xe_dma_buf_kunit: running xe_test_dmabuf_import_same_driver <4> [318.639957] ------------[ cut here ]------------ <4> [318.639967] xe 0000:4d:00.0: Missing outer runtime PM protection <4> [318.640049] WARNING: CPU: 117 PID: 3832 at drivers/gpu/drm/xe/xe_pm.c:533 xe_pm_runtime_get_noresume+0x48/0x60 [xe] The Linux kernel CVE team has assigned CVE-2024-42146 to this issue. Affected and fixed versions =========================== Fixed in 6.9.9 with commit 0888d15ea45b Fixed in 6.10 with commit f9116f658a62 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-42146 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/tests/xe_dma_buf.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/0888d15ea45ba8ef4508edd1123ea5ad95b58994 https://git.kernel.org/stable/c/f9116f658a6217b101e3b4e89f845775b6fb05d9