Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DF4BB3CF690 for ; Thu, 2 Apr 2026 11:41:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775130080; cv=none; b=l32IwKUYPCOTvT2kxaRxox7fzZqRo9jemeZgUxKomPpSH04mqeNpg1o8oODpwJrTuhJlHW2WRvyfx516YragiyIWxFVVO52KX1AOmN6TZRFuHPvnmrx5W8HAYhkphE1fDKSRcQlDkzZED++k1jvCZziY+SRUTvwJe56yM65aMxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775130080; c=relaxed/simple; bh=zjeU1hyxmTrEb81zujgRHx3bNn4V5hg8i8fgQcYslSQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BbVDUV+vOuVwpDomNhJYbxr4r/MjdnDuHpwmRjnr8JznNdDqTaZwMnx07h9YKQflWEPnLrbD7kBzVEx7ZLspII0LkkZehZUb8ieJIVARN3RmD2S6faSRWBH5uPYZ3Iyhm4/FfI0tT1kjXhe5r/XeKBy4bQPKWi+/LsgV8u4APVU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SghS0ShS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="SghS0ShS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 072CFC19423; Thu, 2 Apr 2026 11:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775130079; bh=zjeU1hyxmTrEb81zujgRHx3bNn4V5hg8i8fgQcYslSQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=SghS0ShS8YcM7+nT/iO2TSpcAiUiiw9Dv0z/hzC3kVn3xHQZXC0fcggb5d5oc7nBB 8P/qQHh+EIa2HgqgweC0HSgUJVCbU7M5d9Hhalz5lnkAbMVYMDrY2K0VRFCBNu6tIV bSVYyifCuqR082CvgKkpDf425fb+2v8NpX8lIDEk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23416: mm/mseal: update VMA end correctly on merge Date: Thu, 2 Apr 2026 13:41:06 +0200 Message-ID: <2026040204-CVE-2026-23416-2941@gregkh> X-Mailer: git-send-email 2.53.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=2715; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XZK42yBSMcOSgd4tS9sSsCyLLs8PGiShQSafYPB2O4U=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnQi/ImuSbbCl/0H9srVI4U8yWB+pHFn/7u3zP/J2BV 06du1r3sSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmcqOHYa7k0dZotVUqoiuv bD2ypu+79r5nc80YFuzpURbyuTLX5m963RxVuSv1Nd1/GwE= 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/mseal: update VMA end correctly on merge Previously we stored the end of the current VMA in curr_end, and then upon iterating to the next VMA updated curr_start to curr_end to advance to the next VMA. However, this doesn't take into account the fact that a VMA might be updated due to a merge by vma_modify_flags(), which can result in curr_end being stale and thus, upon setting curr_start to curr_end, ending up with an incorrect curr_start on the next iteration. Resolve the issue by setting curr_end to vma->vm_end unconditionally to ensure this value remains updated should this occur. While we're here, eliminate this entire class of bug by simply setting const curr_[start/end] to be clamped to the input range and VMAs, which also happens to simplify the logic. The Linux kernel CVE team has assigned CVE-2026-23416 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit 6c2da14ae1e0a0146587381594559027bd46c059 and fixed in 6.18.21 with commit 40b3f4700e5535fbe74738cebb9379a40ec66bed Issue introduced in 6.17 with commit 6c2da14ae1e0a0146587381594559027bd46c059 and fixed in 6.19.11 with commit 83737e34b83a23b2a9bcf586b058b2c2a54c7c6b Issue introduced in 6.17 with commit 6c2da14ae1e0a0146587381594559027bd46c059 and fixed in 7.0-rc6 with commit 2697dd8ae721db4f6a53d4f4cbd438212a80f8dc 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-23416 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: mm/mseal.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/40b3f4700e5535fbe74738cebb9379a40ec66bed https://git.kernel.org/stable/c/83737e34b83a23b2a9bcf586b058b2c2a54c7c6b https://git.kernel.org/stable/c/2697dd8ae721db4f6a53d4f4cbd438212a80f8dc