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 48F33146593 for ; Mon, 26 Aug 2024 10:22: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=1724667741; cv=none; b=UG7s9qBzOa0rIo2QAACufrGb9goUuC7kwbBVAQonAv8P75Jb3f+qDW40oknNNqvKRuWtLbNplVJvTllHAJbCNMocGxVZ5ev/hwE7dU3z/t9ihwBQU8cES+pW5is5tVHPwso2UM/QWNs19Vyzw1Msk9E3q9tTdTtO90xZNAoCcnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724667741; c=relaxed/simple; bh=EomRf49k1jj5hNyIQbA/d7FZkWlR2Db7dDyX8SWDPYk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LXfIKJjqVji0D0or5tV1JhuWqSbS+wI9VDDhQhAhCk4M2RED0ZUE7zUxgFXB7phuCrtDshHk0E7MyZ1QCJx2NbS+oVB/MDcTDbGdGc/Y4RAdjTeWSJ41uY/ZNnyT4SGBK6TlOnlsOG2KzjtkwbZEPn0fCStJBizIyOvdpoTYhbg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JVw5rEkv; 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="JVw5rEkv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76F4EC581B2; Mon, 26 Aug 2024 10:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724667740; bh=EomRf49k1jj5hNyIQbA/d7FZkWlR2Db7dDyX8SWDPYk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JVw5rEkvJo72ZceOeslYegJfq8gWoovCiM5ndSScGHdFlFkArLAvfbBfOSvQDo1vR sN6OMmSk1q82rvPhjGABwRUqsLRGvX1+oaZutNgRHW61iji0Klvw1R/ZetVZ1MvVoC XqiCz39devwNwwebZrDvxhfBAfUE2R+i5vSVUdIY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-43888: mm: list_lru: fix UAF for memory cgroup Date: Mon, 26 Aug 2024 12:16:56 +0200 Message-ID: <2024082659-CVE-2024-43888-5beb@gregkh> X-Mailer: git-send-email 2.46.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=2009; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EomRf49k1jj5hNyIQbA/d7FZkWlR2Db7dDyX8SWDPYk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlnwmTKyouN8nRWnvf61hxX7cmTtfBMx+bo8M672xcoy QeUuj3viGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInscWVY0BKjr/0+ffUGkU+b Dd91GJ+5Hhv2hmHBGtH39jYTnmr82/OmbfNdE74Fu833AwA= 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: list_lru: fix UAF for memory cgroup The mem_cgroup_from_slab_obj() is supposed to be called under rcu lock or cgroup_mutex or others which could prevent returned memcg from being freed. Fix it by adding missing rcu read lock. Found by code inspection. [songmuchun@bytedance.com: only grab rcu lock when necessary, per Vlastimil] Link: https://lkml.kernel.org/r/20240801024603.1865-1-songmuchun@bytedance.com The Linux kernel CVE team has assigned CVE-2024-43888 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 0a97c01cd20b and fixed in 6.10.5 with commit 4589f77c18dd Issue introduced in 6.8 with commit 0a97c01cd20b and fixed in 6.11-rc3 with commit 5161b48712dc 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-2024-43888 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/list_lru.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/4589f77c18dd98b65f45617b6d1e95313cf6fcab https://git.kernel.org/stable/c/5161b48712dcd08ec427c450399d4d1483e21dea