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 25A1E27A444 for ; Sat, 4 Oct 2025 15:55:20 +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=1759593320; cv=none; b=D4XiHvjWbLf84oErE8r1+PAjvR56TLuGuHmOMd3bGJN5gm0IG8jr+WiJLm2V7Iqxf4EEMqKSfFrDCW1lJJc7UIodDEMq7t+aCrCMOKWNKJMBYZqkTo8zzcb7PMrdxYygiHTlH9uJd14JD6k1JrjnER7cwCs9U8SSAy9Gv6+V3o4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759593320; c=relaxed/simple; bh=svUUbXtkQamqpH+JiZtKBBJfiQQDgsQaOTCVLkBTWdY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xay+cuFKT0SQV8kYhDcYflzJn2doLZF6MWHnG/9x+gD2tZWUzl+hgf+MUC74zphmA/xBYwinjfYW/OFc7E9s/ldw6SiI9jh6GAlajFqdSTwqr4C3C0zKczsR37CxgetA1HDpp4aqRxGZzbw04lpnd1M6XOjb6GMfOJvjMELGL/8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=euZSTrCQ; 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="euZSTrCQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E832C4CEF1; Sat, 4 Oct 2025 15:55:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759593320; bh=svUUbXtkQamqpH+JiZtKBBJfiQQDgsQaOTCVLkBTWdY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=euZSTrCQgoFawwLYPPOWdrv5LTBnfFHb7gle1mAUejyVrur4ndk5vnjcZGzuVC8yq ZEA77rOc2bDOmkto4FpWfcfGow0IebXljU9YA5F/4ViXEPFOFJtfa1gruW+CyJ7lHa jptNZFfoakYp7kR5sAiC7gVMEegqCES9FOZ7p1kA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53614: mm/ksm: fix race with VMA iteration and mm_struct teardown Date: Sat, 4 Oct 2025 17:52:08 +0200 Message-ID: <2025100434-CVE-2023-53614-bf24@gregkh> X-Mailer: git-send-email 2.51.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=2504; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tW0QVKwCqwgdNNraL8jPiYz7pj1vuMyJXQ79SiVM3Ko=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPndr+Mext0HkcX/Tr5JNSt69/G2QTXFd8nrmp/fHe0 /MMjPuXd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE5vIzzDOw4DY1m841bzWv 0xYZzf0ldxiSFRkWnDnKsdZ6QpT7ydoFrF32V14XlQl7AAA= 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/ksm: fix race with VMA iteration and mm_struct teardown exit_mmap() will tear down the VMAs and maple tree with the mmap_lock held in write mode. Ensure that the maple tree is still valid by checking ksm_test_exit() after taking the mmap_lock in read mode, but before the for_each_vma() iterator dereferences a destroyed maple tree. Since the maple tree is destroyed, the flags telling lockdep to check an external lock has been cleared. Skip the for_each_vma() iterator to avoid dereferencing a maple tree without the external lock flag, which would create a lockdep warning. The Linux kernel CVE team has assigned CVE-2023-53614 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 and fixed in 6.1.22 with commit 286b0cab31bac29960e5684f6fb331d42f03b363 Issue introduced in 6.1 with commit a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 and fixed in 6.2.9 with commit b4f664ffd8f78c05a1fd542a28bc5a11e994c014 Issue introduced in 6.1 with commit a5f18ba0727656bd1fe3bcdb0d563f81790f9a04 and fixed in 6.3 with commit 6db504ce55bdbc575723938fc480713c9183f6a2 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-2023-53614 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/ksm.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/286b0cab31bac29960e5684f6fb331d42f03b363 https://git.kernel.org/stable/c/b4f664ffd8f78c05a1fd542a28bc5a11e994c014 https://git.kernel.org/stable/c/6db504ce55bdbc575723938fc480713c9183f6a2