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 B06F618DF6A for ; Fri, 27 Sep 2024 12:44:17 +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=1727441057; cv=none; b=mAsVmlOfFl7CZWGOqv500dVm1h/Is+lHw+rE2h17kzoOSKUgC80vDRo8IVkj+MRKEgPoT4yGHt4K5CEXsPlT6YhWnMA68l4BO+KeD4r9HnNQ4RAmyycpbww/aeJB8Hi0xNx50JCYqI9zYgPNRaeoa/OraIG4SBWHXdB1W+TSO8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727441057; c=relaxed/simple; bh=rHHWoK94nBksCxzBlWT4/cfoVlcN24twDjX7Y+LrxVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W3N18nIDv647CzHsV8fmyMaCkeXkuDScLloEU8b+jp4/eW4kxnF2O48eGQRPWFFggqWrCH5fwnEpSom7W0tUKiIkPuRJX1sE0AzdHYZhAe1bjjBc8LeWPoXNwuVJOuYR55JZvhdb8geulegMUqZV3zUEynqr1/OIkU7nnrNmejM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s1AQzNvz; 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="s1AQzNvz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC932C4CEC4; Fri, 27 Sep 2024 12:44:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727441057; bh=rHHWoK94nBksCxzBlWT4/cfoVlcN24twDjX7Y+LrxVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=s1AQzNvzUNm03Iw/heIjuzPGoeNp5T9lVB1OcaZbORjK2Ivki+TZEfduURtm6LbuS pLQknydXDgrKu2CoLHQFbjsbBCX0bNFadU+It+D1HL5u9AqTM1TjauYFfsYjzjoroA U40augIAS8efTmubyUEmNke5YZtRxYlPYngSnHzA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46866: drm/xe/client: add missing bo locking in show_meminfo() Date: Fri, 27 Sep 2024 14:43:59 +0200 Message-ID: <2024092746-CVE-2024-46866-c414@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=2098; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rHHWoK94nBksCxzBlWT4/cfoVlcN24twDjX7Y+LrxVM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfVjR57tid92Hbpz+ftyk+Vwk9LfHm73nVNwazf/3cw qPsx2TL1RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT8UxkWDBdapWKnBHHql9u dvHPi32mPfL4UMswh8/GrnJexmfFwM5io1+sZyucvFoCAQ== 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: add missing bo locking in show_meminfo() bo_meminfo() wants to inspect bo state like tt and the ttm resource, however this state can change at any point leading to stuff like NPD and UAF, if the bo lock is not held. Grab the bo lock when calling bo_meminfo(), ensuring we drop any spinlocks first. In the case of object_idr we now also need to hold a ref. v2 (MattB) - Also add xe_bo_assert_held() (cherry picked from commit 4f63d712fa104c3ebefcb289d1e733e86d8698c7) The Linux kernel CVE team has assigned CVE-2024-46866 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 0845233388f8 and fixed in 6.10.11 with commit abc8feacacf8 Issue introduced in 6.8 with commit 0845233388f8 and fixed in 6.11 with commit 94c4aa266111 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-46866 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/abc8feacacf8fae10eecf6fea7865e8c1fee419c https://git.kernel.org/stable/c/94c4aa266111262c96c98f822d1bccc494786fee