CVE-2025-39902

mm/slub: avoid accessing metadata when pointer is invalid in object_err()

State
Published
Severity
7.1 High
Published
Oct 1, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

mm/slub: avoid accessing metadata when pointer is invalid in object_err()

object_err() reports details of an object for further debugging, such as the freelist pointer, redzone, etc. However, if the pointer is invalid, attempting to access object metadata can lead to a crash since it does not point to a valid object.

One known path to the crash is when alloc_consistency_checks() determines the pointer to the allocated object is invalid because of a freelist corruption, and calls object_err() to report it. The debug code should report and handle the corruption gracefully and not crash in the process.

In case the pointer is NULL or check_valid_pointer() returns false for the pointer, only print the pointer value and skip accessing metadata.

Scores

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

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before 872f2c34ff232af1e65ad2df86d61163c8ffad42Affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before f66012909e7bf383fcdc5850709ed5716073fdc4Affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before 7e287256904ee796c9477e3ec92b07f236481ef3Affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before 1f0797f17927b5cad0fb7eced422f9a7c30a3191Affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before 0ef7058b4dc6fcef622ac23b45225db57f17b83fAffected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before dda6ec365ab04067adae40ef17015db447e90736Affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before 3baa1da473e6e50281324ff1d332d1a07a3bb02eAffected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to before b4efccec8d06ceb10a7d34d7b1c449c569d53770Affected
LinuxLinux
  • 2.6.22Affected
  • before 2.6.22Not affected
  • 5.4.299 through 5.4.*Not affected
  • 5.10.243 through 5.10.*Not affected
  • 5.15.192 through 5.15.*Not affected
  • 6.1.151 through 6.1.*Not affected
  • 6.6.105 through 6.6.*Not affected
  • 6.12.46 through 6.12.*Not affected
  • 6.16.6 through 6.16.*Not affected
  • 6.17 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.