CVE-2025-39736CWE-667

CVE-2025-39736

Medium · published September 11, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
2.6
In the wild
Unconfirmed
What it is

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

mm/kmemleak: avoid deadlock by moving pr_warn() outside kmemleak_lock

When netpoll is enabled, calling pr_warn_once() while holding

kmemleak_lock in mem_pool_alloc() can cause a deadlock due to lock

inversion with the netconsole subsystem. This occurs because

pr_warn_once() may trigger netpoll, which eventually leads to

__alloc_skb() and back into kmemleak code, attempting to reacquire

kmemleak_lock.

This is the path for the deadlock.

mem_pool_alloc()

-> raw_spin_lock_irqsave(&kmemleak_lock, flags);

-> pr_warn_once()

-> netconsole subsystem

-> netpoll

-> __alloc_skb

-> __create_object

-> raw_spin_lock_irqsave(&kmemleak_lock, flags);

Fix this by setting a flag and issuing the pr_warn_once() after

kmemleak_lock is released.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00133 · 2.6th percentile
Weakness
CWE-667 · Improper Locking
Published
2025-09-11T21:15Z
Affected products (10)
ProductVersionsFixed in
linux/linux_kernel≥ 5.4, < 5.4.2975.4.297
linux/linux_kernel≥ 5.5, < 5.10.2415.10.241
linux/linux_kernel≥ 5.11, < 5.15.1905.15.190
linux/linux_kernel≥ 5.16, < 6.1.1496.1.149
linux/linux_kernel≥ 6.2, < 6.6.1036.6.103
linux/linux_kernel≥ 6.7, < 6.12.436.12.43
linux/linux_kernel≥ 6.13, < 6.15.116.15.11
linux/linux_kernel≥ 6.16, < 6.16.26.16.2
linux/linux_kernelall versions—
debian/debian_linuxall versions—
References (12)
EPSS history
Timeline
  • 11 SEP 16:52Z
    mm/kmemleak: avoid deadlock by moving pr_warn() outside kmemleak_lock
    cvelistv5