Skip to content
CVE PROGRAM SOURCE RECORD7.1 High

CVE-2025-39902

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < 872f2c34ff232af1e65ad2df86d61163c8ffad42affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < f66012909e7bf383fcdc5850709ed5716073fdc4affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < 7e287256904ee796c9477e3ec92b07f236481ef3affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < 1f0797f17927b5cad0fb7eced422f9a7c30a3191affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < 0ef7058b4dc6fcef622ac23b45225db57f17b83faffected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < dda6ec365ab04067adae40ef17015db447e90736affected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < 3baa1da473e6e50281324ff1d332d1a07a3bb02eaffected
  • 81819f0fc8285a2a5a921c019e3e3d7b6169d225 to < b4efccec8d06ceb10a7d34d7b1c449c569d53770affected

Linux Linux

Default version status: affected

  • 2.6.22affected
  • 0 to < 2.6.22unaffected
  • 5.4.299 to ≤ 5.4.*unaffected
  • 5.10.243 to ≤ 5.10.*unaffected
  • 5.15.192 to ≤ 5.15.*unaffected
  • 6.1.151 to ≤ 6.1.*unaffected
  • 6.6.105 to ≤ 6.6.*unaffected
  • 6.12.46 to ≤ 6.12.*unaffected
  • 6.16.6 to ≤ 6.16.*unaffected
  • 6.17 to ≤ *unaffected

References