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 43F272882C3 for ; Wed, 18 Jun 2025 11:04:01 +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=1750244641; cv=none; b=YlOFqnLvsnzYjYswEAnr0sKaDGTOvBhsCF4CWL+gUCTx09nvwyyGCbfcgytGnCh/JwAxXhbCX50BATBOEg7lyi92C5EFfqUscQHCI1g9gFi7Ya3M4RC1AucDgLxRgC8e70ww5CP8znz2Hga2rDnferI6BIAH4k17e+KvfFjO2Uo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244641; c=relaxed/simple; bh=G3mfjN5REn2a3vtlUOA+ZmiB37RfGogNsigROcyQACc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lOWdmMqdQQUStpm7oqpTo/1kzmZojMF8dlcBFVS77EfGwcZAtrVhpqdgTWUPytzJNRRDvXgtXY6CbHfnxfdVO+F0QN+0+0yTgaLBlsR3Y0MHdisaMBr19IDVYP3lKUQy5C6hJB9rJPbkaQzmni3EaQEhgPMIUAaNfj3gOi6czPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wQKUMylp; 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="wQKUMylp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A51D2C4CEE7; Wed, 18 Jun 2025 11:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244641; bh=G3mfjN5REn2a3vtlUOA+ZmiB37RfGogNsigROcyQACc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wQKUMylpNuqvNQNKVtbDauH09Qpx5sEmKlXOcErL734YWS5kOCx5IkI4fIDV7ivqn jW7+T3Ouq1+8x1G5G0xbgddHcZJbK7qSxJEVLi6TWQVZQmSq6s0YOgzBgmhOQEtGqq ETVOXe9NDbz4dTdZNOQFkmgLlyuvwAFIZvE5JS2Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49991: mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte Date: Wed, 18 Jun 2025 13:00:56 +0200 Message-ID: <2025061824-CVE-2022-49991-c44f@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2255; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gQGSP0ZFEqIxgvKJY8fYyODdk91Day6ex4WJGQqPPY0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBczyMpsawHC+VCe///HTdqZfRM+uilnAF2rL/ylnX+ OnERX2XjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIlucM8zRMP+uI1xnOndV+ JPyiwzb/E4ah9QzzVC2WzF1gwqolasmin+yUOoU5d/1ZAA== 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/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte In MCOPY_ATOMIC_CONTINUE case with a non-shared VMA, pages in the page cache are installed in the ptes. But hugepage_add_new_anon_rmap is called for them mistakenly because they're not vm_shared. This will corrupt the page->mapping used by page cache code. The Linux kernel CVE team has assigned CVE-2022-49991 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit f619147104c8ea71e120e4936d2b68ec11a1e527 and fixed in 5.15.65 with commit da60ddd80d09f8371fbba1a238a4b318d13ba698 Issue introduced in 5.13 with commit f619147104c8ea71e120e4936d2b68ec11a1e527 and fixed in 5.19.6 with commit 3ada1b3e58db255a14ec73a59d7913e84dc5a8a4 Issue introduced in 5.13 with commit f619147104c8ea71e120e4936d2b68ec11a1e527 and fixed in 6.0 with commit ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6 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-2022-49991 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/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/da60ddd80d09f8371fbba1a238a4b318d13ba698 https://git.kernel.org/stable/c/3ada1b3e58db255a14ec73a59d7913e84dc5a8a4 https://git.kernel.org/stable/c/ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6