Bug 2367532 (CVE-2025-37908) - CVE-2025-37908 kernel: mm, slab: clean up slab->obj_exts always
Summary: CVE-2025-37908 kernel: mm, slab: clean up slab->obj_exts always
Keywords:
Status: NEW
Alias: CVE-2025-37908
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-20 16:02 UTC by OSIDB Bzimport
Modified: 2025-05-20 23:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-20 16:02:42 UTC
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.com: fold need_slab_obj_ext() into its only user]


Note You need to log in before you can comment on or make changes to this bug.