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 956F4402444 for ; Tue, 9 Jun 2026 12:11:29 +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=1781007090; cv=none; b=cbFPwKZv/lH6C3CT/z9xsFuhCTWj7gZ4WjII6aeqTAgDQ7p+Ar33J8/sROU0N2LeN3RqyZ4k+e+iIeCZTTevqhweI7TKCXIj/xg516/x6lpStMfWt+/s+58n0lIwB7Agz6adSBM1CcIFRNeVSRyJzT8VH3an+jeHbEPGwAPWMx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781007090; c=relaxed/simple; bh=lLp5z4AiZA/AfkdJ6KllHBhiRgOL1COs9BJng+dcud0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qNndWj/07ogDnb5FDW4LmkLEeEV65N4szlnDD/uoJ/zOtX7w/SL21prZmHqfsQpXIlkS3JbtocwW9WHbA3+/DHW5cICsVaCeR1AM3LQ6v2iWnU2iDkNZRQ8kzFxvhw5Qf11Y2b4IGpvxulWlbIz/h4MuW4zjCKEcTsh4LsXRk64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B0+jLs4d; 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="B0+jLs4d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA1831F00893; Tue, 9 Jun 2026 12:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781007089; bh=kwmxGYzNmkFfCiWiv4ex+BTFimpAvdAph1bhSTqR1aU=; h=From:To:Cc:Subject:Date:Reply-To; b=B0+jLs4diAxDbg8IGeb9qjz/hEZqsLCHFrvJCBC+usw+S9na3aIK/HwAH0E0+vdPC kEn4+23bh3C9NRR+Rv0B2a5P0wNcS6AG4VAd9VtUoItun24EMU1Upy5TgPrK4Wd6Wt kQv9Ig7ZYB99P4D1sc8I2CQAOdp0YE1nZONKDTGU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46318: Revert "mm/hugetlbfs: update hugetlbfs to use mmap_prepare" Date: Tue, 9 Jun 2026 14:10:24 +0200 Message-ID: <2026060923-CVE-2026-46318-55a4@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=2908; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ec18EyxtX9BmB9Iry5FsujVWa7gF5jJWm5zhN91A8d4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkaTOuF9fo3L3xxPMH5WQCb5Cyfi2f+r2Nvr+mMfBdle IXhG5tiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk4THDXPGMB8lGD7Zlrwzh ufDjju8Lhv5dkQwLmvb/POX7cRE758OW9WuvMHPFR3U8AAA= 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: Revert "mm/hugetlbfs: update hugetlbfs to use mmap_prepare" This reverts commit ea52cb24cd3f ("mm/hugetlbfs: update hugetlbfs to use mmap_prepare") with conflict resolution to account for changes in commit ea52cb24cd3f ("mm/hugetlbfs: update hugetlbfs to use mmap_prepare"). The patch incorrectly handled hugetlb VMA lock allocation at the mmap_prepare stage, where a failed allocation occurring after mmap_prepare is called might result in the lock leaking. There is no risk of a merge causing a similar issues, as VMA_DONTEXPAND_BIT is set for hugetlb mappings. As a first step in addressing this issue, simply revert the change so we can rework how we do this having corrected the underlying issues. We maintain the VMA flags changes as best we can, accounting for the fact that we were working with a VMA descriptor previously and propagating like-for-like changes for this. Note that we invoke vma_set_flags() and do not call vma_start_write() as vm_flags_set() does. This is OK as it's being done in an .mmap hook where the VMA is not yet linked into the tree so nobody else can be accessing it. The Linux kernel CVE team has assigned CVE-2026-46318 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit ea52cb24cd3fb121283754ab82b2cb3044609359 and fixed in 7.0.12 with commit 3af5fc3f0ac98c624c109c8c0796fa46e814344c Issue introduced in 6.19 with commit ea52cb24cd3fb121283754ab82b2cb3044609359 and fixed in 7.1-rc6 with commit 83f9efcce93f8574be2279090ee2aec58b86cda7 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-46318 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: fs/hugetlbfs/inode.c include/linux/hugetlb.h include/linux/hugetlb_inline.h mm/hugetlb.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/3af5fc3f0ac98c624c109c8c0796fa46e814344c https://git.kernel.org/stable/c/83f9efcce93f8574be2279090ee2aec58b86cda7