CVE-2025-37908

mm, slab: clean up slab->obj_exts always

State
Published
Severity
7.8 High
Published
May 20, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.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@linux.intel.com: fold need_slab_obj_ext() into its only user]

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 21c690a349baab895dc68ab70d291e1598d7109d to before dab2a13059a475b6392550f882276e170fe2fcffAffected
  • 21c690a349baab895dc68ab70d291e1598d7109d to before 01db0e1a48345aa1937f3bdfc7c7108d03ebcf7eAffected
  • 21c690a349baab895dc68ab70d291e1598d7109d to before be8250786ca94952a19ce87f98ad9906448bc9efAffected
LinuxLinux
  • 6.10Affected
  • before 6.10Not affected
  • 6.12.28 through 6.12.*Not affected
  • 6.14.6 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.