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 C38E8334C3C for ; Wed, 24 Jun 2026 16:39:07 +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=1782319148; cv=none; b=c5MLl4Q8q7p2/xZ6X+xkzJhx/tpQZug1C4hUhABTeN8U+pGxvpgdR+RmsakAYwMPypT2+rUW0M/ADOwxaB8ihsr0drQdUTQmOKC1Reu62iEvxkLL3KYhLb8v+omqrVeBlpdqCkH1uqVW5G+N/BlKeNA1aVhJvGEjChjF05UnBAQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319148; c=relaxed/simple; bh=xtd9D9pS9XEzXxA+LyIwUz02SliQnUupgc/uwJDhcew=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g6WR5qRnFJD+rCRmlTl2ryFHhqmhMXL7OfJFRM5gWTnXNMBNa9dEHU81/s7Wo30JTCs7rgsYQwTiQ8Dn/64+5/X5wPxH9ptd3QXjPUDvrZKigI6S9rd5BRjqZ9l0Jk6+N8UWep51pE3V4FfZKyHZUzPjnB6I8zD7uGy7XHPuTZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=et+s4WJU; 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="et+s4WJU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15B071F00A3A; Wed, 24 Jun 2026 16:39:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319147; bh=Dbdw+6GudBf5x4ml8Cq9Z+EMhjhKSrvjQ/IrlkKw1S0=; h=From:To:Cc:Subject:Date:Reply-To; b=et+s4WJU5H4mkyBZyR+KehtiIavXTcuUnMITL+FTCmnSQAdtEeRx56a6rMtHJQ1pN xzPMGy0g8Z4ChWfNSjI9GDs66z5k3Rdu9hBkjBe5zuLJ0SfPRli/QDMxf0UITFzFoN AbtoHt6EmONNVg1U51Um1JVASDC7OeLf255i0O/g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53084: bpf: return VMA snapshot from task_vma iterator Date: Wed, 24 Jun 2026 17:31:48 +0100 Message-ID: <2026062407-CVE-2026-53084-15d3@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=2951; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=reHiCjF7SdMrypPa+psM/A1C2iT4Jlm/cwkhLAJEiAQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bPzdue3v5/h121yaeOv5QobvZ7em/cvePv/rPM+pg UyVnKGfOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiH2YxzC9p+duySUJD0H3W Vm3lDW4bvLPmCDAsOPhP7vSb+s0J2SkNNlrzBARqp/EWAQA= 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: return VMA snapshot from task_vma iterator Holding the per-VMA lock across the BPF program body creates a lock ordering problem when helpers acquire locks that depend on mmap_lock: vm_lock -> i_rwsem -> mmap_lock -> vm_lock Snapshot the VMA under the per-VMA lock in _next() via memcpy(), then drop the lock before returning. The BPF program accesses only the snapshot. The verifier only trusts vm_mm and vm_file pointers (see BTF_TYPE_SAFE_TRUSTED_OR_NULL in verifier.c). vm_file is reference- counted with get_file() under the lock and released via fput() on the next iteration or in _destroy(). vm_mm is already correct because lock_vma_under_rcu() verifies vma->vm_mm == mm. All other pointers are left as-is by memcpy() since the verifier treats them as untrusted. The Linux kernel CVE team has assigned CVE-2026-53084 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 6.12.91 with commit 83b8802c034e843b83a3e1ef6f30cdd4e9ec291c Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 6.18.33 with commit 592226d138378601ae28eb890e2bbc23ec3600f7 Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 7.0.10 with commit 13860ca37b8df0b856ee1ce3bdbd7c327d5f53e8 Issue introduced in 6.7 with commit 4ac4546821584736798aaa9e97da9f6eaf689ea3 and fixed in 7.1 with commit 4cbee026db54cad39c39db4d356100cb133412b3 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-53084 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/83b8802c034e843b83a3e1ef6f30cdd4e9ec291c https://git.kernel.org/stable/c/592226d138378601ae28eb890e2bbc23ec3600f7 https://git.kernel.org/stable/c/13860ca37b8df0b856ee1ce3bdbd7c327d5f53e8 https://git.kernel.org/stable/c/4cbee026db54cad39c39db4d356100cb133412b3