From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154222; b=4TCb2ewA1mGIcbqEcvqouITSA/yJTtW4KNZWAVY5DhUh731JcGXgI9R99Fbw8GN+Jfha jldnwGVxPW+gZD3VQHYTsimzyvPn1WX4QHxZCHFFYtyizYUirqkAjhiYy32CuTKs54k/P hPz8YTzD3Gn8aDBS3Po8tHYzlhW0o0dgf7V85YCg92BzsvTLd3uzNgUU+haJwD+Cp1oH7 +bZXni1psWWTcRPoG7ShjzpeRA4JwiTvz2DAc9/2iCQWzz3/Y714OrqDN5Q0a6m8Vb/tz 8k9s126fbsU7/AcLXmmWhMfSNpfyMc333y31KO51FG4cAOoJJqnvcAAHppCnyJzcj9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154222; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=ZHpI1BMAsjM5EJ34qV0N9PJ+7LiS/8Tj1ZJe4In7V7Y=; b=CS9FRwLifc3HIV+erJeXYvaT1xas4rvGQ4Vf3OA+adpeN62MrpmCyLsqaYoBzeLbYbpW VG7c429P+y6Sr3XUikqpIVeJ/HAoCT33GRLFqvHFiRG6HpoNg7Yr+KMU8F/iAoemEp3M0 RE1T8tEhqObIba/+Y1hHyyYyVeMQSFwScsM+hSQh9GkqVA9TMa9XAkAPurAanFDy4Ar7k WtJ5AEeiJ3Dmt0w4NzlBca2v6ivUVEZnrdcAZRslVSf+fRMUTRJWPuvSmdzfkKFuxpMQD pGbOOLM5UzyaK5t3E1vhpMlxoVX4LAodt1CZp3lqwgZGsbTdli8waCQDi5cGGxRH26g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=xDJZ8iVb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4C8C860A261C for ; Fri, 20 Nov 2026 05:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=xDJZ8iVb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D98D1F000C6; Fri, 20 Nov 2026 05:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154222; bh=ZHpI1BMAsjM5EJ34qV0N9PJ+7LiS/8Tj1ZJe4In7V7Y=; h=From:To:Cc:Subject:Date:Reply-To; b=xDJZ8iVblZ5oReKOuakT1BYAT1MgpFpY0YUh7mwHO4WW09rjoBrIMnAjn1MQbcd+1 gnWZYZK7i8fwkMDN2eU5aI1kYm654yRajHqpNHECyHnakjCJApSRGu7M4JFC0zfkFG +Gb5DpyhQ/MBi1C137qYaCqjJJ11/s2+/tpELUTg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99667: mm/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp() Date: Fri, 20 Nov 2026 06:50:53 +0100 Message-ID: <2026112049-CVE-2026-99667-8fcf@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2469; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9GLAWn140TBd6BqhipY8r8gqiuwzBEjm/sWaDgcqQJI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/79fds3g1Y/KuZQyaV2OeJWzc+jn4YEXalky79n8/m XnfcxVM64hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ8LQxzBVSdD0iy3Kj2Xp/ 8uUX3hd/JFwX3MEwP7W899o+vqPJ/52lfjz90yJ1/WeoOgA= 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/khugepaged: always recheck the pmd in try_collapse_pte_mapped_thp() try_collapse_pte_mapped_thp() drops the PTE lock after it has cleared the page table, and takes the PMD lock and the PTE lock to remove it. In between, MADV_DONTNEED with CONFIG_PT_RECLAIM can reclaim the page table. The pmd_same() check is supposed to handle this, but it is only done with CONFIG_SPLIT_PTE_PTLOCKS. Fix it by performing the check unconditionally. Fix generated by an LLM and sent by Josef Bacik in private. [ david: adjust description ] The Linux kernel CVE team has assigned CVE-2026-99667 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 6375e95f381e3dc85065b6f74263a61522736203 and fixed in 6.18.64 with commit 3f6b29ecde19cab035f59b65012bc9de9a45eccc Issue introduced in 6.14 with commit 6375e95f381e3dc85065b6f74263a61522736203 and fixed in 7.3.5 with commit 9c766a46421509d5a2f46753be3964ae128bf938 Issue introduced in 6.14 with commit 6375e95f381e3dc85065b6f74263a61522736203 and fixed in 7.4-rc2 with commit aa72cf34d90da7019591ab67533a8ece8b41da2d 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-99667 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/khugepaged.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/3f6b29ecde19cab035f59b65012bc9de9a45eccc https://git.kernel.org/stable/c/9c766a46421509d5a2f46753be3964ae128bf938 https://git.kernel.org/stable/c/aa72cf34d90da7019591ab67533a8ece8b41da2d