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 A40E2165F16 for ; Thu, 27 Mar 2025 16:37:42 +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=1743093462; cv=none; b=R4mLXRuB3FZQL7Agb6tH4GGQkksuBXjZFqeIjXFsYX9Wplnu3vtVdvE9ru/RH10aCNU0iu2QGKsr/kLW361i7JZknbAF57VJA8JxF/NRPRMbMhxLAZwZkdKqXQuzqFa2D4aSlWU84/ra3Z5Z3TQWS0d1X0dW14724okrbaozz3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743093462; c=relaxed/simple; bh=aB0fI+wtjKEZ59/3VhTbO5L3R7Ic/aNbj0xiMalM9pk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UlZEC022ZkhRpyAdKFcZF2NTaGaHXSKotD8zmK0wapTqnnZMYWB+j9O1UoCfOHk6G21bEuu0vjypoWgBD839RQrY7Ls7wpvJLqb0JVkILZMH1r1UgxJ0R7vfcF4/bvumD7ISdqilvWmHqRxq11Ft9VMQ8QLQbzj9dyLuuoiZ1oQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZUCYm8bx; 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="ZUCYm8bx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7D32C4CEDD; Thu, 27 Mar 2025 16:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743093462; bh=aB0fI+wtjKEZ59/3VhTbO5L3R7Ic/aNbj0xiMalM9pk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZUCYm8bxQLK+1hkBAaddgdWuw9viE5+U5QNLpQvnaR6kktyeg40rpGBWZEfryxa4f sscPgkIrYehv/+MEIMyIXHcGEDe2/s3AEughRP+4SOB5LpPocoPXT2vWR/RjyTgzld EQ34O9FAIybygw426Z9AEzotFknVzcy/qoiInync= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52939: mm: memcg: fix NULL pointer in mem_cgroup_track_foreign_dirty_slowpath() Date: Thu, 27 Mar 2025 17:37:29 +0100 Message-ID: <2025032722-CVE-2023-52939-8bb1@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=2144; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aB0fI+wtjKEZ59/3VhTbO5L3R7Ic/aNbj0xiMalM9pk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlP6w5dvnRwj8Wiyy69immzW5MjqywuKNenvOea9ezJX /PjbuejO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiu1wY5vsZHzzQXiz7KnlP xqdk0fcaHzPUfjDMj5U+08mtoPItsFvl/9VnpeYvOFe6AgA= 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: memcg: fix NULL pointer in mem_cgroup_track_foreign_dirty_slowpath() As commit 18365225f044 ("hwpoison, memcg: forcibly uncharge LRU pages"), hwpoison will forcibly uncharg a LRU hwpoisoned page, the folio_memcg could be NULl, then, mem_cgroup_track_foreign_dirty_slowpath() could occurs a NULL pointer dereference, let's do not record the foreign writebacks for folio memcg is null in mem_cgroup_track_foreign_dirty() to fix it. The Linux kernel CVE team has assigned CVE-2023-52939 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 97b27821b4854ca744946dae32a3f2fd55bcd5bc and fixed in 6.1.11 with commit b79ba5953f6fdc5559389ad415620bffc24f024b Issue introduced in 5.4 with commit 97b27821b4854ca744946dae32a3f2fd55bcd5bc and fixed in 6.2 with commit ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9 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-52939 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/memcontrol.h 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/b79ba5953f6fdc5559389ad415620bffc24f024b https://git.kernel.org/stable/c/ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9