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=1795154394; b=R6e6BDoS5qQNbLn0/MiEnTbXZbCmjmLgeocJ7ecQEyDCTm3JqdLlWxF21XK2QjRzPO0e ZKa/ZNQGio03Gcvguui3oCvUjneAA05xAvBkal9+zESIEjTbHP4xkA+8DCpF+afCgsmQT 2BIt8UQACMId9gzYxlCd8+IXLKVZcKgoH1r7Qkf3MlHF8dt9fwGLWMThSEXzJTHTu+RIo Ph3o5WVk7mL1gR8s4svbDCv5aNcyEQv3b3yu17anBQxyWoD9qwvt9cF+YhhtowniJ+hin XTMsFY6BNiwHgKWyUiaM1gTiP96o6P8uU3cv//CBARXHkV6E1lgteEOS0DjhLa+BRqg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154394; 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=Vk4jCZlasBtdpLPnb9zg9l3QYfuBwV2EJUEng5heKBo=; b=SppHEJAgMXMY/OGI7lc935pXtYlFWw2851Q9IGZovxC+agYSfuxN2gitW3kHPvsj5SC9 Qh00olBZiPjco/7fqT+qGu800PP83tgHCsossClE04bfLdDXzMZqLt42O5yrpIwlfyGFN BH5+muDdskKFC9LP1UAzE2RIp+0lYZ8/wgzoMN1c+5O0QaZn3JCLQrYb8YeDKULg1N/NI bSQOxBSFK3liDqLATDaX2H4XgjoUeVIQpZy1cKwf1B8uT6Iuddc7/GYkyh2X/WZyYQw2N rfY8QnDkV+c1DRZkr14ow16NU1ZpcFf1NX1DGIgb2rRtc/LE7sKkR4x3FAtXY69wLww== 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=Iv5Ao5i5; 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 9E614606A510 for ; Fri, 20 Nov 2026 05:59:54 +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=Iv5Ao5i5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB3BC1F000C4; Fri, 20 Nov 2026 05:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154394; bh=Vk4jCZlasBtdpLPnb9zg9l3QYfuBwV2EJUEng5heKBo=; h=From:To:Cc:Subject:Date:Reply-To; b=Iv5Ao5i59zxASniXWw0dbPmgjN55pavQQfac0u72Ak7y/ZojbSKe3VC1fliPqZwt3 kWZjTlNPQZcZs+JCJ+VR2BmI1ADOqAiGlmF3gdfuLgw9hGV2eaWIGUkFXmhae1gJNk /m0XRLNf/1KrMXSd87aDRvjVpnegNEIvpO/ja9Ys= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99729: mm/rmap: handle device-exclusive entries in folio_referenced_one() Date: Fri, 20 Nov 2026 06:51:55 +0100 Message-ID: <2026112013-CVE-2026-99729-0457@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=2566; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=126JrZu9KY830soW8APHfXnfyvm0Srzu9iW770gZOPc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/709NddpmqTtH/5GpxZ6wzCtykTzVQoW57a4/Oq8tm ae9VeZwRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEI5dhweV5pdfiWQ9u3iSZ OWuOTjPz1t8sDAzzzEPnS08/V3HNcpuFcOIJm1tFqoqOAA== 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/rmap: handle device-exclusive entries in folio_referenced_one() page_vma_mapped_walk() can return non-present device-exclusive entries, but folio_referenced_one() passes them to PTE young-bit accessors that require present PTEs. We must neither call clear_flush_young_ptes_notify() nor folio_pte_batch() with non-present entries. For example, clearing the young bit on non-present PTEs can corrupt the entry: on arm64 PTE_AF overlaps the swap type, so clearing it turns a device-exclusive entry into an ordinary swap entry. folio_pte_batch() will VM_WARN_ON_FOLIO. Apply the same approach as the previous fixes to e.g., damon_ptep_mkold(): treat these entries as old from the CPU's perspective and obtain their young state through the MMU notifier. Skip PTE batching and MGLRU look-around for non-present entries, and don't modify non-present PTEs. The Linux kernel CVE team has assigned CVE-2026-99729 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit b756a3b5e7ead8f6f4b03cea8ac22478ce04c8a8 and fixed in 7.3.5 with commit 9075e5fbad71e00a73cddef901a2a08ad7b51af5 Issue introduced in 5.14 with commit b756a3b5e7ead8f6f4b03cea8ac22478ce04c8a8 and fixed in 7.4-rc2 with commit f3c493d2f42b5f44a5c134d8d7ea7f960caf5e2c 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-99729 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/rmap.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/9075e5fbad71e00a73cddef901a2a08ad7b51af5 https://git.kernel.org/stable/c/f3c493d2f42b5f44a5c134d8d7ea7f960caf5e2c