{"id":"CVE-2025-39736","aliases":["CVE-2025-39736"],"related":[],"kind":"vulnerability","state":"published","title":"mm/kmemleak: avoid deadlock by moving pr_warn() outside kmemleak_lock","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/kmemleak: avoid deadlock by moving pr_warn() outside kmemleak_lock\n\nWhen netpoll is enabled, calling pr_warn_once() while holding\nkmemleak_lock in mem_pool_alloc() can cause a deadlock due to lock\ninversion with the netconsole subsystem.  This occurs because\npr_warn_once() may trigger netpoll, which eventually leads to\n__alloc_skb() and back into kmemleak code, attempting to reacquire\nkmemleak_lock.\n\nThis is the path for the deadlock.\n\nmem_pool_alloc()\n  -> raw_spin_lock_irqsave(&kmemleak_lock, flags);\n      -> pr_warn_once()\n          -> netconsole subsystem\n\t     -> netpoll\n\t         -> __alloc_skb\n\t\t   -> __create_object\n\t\t     -> raw_spin_lock_irqsave(&kmemleak_lock, flags);\n\nFix this by setting a flag and issuing the pr_warn_once() after\nkmemleak_lock is released.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/kmemleak: avoid deadlock by moving pr_warn() outside kmemleak_lock\n\nWhen netpoll is enabled, calling pr_warn_once() while holding\nkmemleak_lock in mem_pool_alloc() can cause a deadlock due to lock\ninversion with the netconsole subsystem.  This occurs because\npr_warn_once() may trigger netpoll, which eventually leads to\n__alloc_skb() and back into kmemleak code, attempting to reacquire\nkmemleak_lock.\n\nThis is the path for the deadlock.\n\nmem_pool_alloc()\n  -> raw_spin_lock_irqsave(&kmemleak_lock, flags);\n      -> pr_warn_once()\n          -> netconsole subsystem\n\t     -> netpoll\n\t         -> __alloc_skb\n\t\t   -> __create_object\n\t\t     -> raw_spin_lock_irqsave(&kmemleak_lock, flags);\n\nFix this by setting a flag and issuing the pr_warn_once() after\nkmemleak_lock is released.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/kmemleak: evitar interbloqueo moviendo pr_warn() fuera de kmemleak_lock\n\nCuando netpoll está habilitado, llamar a pr_warn_once() mientras se mantiene kmemleak_lock en mem_pool_alloc() puede causar un interbloqueo debido a la inversión de bloqueo con el subsistema netconsole. Esto ocurre porque pr_warn_once() puede activar netpoll, lo que eventualmente lleva a __alloc_skb() y de vuelta al código de kmemleak, intentando readquirir kmemleak_lock.\n\nEste es el camino para el interbloqueo.\n\nmem_pool_alloc()\n  -> raw_spin_lock_irqsave(&kmemleak_lock, flags);\n      -> pr_warn_once()\n          -> subsistema netconsole\n\t     -> netpoll\n\t         -> __alloc_skb\n\t\t   -> __create_object\n\t\t     -> raw_spin_lock_irqsave(&kmemleak_lock, flags);\n\nSolucione esto estableciendo una bandera y emitiendo el pr_warn_once() después de que kmemleak_lock sea liberado.","source":"nvd"}],"published":"2025-09-11T16:52:11.772Z","modified":"2026-11-05T22:17:28.900Z","severity":{"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"},"severities":[{"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-667"],"affected":[{"ranges":[{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"c7b6ea0ede687e7460e593c5ea478f50aa41682a","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"4b0151e1d468eb2667c37b7af99b3c075072d334","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"f249d32bb54876b4b6c3ae071af8ddca77af390b","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"62879faa8efe8d8a9c7bf7606ee9c068012d7dac","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"1da95d3d4b7b1d380ebd87b71a61e7e6aed3265d","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"a0854de00ce2ee27edf39037e7836ad580eb3350","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"08f70be5e406ce47c822f2dd11c1170ca259605b","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"a181b228b37a6a5625dad2bb4265bb7abb673e9f","status":"affected"},{"type":"git","introduced":"c5665868183fec689dbab9fb8505188b2c4f0757","fixed":"47b0f6d8f0d2be4d311a49e13d2fd5f152f492b2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","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":"5.4","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"},{"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/c7b6ea0ede687e7460e593c5ea478f50aa41682a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b0151e1d468eb2667c37b7af99b3c075072d334","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f249d32bb54876b4b6c3ae071af8ddca77af390b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62879faa8efe8d8a9c7bf7606ee9c068012d7dac","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1da95d3d4b7b1d380ebd87b71a61e7e6aed3265d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0854de00ce2ee27edf39037e7836ad580eb3350","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08f70be5e406ce47c822f2dd11c1170ca259605b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a181b228b37a6a5625dad2bb4265bb7abb673e9f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47b0f6d8f0d2be4d311a49e13d2fd5f152f492b2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:08:53.202Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39736","url":"https://www.cve.org/CVERecord?id=CVE-2025-39736","licence":"CVE Terms of Use","modified":"2026-11-05T21:12:55.882Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39736","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39736","licence":"Public domain","modified":"2026-11-05T22:17:28.900Z"}],"updatedAt":"2026-11-25T22:59:04.539Z","epss":{"score":0.00148,"percentile":0.04175,"date":"2026-12-02T12:00:21.000Z"}}