Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100525; b=nkRR7iGgtYbNimfg4NidQlhaSk4HFBl5xIVV4dXciQSfAINgvILhCqwWaOJedrtGEdzB 5xfKO1nOBh7afpx86fi/9PwrtCup9NFARxaXEXICdV9MWZDpjPVhpGQnZ6czPrmUhZtYp zfiUPPU9DuJpGQEJDz2dNn1so1jw9Zi16gP2+KV8GuAKEImBEEO4EoRGe4Bu5otkBKZNV BoRSz3ISx+d6LGyMaEFA/uElfYrAkLfrwLnKoj9/+ip3oQZ5/qsKFrX9N8sVpgObsqKbJ 8qHdKTOan0aR1H5FCJiYXneyuC0mFcOEUl4zxQomhl7oVYK9ovNvf3g2GZOrfLY4Z8g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100525; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=/PDe6GU0PPN8SsXRGtHfpzGfJcGVRsvpvXkqrXjeaU8=; b=az5FiYPbNsp2So8Y5V4UmrLcysvFKOkqQodV77gqxyVQvw8jyvjx+HBJ63J6Ei6goz6L 4PRxbWiBd3ntAk1oIa9Eu+VvHddUZJVtHyjAFR8CnDh4AWldC+tY+Zah2XmHWdCcEbsU2 5cGIdGW/gyZ0rQMJ+uHWKwWQwn6qaeI43bS4p/kEuMsv1cf2srvW2QXQhAy5USwI/B39p PuSr32/Uqk/MIEnVYf+kWlsAKqKgEFAmVD9ORgzrQi3Y5NPiYH0w2oJ2JnSCk7TAbC1U8 FHXUosJqEC0IV4UeL0TEA8eFFjK9lQKA4UMR5xBbPKP/3daEdx1LfBcR3NJdlvwDdZg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Cu9erupJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBC5B606A320 for ; Thu, 19 Nov 2026 15:02:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Cu9erupJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DACA1F000C4; Thu, 19 Nov 2026 15:02:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100524; bh=/PDe6GU0PPN8SsXRGtHfpzGfJcGVRsvpvXkqrXjeaU8=; h=From:To:Cc:Subject:Date:Reply-To; b=Cu9erupJTQ4EIHa5dTOenJNb7B2hJm7S3NNOjIv1crSVREGJKiGJ3AEg7Zz5O/5bZ 75DWYGRxHCE2ng7EHPpXDJNExVvy39BgC2ltnuC/5vBU1D9e5aY2iQAMx9H3y/J/rH YjYnJ1JRFmg6gBb8a08wXOs+6/3lilhycPLTyKSI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99523: RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup Date: Thu, 19 Nov 2026 15:27:01 +0100 Message-ID: <2026111920-CVE-2026-99523-5fcb@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3355; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IKIJtg0fKsHrfUhT/JxRxEq++G1pgnB0VXyV5w+3NVs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2ab0Trhixdu0O+Umi7i/qufXpk3NeY1LCl0Pt+zpW iutnKPeEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOZvoRhfmHcpam7/T4dPvpQ qGhuotL3OdVihxjmJzdN6PP6L8RW3C505I7Es7xlD8/HAQA= 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: RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup The DMABUF release can race with ufile cleanup. When the cleanup holds hw_destroy_rwsem for write, uverbs_uobject_release() fails its trylock and leaves the uobject on the ufile list, but the dma_buf is freed as soon as the release returns. The cleanup then destroys the uobject and uses the freed dma_buf: BUG: KASAN: slab-use-after-free in uverbs_dmabuf_fd_destroy_uobj+0x46/0x200 Read of size 8 at addr ff11000109cf14b0 by task repro/435 Call Trace: uverbs_dmabuf_fd_destroy_uobj+0x46/0x200 destroy_hw_fd_uobject+0x3f/0x50 uverbs_destroy_uobject+0xc5/0x380 __uverbs_cleanup_ufile+0x1a8/0x260 uverbs_destroy_ufile_hw+0x54/0x160 ib_uverbs_close+0x34/0x110 Allocated by task 435: dma_buf_export+0x1b5/0x530 ib_uverbs_handler_UVERBS_METHOD_DMABUF_ALLOC+0x223/0x3f0 Freed by task 436: kfree+0x301/0x530 dentry_kill+0x14c/0x560 __fput+0x23a/0x4a0 rdma_user_mmap_entry_remove() dereferences the same pointer. Protect the stored dma_buf pointer with a mutex and clear it before release returns. Use a shared revoke helper so uobject destruction and mmap entry removal both skip a cleared pointer. Hold a temporary uobject reference across uverbs_uobject_release() and the pointer update. Use a separate mutex because uobject destruction can free the mmap entry before release finishes. Map and unmap use attachment->dmabuf directly, so they do not need to take the new mutex while holding the reservation lock. The Linux kernel CVE team has assigned CVE-2026-99523 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 and fixed in 7.3.2 with commit 0b6d8b41af154b1137efb578afb8c8fc39d136aa Issue introduced in 7.0 with commit 0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 and fixed in 7.4-rc1 with commit 2854f9025d4ef6c4566f71e52d7f496d9a0f5737 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-99523 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/infiniband/core/ib_core_uverbs.c drivers/infiniband/core/uverbs.h drivers/infiniband/core/uverbs_std_types_dmabuf.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/0b6d8b41af154b1137efb578afb8c8fc39d136aa https://git.kernel.org/stable/c/2854f9025d4ef6c4566f71e52d7f496d9a0f5737