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 376F5207A0F for ; Tue, 1 Apr 2025 15:42:08 +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=1743522128; cv=none; b=i1x/+TDTmgcoqzI7P6eipqYmZv/xj9Jkw+Ecidd0glWQtnDv1mUDx8RmhfT4I+YCuRc50wkfc4/sCobq5TJuHase2VXqMoM3tpweoWL3R4l+1JXiH/QEeg+78NdrBgB+nnXPOTtqWAuvGRPuZ5h4HxwcYXsxPN4PnAuBH6OvtdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522128; c=relaxed/simple; bh=armWtQOnLekKs2LA9HJRklCDCa058LkLPSsrbGeDV4E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WNltbjg7SKc/+xSSiZ9Dq7o2RJAOW8B8tXlPwUM+skmjRzJxr+L9a1PeKE1jaREYIgfiQ7IQZTphZ7de+rSRX/htDNoJv7tJgcyKVfCXSaALr2hPk9mluPzoI97j4VAHM4tOMcssoCfR3/6LCh4SIYbwPgMZXPVnpC4wohW4kXE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p8CFm4qy; 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="p8CFm4qy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C23FEC4CEE4; Tue, 1 Apr 2025 15:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522128; bh=armWtQOnLekKs2LA9HJRklCDCa058LkLPSsrbGeDV4E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p8CFm4qy7JQ8OgZ/tpU1t4RLj6IThcUkVca9t2pb+TjL8zy6XQhaW7/qZ6TwI6bG0 ru3zjMb2hF1fr76EUD0oQlLhb7ncv98wBaw++PmceDemAozAMc+jgmSDtI+HnH1Hre rJD/Wh2MdV2DSPO03/iFgtfHFQv3U1doAh6le9ew= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21933: arm: pgtable: fix NULL pointer dereference issue Date: Tue, 1 Apr 2025 16:39:57 +0100 Message-ID: <2025040134-CVE-2025-21933-2f5b@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=3038; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=armWtQOnLekKs2LA9HJRklCDCa058LkLPSsrbGeDV4E=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOLZ9v9czMV2It/eHot+5fwfW7GF4cVqKw8bfx6gtX HHPrlVHO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/28wLFjutrj3+b2nq5+e m8QQttNu/2LjRR0M80y7zxxZJL9w72bt1/4e+3TfRyxalgQA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: arm: pgtable: fix NULL pointer dereference issue When update_mmu_cache_range() is called by update_mmu_cache(), the vmf parameter is NULL, which will cause a NULL pointer dereference issue in adjust_pte(): Unable to handle kernel NULL pointer dereference at virtual address 00000030 when read Hardware name: Atmel AT91SAM9 PC is at update_mmu_cache_range+0x1e0/0x278 LR is at pte_offset_map_rw_nolock+0x18/0x2c Call trace: update_mmu_cache_range from remove_migration_pte+0x29c/0x2ec remove_migration_pte from rmap_walk_file+0xcc/0x130 rmap_walk_file from remove_migration_ptes+0x90/0xa4 remove_migration_ptes from migrate_pages_batch+0x6d4/0x858 migrate_pages_batch from migrate_pages+0x188/0x488 migrate_pages from compact_zone+0x56c/0x954 compact_zone from compact_node+0x90/0xf0 compact_node from kcompactd+0x1d4/0x204 kcompactd from kthread+0x120/0x12c kthread from ret_from_fork+0x14/0x38 Exception stack(0xc0d8bfb0 to 0xc0d8bff8) To fix it, do not rely on whether 'ptl' is equal to decide whether to hold the pte lock, but decide it by whether CONFIG_SPLIT_PTE_PTLOCKS is enabled. In addition, if two vmas map to the same PTE page, there is no need to hold the pte lock again, otherwise a deadlock will occur. Just add the need_lock parameter to let adjust_pte() know this information. The Linux kernel CVE team has assigned CVE-2025-21933 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit fc9c45b71f43cafcc0435dd4c7a2d3b99955a0fa and fixed in 6.13.7 with commit 91d011efe30aedde067ce6d218d521cf99b162e5 Issue introduced in 6.13 with commit fc9c45b71f43cafcc0435dd4c7a2d3b99955a0fa and fixed in 6.14 with commit a564ccfe300fa6a065beda06ab7f3c140d6b4d63 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-21933 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: arch/arm/mm/fault-armv.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/91d011efe30aedde067ce6d218d521cf99b162e5 https://git.kernel.org/stable/c/a564ccfe300fa6a065beda06ab7f3c140d6b4d63