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 4DBA8334C39 for ; Fri, 24 Apr 2026 14:43:31 +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=1777041812; cv=none; b=gjQfW0hy6cPT9oSZO/hRrKNo0/73bboiBEhPgPJjHVSN6JbWE82cb1sfKxV+u7QwtEjbNXsyI50p4YRWpCxOO0am2gDGYnhiEe6ogNCMucLVbhpyI/fqP3QhNxS+jBNUSxEmJUwQueQGO2YQL0IUoIFK0yFuOaAFLVc3m2C8xmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041812; c=relaxed/simple; bh=5wkM1DzimZDrU8wUxTELreOD0zubXqeXCrOnFKPg7t4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mvgI2Q3WGj1kMkcl2qQWsj6EjknBDCLm3iPLiV+/qll1w15wDxk0VYO60tOpcFcws9007d/o1ePgogD2S82lJ/YSf9mX02R4fEu39H5SW2vJN0uiE1FWP9/A4XXOov9d46UznRprkx6iHvkRBG1RlXyHtqNKlZ9Rx6WZHh8XHfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ax/CKPDb; 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="Ax/CKPDb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A818C2BCB2; Fri, 24 Apr 2026 14:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041811; bh=5wkM1DzimZDrU8wUxTELreOD0zubXqeXCrOnFKPg7t4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Ax/CKPDbG45HEuPL2CHjJTAXtPOggRIhr2J+OqK3kyIVdrqVhIZLGcL2MwGSVPw3N pffBnKzsAOrCzFkhBi3TMdxkJ69be7srLxHY+D2F3Buo0H5EywV5fHZB2BKA+fCkpY E926XHSXBhdmvUmyv+7rvnHcytXQDmK3bWPDml/s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31575: mm/userfaultfd: fix hugetlb fault mutex hash calculation Date: Fri, 24 Apr 2026 16:43:11 +0200 Message-ID: <2026042409-CVE-2026-31575-c1bf@gregkh> X-Mailer: git-send-email 2.53.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=2564; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g1lKWFz9IRSpKuA/RZCZzx9+MX1ABQP6S/Vf/igeSyA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG2vrmeqEJjx3aO45yfA1d8W97aZB6qrl2secGE5yb r3kqNPYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN594thDvfZmd0udyf2/uy9 W/Z65pyfwfEmHxjm15yTvcb7p+3YLnHbBeFTuyZxT9sQCQA= 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/userfaultfd: fix hugetlb fault mutex hash calculation In mfill_atomic_hugetlb(), linear_page_index() is used to calculate the page index for hugetlb_fault_mutex_hash(). However, linear_page_index() returns the index in PAGE_SIZE units, while hugetlb_fault_mutex_hash() expects the index in huge page units. This mismatch means that different addresses within the same huge page can produce different hash values, leading to the use of different mutexes for the same huge page. This can cause races between faulting threads, which can corrupt the reservation map and trigger the BUG_ON in resv_map_release(). Fix this by introducing hugetlb_linear_page_index(), which returns the page index in huge page granularity, and using it in place of linear_page_index(). The Linux kernel CVE team has assigned CVE-2026-31575 to this issue. Affected and fixed versions =========================== Fixed in 6.18.24 with commit 574501ede47ac439afd67ba9812bc66722d500ba Fixed in 6.19.14 with commit 08282b1bf74c69fc8ecd25493e7fdb5460f01290 Fixed in 7.0.1 with commit f4689fc089765d36c026063fb22d23533e883eb6 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-31575 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: include/linux/hugetlb.h mm/userfaultfd.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/574501ede47ac439afd67ba9812bc66722d500ba https://git.kernel.org/stable/c/08282b1bf74c69fc8ecd25493e7fdb5460f01290 https://git.kernel.org/stable/c/f4689fc089765d36c026063fb22d23533e883eb6 https://git.kernel.org/stable/c/0217c7fb4de4a40cee667eb21901f3204effe5ac