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 715FF1A00D1 for ; Thu, 27 Mar 2025 16:37:45 +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=1743093465; cv=none; b=InmHZQWog+oSDTyIOdd9bvlxKmB85JkW+8g8Z5T6wuRjzoywLu/r/RIJrlryfkwyALm2yLxDRCEXDxyaoeTwsT1fk1t8d5VJ9l+bKzK2dfJVU/VwfGl43OtoPeFW25/BMapMpiiHDXYSpMmLDQZddCN+cMB91fKQ/q9dBjPilWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093465; c=relaxed/simple; bh=KaGpG2WNwwOjgG7YbWvp0QcuS4IplMNOGJlq2wW3oZI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WXHW/bWsxzJsEUR5TpVMvGaM9Yngkz+rf6a4pRNVxicBpKh9aNCRVSnPknTFXq6EmIzWMmKblQbIz8zrx4FHEz+LB5nnS9o1pUISCiqPa/CPzcKXvRlfdocCXa2OqM/qf39YzXCAW8KjgazzsyxLVSr+PLESQ5gpcsm9Y7qQDrA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iabGZmgE; 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="iabGZmgE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D20A9C4CEDD; Thu, 27 Mar 2025 16:37:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093465; bh=KaGpG2WNwwOjgG7YbWvp0QcuS4IplMNOGJlq2wW3oZI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=iabGZmgE6hu0CWfprSd4RqWxHmog7iz27kbbjFeTtmYssjdXw8J7yVSRuLFJEx0Zl tTV2pYQt1zD2NiZve2SqLFHfSWJIDSype3NlPVi0ineIVHW6w3F7JmurySozdlSKt7 5e3/xbwamUwaABEtTieztH9FXf/mDjGrSxshrR6w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52940: mm: multi-gen LRU: fix crash during cgroup migration Date: Thu, 27 Mar 2025 17:37:30 +0100 Message-ID: <2025032722-CVE-2023-52940-2e53@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=2332; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KaGpG2WNwwOjgG7YbWvp0QcuS4IplMNOGJlq2wW3oZI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP6w7dc5n/XPP/havtd5jfCyVeCFhzTrtAri5vAQvD+ lc7wyfe74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJ5P5kmMP3/2NU1eS49jy7 /TP+1G27kbJbz4thrtzje6e+5FhW7rp4v6vz7+7pB3tLZwAA 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: mm: multi-gen LRU: fix crash during cgroup migration lru_gen_migrate_mm() assumes lru_gen_add_mm() runs prior to itself. This isn't true for the following scenario: CPU 1 CPU 2 clone() cgroup_can_fork() cgroup_procs_write() cgroup_post_fork() task_lock() lru_gen_migrate_mm() task_unlock() task_lock() lru_gen_add_mm() task_unlock() And when the above happens, kernel crashes because of linked list corruption (mm_struct->lru_gen.list). The Linux kernel CVE team has assigned CVE-2023-52940 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit bd74fdaea146029e4fa12c6de89adbe0779348a9 and fixed in 6.1.11 with commit 04448022311cebd30969d3aebdde765f1258b360 Issue introduced in 6.1 with commit bd74fdaea146029e4fa12c6de89adbe0779348a9 and fixed in 6.2 with commit de08eaa6156405f2e9369f06ba5afae0e4ab3b62 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-52940 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/vmscan.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/04448022311cebd30969d3aebdde765f1258b360 https://git.kernel.org/stable/c/de08eaa6156405f2e9369f06ba5afae0e4ab3b62