[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025052058-CVE-2025-37908-5e14@gregkh>
Date: Tue, 20 May 2025 17:22:05 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-37908: mm, slab: clean up slab->obj_exts always
From: Greg Kroah-Hartman <gregkh@...nel.org>
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@...ux.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
Powered by blists - more mailing lists