CVE-2025-39736

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

No CVSS score yet EPSS 0.14%

Published 11 Sep 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-39736

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39736 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.51% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before c7b6ea0ede687e7460e593c5ea478f50aa41682a
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before 4b0151e1d468eb2667c37b7af99b3c075072d334
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before f249d32bb54876b4b6c3ae071af8ddca77af390b
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before 62879faa8efe8d8a9c7bf7606ee9c068012d7dac
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before 1da95d3d4b7b1d380ebd87b71a61e7e6aed3265d
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before a0854de00ce2ee27edf39037e7836ad580eb3350
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before 08f70be5e406ce47c822f2dd11c1170ca259605b
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before a181b228b37a6a5625dad2bb4265bb7abb673e9f
affected from c5665868183fec689dbab9fb8505188b2c4f0757, before 47b0f6d8f0d2be4d311a49e13d2fd5f152f492b2
Other versions: unaffected
Linux
affected 5.4
unaffected before 5.4
unaffected from 5.4.297 up to and including 5.4.*
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.43 up to and including 6.12.*
unaffected from 6.15.11 up to and including 6.15.*
unaffected from 6.16.2 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39736 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39736

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39736
trivy image --scanners vuln IMAGE | grep CVE-2025-39736

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39736 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.