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 89DE034D4FC for ; Tue, 16 Dec 2025 15:07: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=1765897621; cv=none; b=Ty5jJQ7oOcuX/7tHfjvHzwaT0+R7VNL5xp5edDiupbZDPgUsQdki4LIagbD42H3c7D0Ueb31FNHvOAP+UGLPKeJezAF04KVKyYaLs5Odw+jLS28NfIQYaxH3nswbIvpC8WaW6S8RACdX2H1K0OkUOFYXzVUjF1xUUM9QN6KWNCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765897621; c=relaxed/simple; bh=c0H5LJFuilCJNdrwoSnT+7plZleDEQx9rnpO9A521A4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AoNiiduezNKRqFM38E8rfpko6ayZYKGGdhWtmhz2CTcKZeWl8JEHOUy/vYAfcIpX4v1JeioQXjhAE2o8DAXW+VXrj+T72TyBlgvjM+4ZNtfCEaOi5p0Q7wCrgQ9iirU+CnvZFYFVttxvN4SJM4JuxRMlrB3KHdpsJ3frAzVE+XQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iQ3luYyq; 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="iQ3luYyq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B07E9C4CEF1; Tue, 16 Dec 2025 15:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765897621; bh=c0H5LJFuilCJNdrwoSnT+7plZleDEQx9rnpO9A521A4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=iQ3luYyq57KIYpBDJyx78ZRwKydgTEHqkUCLMmR/P7xbnGks+UrCK5ntdemHdfe57 qaMQLpm7Oi8uzgcrGl4I7DTjDi9d34HhtlWizK8lsnploJflVf5wAANJ3BGvUoBv0D Yzd8YH5ir8KqQNCZDDkTHysGif3YAUSfUMsaQoo8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68293: mm/huge_memory: fix NULL pointer deference when splitting folio Date: Tue, 16 Dec 2025 16:06:47 +0100 Message-ID: <2025121640-CVE-2025-68293-ea76@gregkh> X-Mailer: git-send-email 2.52.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=2497; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pBkOSiw6jxkXOQUoWA1xJdKwU75uiv9N8Ps2DWdKqnU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOpQ1Zcy6xMj65LMKQFzD9sHGFqceTqWZMNqWZ35S3T LbaP3dpRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk+FOGBdtUlSSkrovYHXsj eFsjpqzx74ydfgzzqz61xbYFfuz4mFus+OMYl5fmhYxeAA== 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/huge_memory: fix NULL pointer deference when splitting folio Commit c010d47f107f ("mm: thp: split huge page to any lower order pages") introduced an early check on the folio's order via mapping->flags before proceeding with the split work. This check introduced a bug: for shmem folios in the swap cache and truncated folios, the mapping pointer can be NULL. Accessing mapping->flags in this state leads directly to a NULL pointer dereference. This commit fixes the issue by moving the check for mapping != NULL before any attempt to access mapping->flags. The Linux kernel CVE team has assigned CVE-2025-68293 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit c010d47f107f609b9f4d6a103b6dfc53889049e9 and fixed in 6.12.61 with commit 592db83615a9f0164472ec789c2ed34ad35f732f Issue introduced in 6.9 with commit c010d47f107f609b9f4d6a103b6dfc53889049e9 and fixed in 6.17.11 with commit d1b83fbacd4397a1d2f8c6b13427a8636ae2b307 Issue introduced in 6.9 with commit c010d47f107f609b9f4d6a103b6dfc53889049e9 and fixed in 6.18 with commit cff47b9e39a6abf03dde5f4f156f841b0c54bba0 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-2025-68293 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/huge_memory.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/592db83615a9f0164472ec789c2ed34ad35f732f https://git.kernel.org/stable/c/d1b83fbacd4397a1d2f8c6b13427a8636ae2b307 https://git.kernel.org/stable/c/cff47b9e39a6abf03dde5f4f156f841b0c54bba0