{"id":"CVE-2025-39902","aliases":["CVE-2025-39902"],"related":[],"kind":"vulnerability","state":"published","title":"mm/slub: avoid accessing metadata when pointer is invalid in object_err()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/slub: evitar acceder a metadatos cuando el puntero es inválido en object_err()\n\nobject_err() informa detalles de un objeto para depuración adicional, como el puntero de la freelist, la redzone, etc. Sin embargo, si el puntero es inválido, intentar acceder a los metadatos del objeto puede provocar un fallo ya que no apunta a un objeto válido.\n\nUna ruta conocida al fallo es cuando alloc_consistency_checks() determina que el puntero al objeto asignado es inválido debido a una corrupción de la freelist, y llama a object_err() para informarlo. El código de depuración debería informar y manejar la corrupción de manera elegante y no fallar en el proceso.\n\nEn caso de que el puntero sea NULL o check_valid_pointer() devuelva falso para el puntero, solo imprimir el valor del puntero y omitir el acceso a los metadatos.","source":"nvd"}],"published":"2025-10-01T07:42:49.415Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"872f2c34ff232af1e65ad2df86d61163c8ffad42","status":"affected"},{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"f66012909e7bf383fcdc5850709ed5716073fdc4","status":"affected"},{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"7e287256904ee796c9477e3ec92b07f236481ef3","status":"affected"},{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"1f0797f17927b5cad0fb7eced422f9a7c30a3191","status":"affected"},{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"0ef7058b4dc6fcef622ac23b45225db57f17b83f","status":"affected"},{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"dda6ec365ab04067adae40ef17015db447e90736","status":"affected"},{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"3baa1da473e6e50281324ff1d332d1a07a3bb02e","status":"affected"},{"type":"git","introduced":"81819f0fc8285a2a5a921c019e3e3d7b6169d225","fixed":"b4efccec8d06ceb10a7d34d7b1c449c569d53770","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.22","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.22","status":"unaffected"},{"type":"semver","introduced":"5.4.299","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.243","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.192","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.151","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.105","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.46","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.6","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.22","fixed":"5.4.299"},{"status":"affected","introduced":"5.5","fixed":"5.10.243"},{"status":"affected","introduced":"5.11","fixed":"5.15.192"},{"status":"affected","introduced":"5.16","fixed":"6.1.151"},{"status":"affected","introduced":"6.2","fixed":"6.6.105"},{"status":"affected","introduced":"6.7","fixed":"6.12.46"},{"status":"affected","introduced":"6.13","fixed":"6.16.6"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/872f2c34ff232af1e65ad2df86d61163c8ffad42","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f66012909e7bf383fcdc5850709ed5716073fdc4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7e287256904ee796c9477e3ec92b07f236481ef3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f0797f17927b5cad0fb7eced422f9a7c30a3191","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0ef7058b4dc6fcef622ac23b45225db57f17b83f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dda6ec365ab04067adae40ef17015db447e90736","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3baa1da473e6e50281324ff1d332d1a07a3bb02e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4efccec8d06ceb10a7d34d7b1c449c569d53770","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-15T21:54:38.930Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39902","url":"https://www.cve.org/CVERecord?id=CVE-2025-39902","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:32.999Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39902","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39902","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:05.384Z","epss":{"score":0.00173,"percentile":0.07026,"date":"2026-12-01T12:00:22.000Z"}}