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 131ED2417F2 for ; Tue, 20 May 2025 15:22: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=1747754566; cv=none; b=QQriKEV0FnBuQVRodi9NzQTt/lnQDZ0PHmDgUTn+C0a1yHB423OisN/5Z4052evuOchO8r9MQ6THSIYVyUaH5DldZmC2hQ0c2v8DSMfwmL/XTUAA2thB4qkQqbmNNM508C+ZTi9s3Gwij0MZER3UvCwCnOh7c1/JPzS4SHcMmvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754566; c=relaxed/simple; bh=FLedEdWYguxLnCKqTBatcKCHc91YnLG8cS1oDEroJvc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Xcqhs11EaHcjUjhJ5LbWZ2YFZ+R8g41EuzU9GlKn3XkrPs+8ZYRsnGW0fITv5bv3po/uqF284qfxlpEgvZLTPN89egWLxzUpqAZmpMfoWpPxtU4rxSOoB0EMXTlQju3FB/g/x7UsYfnfBxItcnL9EY6A+J/jYYqmhnAKKFOgbfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z7kIk1N0; 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="Z7kIk1N0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06FB0C4CEEA; Tue, 20 May 2025 15:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747754565; bh=FLedEdWYguxLnCKqTBatcKCHc91YnLG8cS1oDEroJvc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Z7kIk1N0LkdTkfB1yay1O+qJn9NP+6j9m32RKOUjY7PViWGVa57ctow56CCJNeLm9 pgBpJNLlDg0dLgZyd2OotXZQJof7QIUMrvspYKWViWZCFIr1q7qsFtYWlqym6sasND NXvGHcLZTqJ9GL+4QN1p6vd3rnLI9pk60nPcm8Ys= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37908: mm, slab: clean up slab->obj_exts always Date: Tue, 20 May 2025 17:22:05 +0200 Message-ID: <2025052058-CVE-2025-37908-5e14@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=2515; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ksCDDw/EoEIOwimwGpm7Yv7qG0iJvhCkpCGFGo5EpLU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk688QuaKtPkBc706q2STW3rDRlGVshw/M2oae81Rdfn 5DYdcS+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSIMAwV4ZbXNupL+1CN0fV rKfdhwLvMFnJM8xTiBPiN86zuvDJdbqsXcTDNf5eW2MA 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, slab: clean up slab->obj_exts always When memory allocation profiling is disabled at runtime or due to an error, shutdown_mem_profiling() is called: slab->obj_exts which previously allocated remains. It won't be cleared by unaccount_slab() because of mem_alloc_profiling_enabled() not true. It's incorrect, slab->obj_exts should always be cleaned up in unaccount_slab() to avoid following error: [...]BUG: Bad page state in process... .. [...]page dumped because: page still charged to cgroup [andriy.shevchenko@linux.intel.com: fold need_slab_obj_ext() into its only user] The Linux kernel CVE team has assigned CVE-2025-37908 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 21c690a349baab895dc68ab70d291e1598d7109d and fixed in 6.12.28 with commit dab2a13059a475b6392550f882276e170fe2fcff Issue introduced in 6.10 with commit 21c690a349baab895dc68ab70d291e1598d7109d and fixed in 6.14.6 with commit 01db0e1a48345aa1937f3bdfc7c7108d03ebcf7e Issue introduced in 6.10 with commit 21c690a349baab895dc68ab70d291e1598d7109d and fixed in 6.15-rc5 with commit be8250786ca94952a19ce87f98ad9906448bc9ef 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-37908 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/slub.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/dab2a13059a475b6392550f882276e170fe2fcff https://git.kernel.org/stable/c/01db0e1a48345aa1937f3bdfc7c7108d03ebcf7e https://git.kernel.org/stable/c/be8250786ca94952a19ce87f98ad9906448bc9ef