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 F0DA85349A4 for ; Thu, 17 Sep 2026 16:38:46 +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=1789663128; cv=none; b=bQXb28AnvZWm2K4tAzjWm0+nYsXdLO7/SL2cIHM1rvFImUUWDh2nvRLMn8QeurRNYzJ72nGZ+zLZSOz2B14hBSvWcDA8xKLcC+H9mWKz96N/99K5RzBwXvJLU63Qfyil/mIeT+3kdcB0SOZ3cyF+Cx0ulKoh22Ir2ggtmh+o/4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663128; c=relaxed/simple; bh=Go1qHn7OAIESoRcgwAIikk485O7YLBJzcndoNyieNJA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bEn538KlG42Zm3LUO64RTrHLGQVgJ2ZtLeTj6Hpb+MHghl7vh0QlkAPQgrBx4kGvK4Bk7DdFlcWoC4BYVSI2l4yuTbA1VRg2ibJaSOLGAxIYTuRvFaonedNLQTINupX+kjWj5jHgLnY9R7KVtBhqgZvcU9hA9ii7zi9ndDUgIAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=alJ6FE1L; 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="alJ6FE1L" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D4A61F00893; Thu, 17 Sep 2026 16:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663126; bh=uD0Fg60qQQFuXT7oKzSxj8lBjudu5PPs201xwY2v8qk=; h=From:To:Cc:Subject:Date:Reply-To; b=alJ6FE1LgoVPXUOamzLYiw5PrTjq8UwfzZlyANfiMmqjY5WSckcHUbL1CJbJz87gF dXojzl0xy6aTlumtl8iufmYc7XK6icg6ZvSAHYYiB2rCJi156pBwAXuxt7tJhqqZM+ 3dnqPVKdp/HZqe4w2oHKylCawY9zDINS0XE6CowI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93137: bpf: Fix use-after-free on mm_struct in bpf_find_vma() Date: Thu, 17 Sep 2026 17:16:54 +0100 Message-ID: <2026091752-CVE-2026-93137-51a9@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=3813; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pf6Rq0URFJU82LY+YeDH0clKJV+CSMX0z9r1B1OeqhA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBC6YXNx5T7380GLrC27L2ZWuXq434gmsFbo4Z3EzZ 0/VPjabjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIrVyG2Wwbf09R/Pk1tEpQ 45GhE/92n8TGIoZ5uqbP8laFmMx8d/7CGhnp9UWGclu2AgA= 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: bpf: Fix use-after-free on mm_struct in bpf_find_vma() bpf_find_vma() reads task->mm and calls mmap_read_trylock(mm) without holding a reference on the mm. On a foreign task, a concurrent exit_mm() can free the mm_struct between the lockless read and the trylock, resulting in a use-after-free. mm_struct is not SLAB_TYPESAFE_BY_RCU. For the current task, task->mm is stable. For a foreign task, pin the mm under task->alloc_lock and release it with mmput_async(), mirroring commit d8e27d2d22b6 ("bpf: fix mm lifecycle in open-coded task_vma iterator"). Use spin_trylock() instead of get_task_mm() so BPF context does not block on alloc_lock. Reject irqs-disabled contexts and !CONFIG_MMU on the foreign-task path because dropping the mm reference is not safe there. Race: CPU0 (BPF program) CPU1 (exiting task) ============================ ========================== bpf_find_vma(foreign_task): mm = task->mm exit_mm(): task->mm = NULL mmput(mm) -> frees mm_struct mmap_read_trylock(mm) // UAF on mm The Linux kernel CVE team has assigned CVE-2026-93137 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 and fixed in 6.1.188 with commit db347840d6b6ee9bb9b8e4a985d4b4419f9f3200 Issue introduced in 5.17 with commit 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 and fixed in 6.6.157 with commit 8e1101fc4118019a69c96ced4aec93164f89cbd5 Issue introduced in 5.17 with commit 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 and fixed in 6.12.110 with commit c7ad910e987008e125eeff448892e86852173384 Issue introduced in 5.17 with commit 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 and fixed in 6.18.52 with commit 86d54cf069fc5ae2e111c87933bebf6eb527978e Issue introduced in 5.17 with commit 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 and fixed in 7.2.6 with commit 2b2a903bee56d312539046d9defa8023eec94760 Issue introduced in 5.17 with commit 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 and fixed in 7.3-rc1 with commit 47b079e2117a2ee52e21f8b72935900c702fc0b5 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-93137 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: kernel/bpf/task_iter.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/db347840d6b6ee9bb9b8e4a985d4b4419f9f3200 https://git.kernel.org/stable/c/8e1101fc4118019a69c96ced4aec93164f89cbd5 https://git.kernel.org/stable/c/c7ad910e987008e125eeff448892e86852173384 https://git.kernel.org/stable/c/86d54cf069fc5ae2e111c87933bebf6eb527978e https://git.kernel.org/stable/c/2b2a903bee56d312539046d9defa8023eec94760 https://git.kernel.org/stable/c/47b079e2117a2ee52e21f8b72935900c702fc0b5