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 195B0339705 for ; Wed, 24 Jun 2026 16:39:11 +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=1782319152; cv=none; b=svyIocEMaySWmnBYvqlRxsS23x1sOrjVjBLgvc/JM//zT+rk7l9oYkLwb+K804YWV0ixLDayePDJ+1l6egmPUTF77wzGPMBQ9yV19RKQlCT53nGwN8KE3owU0UhMcpk+EL85Eps77cNS8DHCQJK5PMPQLyoQUQEBOGIbpa78X9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319152; c=relaxed/simple; bh=9Vj98+Cc6nEL7YEdJvQCxwJAInymrMiH04dmaMkJ9Dg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oTu/zPloa7Qq6cggzU/PcCg1+x05Yt1oa8AdPXNbTqdo1A82fqr8hooLBfkgKIuTubCf2riLAuFat5PrtNH+8+R4Vh65FT2ygbvvqm4Pqv1LFduajuFzPHrVVFNwJ6t6+EoSR5t/VTFdt6xr1pKZqp3Ek6rmYQTEl+u5b37Vzmo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HsfwZsfG; 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="HsfwZsfG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EF361F000E9; Wed, 24 Jun 2026 16:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319151; bh=+Ljm8I0apUuZhVhMs8IGmr6zA0xWfbTyIIaohzMkx2Q=; h=From:To:Cc:Subject:Date:Reply-To; b=HsfwZsfGDLjGfooPxJBJCGuKVmDJCkj9Dv6Vr+DgsBeOv+KyEvA4ERRXId15vvOlI 8bDWadOCptm/IxXtoLpX4COtteghEKyFOOTcG8lKCN65fpWBFNqAkQ34MXDvCZ5nB+ 4ccpmNBIZxpZtiRaDXc1ODWFJ6Caak8wq7dkBMoE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53085: bpf: fix mm lifecycle in open-coded task_vma iterator Date: Wed, 24 Jun 2026 17:31:49 +0100 Message-ID: <2026062408-CVE-2026-53085-79c3@gregkh> X-Mailer: git-send-email 2.54.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=3215; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Rad3TpwH3kuJfMEio3JOe9HuQxAnBWyMgOWu6ccG1/Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bALdOwVP6YRqtv3jUJu1oqR7faxcCMO1aStnSk5qV r2YyWTSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPx+sewYIfN1oopH1vMFLaY 3HTYyZ+6eF8mJ8OCxbN+N+ctV9ZlUmBWZn49X+/S58mTAQ== 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 mm lifecycle in open-coded task_vma iterator The open-coded task_vma iterator reads task->mm locklessly and acquires mmap_read_trylock() but never calls mmget(). If the task exits concurrently, the mm_struct can be freed as it is not SLAB_TYPESAFE_BY_RCU, resulting in a use-after-free. Safely read task->mm with a trylock on alloc_lock and acquire an mm reference. Drop the reference via bpf_iter_mmput_async() in _destroy() and error paths. bpf_iter_mmput_async() is a local wrapper around mmput_async() with a fallback to mmput() on !CONFIG_MMU. Reject irqs-disabled contexts (including NMI) up front. Operations used by _next() and _destroy() (mmap_read_unlock, bpf_iter_mmput_async) take spinlocks with IRQs disabled (pool->lock, pi_lock). Running from NMI or from a tracepoint that fires with those locks held could deadlock. A trylock on alloc_lock is used instead of the blocking task_lock() (get_task_mm) to avoid a deadlock when a softirq BPF program iterates a task that already holds its alloc_lock on the same CPU. The Linux kernel CVE team has assigned CVE-2026-53085 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 6.12.91 with commit 239cec25a22662dbd80f57d94b38178c8be95269 Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 6.18.33 with commit d0862de7c866c5bd7c32531f66738c21197af888 Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 7.0.10 with commit 43683bb280330f3d36f0f2a3932a4867b9603e9c Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 7.1 with commit d8e27d2d22b6e2df3a0125b8c08e9aace38c954c 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-53085 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/239cec25a22662dbd80f57d94b38178c8be95269 https://git.kernel.org/stable/c/d0862de7c866c5bd7c32531f66738c21197af888 https://git.kernel.org/stable/c/43683bb280330f3d36f0f2a3932a4867b9603e9c https://git.kernel.org/stable/c/d8e27d2d22b6e2df3a0125b8c08e9aace38c954c