| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-37908: mm, slab: clean up slab->obj_exts always |
| |
| 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 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 |