Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9D8CD492525 for ; Fri, 25 Sep 2026 10:29:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332172; cv=none; b=t9Dh8gQaRxu0vjLo88aLefygNprioSCagwJixtxtiTQdz1SHBf1+CdrROvHYJrNMb9eG8V2Np2mFuZNLQOrDkwf9Mz4qSJbCddYkhS52nUJnom3MAVH1V37xSIbaXPexIZOTyU6nm7epCjSRu55Ju+/YWG7jfsSZyPe2m9E+sWM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332172; c=relaxed/simple; bh=wdKD+9VxbhnHL42O4+uMJBtvx6hBnWqwLRON9Sn2fQo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g6+96/BbzyhrAMAeG5Wxoa575WOn3RpzDgEYljjlX2E79A64NVmNf7wyrlZfNUVi/E9DouvT1rIlgJpHKc6HvapwhHHcWFyOA+I8LY/hEUW8RUFaFaSPk0yLH57Qsrl6sXyQC3G9i6CGBYSTgGveDxnMnKLfEQbosU1orBWYiMc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fPjeh2ZS; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fPjeh2ZS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 019E61F000FF; Fri, 25 Sep 2026 10:29:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332171; bh=++mvIOmGMFXP0AVnGDvhtu86XrKiBL+8Qt5xdQGjQc4=; h=From:To:Cc:Subject:Date:Reply-To; b=fPjeh2ZS3Uo7NNVe1WHy4XzRMYOebzhmVghIXyVLge40kJq3J/puDbDtxYUTRmeJR FMvgw3t1i+89ywVZe8NdihBOSFO9ShqlkvGGYzrxbSccSA04Q/0Fyuk8lDukq1wEIk QIZbNc7PysNzFB02F4OacNQsQh3DexmFBJ5spu2A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97900: drm/drm_exec: fix up contended obj when num_objects is 0 Date: Fri, 25 Sep 2026 12:23:23 +0200 Message-ID: <2026092504-CVE-2026-97900-048c@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3305; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IkpCD126eR+vDL3gELakf1jA+QI5Pyxs9oCZcozgoKI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvH2uPE6Y8HuLtiBXReM2e4FjxQbLzyXv9zdmeK4u7 F2wZ97VjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI1S2GOTzGp7c/Wb5ox5T5 S7TZ21UP3W+pt2eYxXT0xmfeL+tzdy24fGm9ZKTd/x+lkwA= 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/drm_exec: fix up contended obj when num_objects is 0 drm_exec_prepare_array() silently returns success without calling drm_exec_lock_contended() when num_objects is zero. This breaks the invariant upheld by drm_exec_lock_obj(), where every entry point into the locking sequence must first attempt to lock any previously contended object before proceeding. Drivers that chain multiple drm_exec_prepare_array() calls per drm_exec_until_all_locked() iteration (e.g. amdgpu's userq signal/wait ioctls, which prepare separate read and write BO arrays) can pass an empty array for one of the two calls. If contention is hit while preparing the non-empty array, exec->contended is set and the loop retries; on retry, the empty-array call preceding it is a no-op that never clears exec->contended, so drm_exec_retry_on_contention() immediately jumps back to the top of the loop without ever reaching the call that would resolve the contention. This spins forever. Fix it by having drm_exec_prepare_array() call drm_exec_lock_contended() directly when num_objects is zero, so a pending contended object dont loop infinitely. The Linux kernel CVE team has assigned CVE-2026-97900 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 09593216bff15866f95c8ad406cb7fdcec1ee40a and fixed in 6.12.111 with commit 831cd124ce99c3e61266bed30519d52f7c26abed Issue introduced in 6.6 with commit 09593216bff15866f95c8ad406cb7fdcec1ee40a and fixed in 6.18.53 with commit f3e74866018dab793ebee1fdf0ef34f7271d1f8c Issue introduced in 6.6 with commit 09593216bff15866f95c8ad406cb7fdcec1ee40a and fixed in 7.2.7 with commit a565022c02f218ec9789c2baf4690792e7a48cbb Issue introduced in 6.6 with commit 09593216bff15866f95c8ad406cb7fdcec1ee40a and fixed in 7.3-rc3 with commit 159720704d9d652b64390c11fb971e15b0a78d23 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-2026-97900 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/drm_exec.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/831cd124ce99c3e61266bed30519d52f7c26abed https://git.kernel.org/stable/c/f3e74866018dab793ebee1fdf0ef34f7271d1f8c https://git.kernel.org/stable/c/a565022c02f218ec9789c2baf4690792e7a48cbb https://git.kernel.org/stable/c/159720704d9d652b64390c11fb971e15b0a78d23