From mboxrd@z Thu Jan 1 00:00:00 1970 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 71366585974 for ; Fri, 11 Sep 2026 20:06:24 +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=1789157189; cv=none; b=WD1lJbnme+EIE0wZbw+vDKbTgAslWjg+FhmWFdZth4yHEE8dJy0/1Q9ticyyM5EGOjnF+dvG4pFvXaZowteaS8VEbLeychQCL9oO5c3cT3qylc03NKFt4B+SVQBhEp89RnxEP6jcbeQS1WTZeuvSa4hEUT9KPyFyElVxJQaW5mU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789157189; c=relaxed/simple; bh=TJojjBWjCXK9oeceribAtXswqi0EanOAubjVHnrAsfs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tk0mC2HsVZ3vDoJtLWu3Y2WTxgDJZ0qm99AAi1CmdR7WGr1EQnrJ32bKOYd+gseekfVjJiCxCLv6/o5Ochble2sy9ieuar9k9agp0CqsLcvZ4AMpSS42Rs/xp4WmE7NI04Ypp3nnFH7vgQQocMOVZwsMzFdZp3bop7DpYNL127A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I+Nn5g3/; 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="I+Nn5g3/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 369E11F00898; Fri, 11 Sep 2026 20:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789157184; bh=jTPnDBt0cNPSc1FHbIGLKcFFMEr6z2rJHpXMi8fzf2w=; h=From:To:Cc:Subject:Date:Reply-To; b=I+Nn5g3/CV3EmOhJApo1HbIKyBp/0rcR0yaa/3y4Zd0kbsXMjRg6Luy85/99hX+Ab WOxM9fIpvC7UF3dTreoomECVJ+YNFqqspqTfCsPsXQQyEpsiy22b23JaxZXPQ8VfYf 9xrHDOLuG85iLSgpDBC+p1u1bvXrFN7bV8nbozdA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89764: rust: devres: fix race between concurrent revokers Date: Fri, 11 Sep 2026 21:47:33 +0200 Message-ID: <2026091110-CVE-2026-89764-1bdb@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=2652; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SgTyuWm5kHXQeXFGTo32NQdUzpdmXcqS6ZTSTRNRwqE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIifNV93xbpLMlZrLbE8unCz9mhDActiVd6FgmeLFr NvbJY2aOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisjsYFsxYbZOaHrF1h96F Xee3Ltz5fsaiOEGGBTciL/N6xzbvbtp8ImGm3JpvFfEvwwA= 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: rust: devres: fix race between concurrent revokers There is a potential race condition when two paths try to revoke a Devres concurrently. The driver core's devres_release_all() calls Revocable::revoke() via the release callback, while Devres::drop() calls revoke_nosync() on another CPU. The revoker that does not claim the is_available swap returns immediately, but the revoker that did may still be executing drop_in_place() on the inner data. This can cause a use-after-free when the other revoker's caller proceeds to drop adjacent resources that drop_in_place() still references (e.g., Devres racing with SGTable freeing the backing sg_table and pages). Fix this by adding a Completion. The release callback signals the Completion after revoke() finishes, and Devres::drop() waits for it when it loses the is_available swap. This ensures the wrapped object is fully torn down before Devres::drop() returns. The Linux kernel CVE team has assigned CVE-2026-89764 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 05aa6fb1c21d7fb9df735da24096d793223789d5 and fixed in 7.2.4 with commit c7e3d57c705ab1053a6a1bbef96795e792da1540 Issue introduced in 6.18 with commit 05aa6fb1c21d7fb9df735da24096d793223789d5 and fixed in 7.3-rc1 with commit acc516dfa1972d31836b50abc0115216cd0fccc5 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-89764 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: rust/kernel/devres.rs 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/c7e3d57c705ab1053a6a1bbef96795e792da1540 https://git.kernel.org/stable/c/acc516dfa1972d31836b50abc0115216cd0fccc5