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 1E1201E7C32 for ; Thu, 1 May 2025 14:14:00 +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=1746108841; cv=none; b=Mp9dwiDYIMsHkXhfhERdIz7klPgvmuUxYuSa2IZ4BFommlwQwOWk0fPSTiCfqbC1QBw2sulXf1fsxQYCRzSzrQcX6XyU3v1tUADXZyBn9XYFQ+wtCawULYNxjBR40hBRptfFfOCtjZ7hI7He8QqcmjbF+KhL7/DogFUU9Bz7njE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108841; c=relaxed/simple; bh=/heJ8KypC5j1nbPfg+kJdQ5yHf6Ggsma1zldBLD57EM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d0BnCUOUPaWBW8xJJ4SnNhyuGFxHNX1KXzga49L9Yrtu/3EuXqvsD/UMl3K5vk9iNZPA0cP3qScNjpTSGyE2MlLJxqdjr5p66MS2ajzg4MlWGvjh45FrTU5ArfPwF8gQG2rIZzk171WHBsQIdAoxU8EIiN6NSjgUz+0jMT+HSGY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T/tbAMj2; 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="T/tbAMj2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A52EC4CEE3; Thu, 1 May 2025 14:14:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108840; bh=/heJ8KypC5j1nbPfg+kJdQ5yHf6Ggsma1zldBLD57EM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T/tbAMj2it+94uY/Ynn17Qyi8rlIBXCVOPDOqEHqD2inE/F8A/HlAcIjfT11WWi9p yOQHmEPDubWx1YT+Cs9E6nRj45v6oy5tJbdQQy9wFfrg2tBBovLUJsikdHWgb4lVUg M7kB1Zz5r0gGx6VA3OZXuWT2EFbkWBDgiahDdG3k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49828: hugetlbfs: don't delete error page from pagecache Date: Thu, 1 May 2025 16:10:18 +0200 Message-ID: <2025050136-CVE-2022-49828-7143@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=2586; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IMvqV0mSi4KxGHa0QNpGuEV0I2yDmknTkFkIMO/WbYI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDQsyiwr547jK567T8Kw6aBf3ddL1CimN0qNaV8N8E mfdffSmI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay6zXDHP5Mp6WbcusM/d8v jmOb5jHxcGPUfIb5SVyRvufilq+bJiJ2Y2IHz61XMuWtAA== 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: hugetlbfs: don't delete error page from pagecache This change is very similar to the change that was made for shmem [1], and it solves the same problem but for HugeTLBFS instead. Currently, when poison is found in a HugeTLB page, the page is removed from the page cache. That means that attempting to map or read that hugepage in the future will result in a new hugepage being allocated instead of notifying the user that the page was poisoned. As [1] states, this is effectively memory corruption. The fix is to leave the page in the page cache. If the user attempts to use a poisoned HugeTLB page with a syscall, the syscall will fail with EIO, the same error code that shmem uses. For attempts to map the page, the thread will get a BUS_MCEERR_AR SIGBUS. [1]: commit a76054266661 ("mm: shmem: don't truncate page if memory failure happens") The Linux kernel CVE team has assigned CVE-2022-49828 to this issue. Affected and fixed versions =========================== Fixed in 5.15.80 with commit 30571f28bb35c826219971c63bcf60d2517112ed Fixed in 6.0.10 with commit ec667443b2dbc6cdbbac4073e51a17733158ec6a Fixed in 6.1 with commit 8625147cafaa9ba74713d682f5185eb62cb2aedb 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-49828 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 mm/hugetlb.c mm/memory-failure.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/30571f28bb35c826219971c63bcf60d2517112ed https://git.kernel.org/stable/c/ec667443b2dbc6cdbbac4073e51a17733158ec6a https://git.kernel.org/stable/c/8625147cafaa9ba74713d682f5185eb62cb2aedb