{"id":"CVE-2025-39902","summary":"mm/slub: avoid accessing metadata when pointer is invalid in object_err()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/slub: avoid accessing metadata when pointer is invalid in object_err()\n\nobject_err() reports details of an object for further debugging, such as\nthe freelist pointer, redzone, etc. However, if the pointer is invalid,\nattempting to access object metadata can lead to a crash since it does\nnot point to a valid object.\n\nOne known path to the crash is when alloc_consistency_checks()\ndetermines the pointer to the allocated object is invalid because of a\nfreelist corruption, and calls object_err() to report it. The debug code\nshould report and handle the corruption gracefully and not crash in the\nprocess.\n\nIn case the pointer is NULL or check_valid_pointer() returns false for\nthe pointer, only print the pointer value and skip accessing metadata.","modified":"2026-03-20T12:43:05.743929Z","published":"2025-10-01T07:42:49.415Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4301-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39902.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0ef7058b4dc6fcef622ac23b45225db57f17b83f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1f0797f17927b5cad0fb7eced422f9a7c30a3191"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3baa1da473e6e50281324ff1d332d1a07a3bb02e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e287256904ee796c9477e3ec92b07f236481ef3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/872f2c34ff232af1e65ad2df86d61163c8ffad42"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4efccec8d06ceb10a7d34d7b1c449c569d53770"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dda6ec365ab04067adae40ef17015db447e90736"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f66012909e7bf383fcdc5850709ed5716073fdc4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39902.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39902"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225"},{"fixed":"872f2c34ff232af1e65ad2df86d61163c8ffad42"},{"fixed":"f66012909e7bf383fcdc5850709ed5716073fdc4"},{"fixed":"7e287256904ee796c9477e3ec92b07f236481ef3"},{"fixed":"1f0797f17927b5cad0fb7eced422f9a7c30a3191"},{"fixed":"0ef7058b4dc6fcef622ac23b45225db57f17b83f"},{"fixed":"dda6ec365ab04067adae40ef17015db447e90736"},{"fixed":"3baa1da473e6e50281324ff1d332d1a07a3bb02e"},{"fixed":"b4efccec8d06ceb10a7d34d7b1c449c569d53770"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39902.json"}}],"schema_version":"1.7.5"}