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 9442418DF7D for ; Fri, 27 Sep 2024 12:44:20 +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=1727441060; cv=none; b=Us5eQy9Me0tq812WDOBUSXU/i1MY7MJXBZJbbPJWzzzAod+xR7sSCuP+UUZFbE5bXpAzdnVmFkEjDVCLHU+BpoQ7eMreKIIxjZnPH7v2+BMv4HmL2/UzpdpW5kkMEoFc9p7hIAUhyBFNl/7hYwWI6oabG6+gbVtFQhKdtLKzQ+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727441060; c=relaxed/simple; bh=zfBW8mW1czKdKdthGNta3BwBoahHPKXmW7ohyhFGUd4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RB/XkWnQVIETnK2Y7tgh5U7EjlR/VgLX5pOSWEo00zgOtsjt7E08MOUWe+s+rNKGgyhpDNX/Us5WXEWiPHaOeMtyhoTMuy5wz57FYkhfxWlTPiGtwKb7f7qYKNT3jw2Ho4Wq4K+0pLVOj3Qo/nmeKb6BF7woVhQFExZsk+2p88Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dH6mNu/6; 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="dH6mNu/6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B677FC4CEC4; Fri, 27 Sep 2024 12:44:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727441060; bh=zfBW8mW1czKdKdthGNta3BwBoahHPKXmW7ohyhFGUd4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dH6mNu/6BIVF5lG4Zshz4xM0GRYadMZ7/eOAnZvmyQcq7bkzxU5PxMBuRfEvWCCow /dJqGtsBGTFAeop9WYjC0suY7mUzKN3UQ80CI7LYZ1EE7Co6DAyxxcXMbh9Zt/CQaS GsedQNrrAQdac27PEcoWHkjQ0oPHabDcyt34KGfM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46867: drm/xe/client: fix deadlock in show_meminfo() Date: Fri, 27 Sep 2024 14:44:00 +0200 Message-ID: <2024092746-CVE-2024-46867-7fe4@gregkh> X-Mailer: git-send-email 2.46.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=2184; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zfBW8mW1czKdKdthGNta3BwBoahHPKXmW7ohyhFGUd4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfVjSdvXPD2bpqzXet+YotqxK95oQKKN/Nv/ZP5M2zm 4EiElFbOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi2y0Y5konsS8TerQqo8SO I0D43qYtz4KKvzHMFZ92z/neqg+/AnzYpotXZroWXGxnBgA= 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/client: fix deadlock in show_meminfo() There is a real deadlock as well as sleeping in atomic() bug in here, if the bo put happens to be the last ref, since bo destruction wants to grab the same spinlock and sleeping locks. Fix that by dropping the ref using xe_bo_put_deferred(), and moving the final commit outside of the lock. Dropping the lock around the put is tricky since the bo can go out of scope and delete itself from the list, making it difficult to navigate to the next list entry. (cherry picked from commit 0083b8e6f11d7662283a267d4ce7c966812ffd8a) The Linux kernel CVE team has assigned CVE-2024-46867 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 0845233388f8 and fixed in 6.10.11 with commit 9d3de463e23b Issue introduced in 6.8 with commit 0845233388f8 and fixed in 6.11 with commit 9bd7ff293fc8 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-46867 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/xe_drm_client.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/9d3de463e23bfb1ff1567a32b099b1b3e5286a48 https://git.kernel.org/stable/c/9bd7ff293fc84792514aeafa06c5a17f05cb5f4b