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 9160B37CD3A for ; Sun, 19 Jul 2026 10:13:14 +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=1784455995; cv=none; b=TM2X/RMjRtv99k05Db0je+EqpqEwnyzHJxzIjccKupqqzo6Yx+dS/jV05/GTAb0jZ4BZX9bL58k8Rj6yR/ohIjH084yOjJv5qwCqkIhDAJNsakl6Ctp95971gnxIctmE21j78JhF2pa9T4z4iSfal86VcNqjr3I464HLSXJsmsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784455995; c=relaxed/simple; bh=4CBuCBFayDkXqXP8KAYvOzJx/mmVEJKbfTSukHcde74=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HSGH0KHrRU7IZwFtXFEc81YMQyYUxDMUzSf9JxcCwtnscotUiqSwJxHNxAsx6UomUQPOOYazkAtsdIHERqHkQqp/XBuWV9uSslkrhSc9tc41Ph/y4mrapQaxu7iCnACRRLVxGYKl8UVwnMv2HD8TQHOYzZjKb4Jvjo56eIYdldg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Oou6I0AM; 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="Oou6I0AM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFC5E1F000E9; Sun, 19 Jul 2026 10:13:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784455994; bh=5g4pbWV/izjxsIkOmC1fN0SY4kjMvGOWzEYEQNS5mXs=; h=From:To:Cc:Subject:Date:Reply-To; b=Oou6I0AMY7+IjUM4Z1oGaVw5gKYyxuWGPGtCUIBciBumklDkaCW5rNKkV1stVfor2 DGNE7INEDkundySLsGaMIF9E8zf7myfRrkJtZkdE4RtfConcaJg9jJM/9mb3znt15k cLfryTrj/KG4CF/gzCuNTRXPMmne3xKgv/m+fdv0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53373: mm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap() Date: Sun, 19 Jul 2026 12:11:44 +0200 Message-ID: <2026071944-CVE-2026-53373-3856@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=3072; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8Ryz1ENFkwAj36+CvDEdtXsH3JbCzci412O2vtdGtdU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxix4s6dTTcnoS/tO6eF7sReb4uPLmzuDICNnrljVr/ D7ek9fqiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIl8aGWYp+eov2RNwCYV9weJ vfXPnGMnrgjfzbDg7LT5Cs/5syxWa5bFNXqWzbwdGr4ZAA== 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: mm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap() The mmap_prepare hook functionality includes the ability to invoke mmap_prepare() from the mmap() hook of existing 'stacked' drivers, that is ones which are capable of calling the mmap hooks of other drivers/file systems (e.g. overlayfs, shm). As part of the mmap_prepare action functionality, we deal with errors by unmapping the VMA should one arise. This works in the usual mmap_prepare case, as we invoke this action at the last moment, when the VMA is established in the maple tree. However, the mmap() hook passes a not-fully-established VMA pointer to the caller (which is the motivation behind the mmap_prepare() work), which is detached. So attempting to unmap a VMA in this state will be problematic, with the most obvious symptom being a warning in vma_mark_detached(), because the VMA is already detached. It's also unncessary - the mmap() handler will clean up the VMA on error. So to fix this issue, this patch propagates whether or not an mmap action is being completed via the compatibility layer or directly. If the former, then we do not attempt VMA cleanup, if the latter, then we do. This patch also updates the userland VMA tests to reflect the change. The Linux kernel CVE team has assigned CVE-2026-53373 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d and fixed in 7.0.9 with commit 5394bcb746503f2ae4b206212416dccea78e3773 Issue introduced in 6.19 with commit ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d and fixed in 7.1 with commit 619eab23e1ce7c97e54bfc5a417306d94b3f6f13 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-53373 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: include/linux/mm.h mm/util.c mm/vma.c tools/testing/vma/include/dup.h tools/testing/vma/include/stubs.h 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/5394bcb746503f2ae4b206212416dccea78e3773 https://git.kernel.org/stable/c/619eab23e1ce7c97e54bfc5a417306d94b3f6f13