CVE-2025-39736
mm/kmemleak: avoid deadlock by moving pr_warn() outside kmemleak_lock
Reported by linux · Published September 11, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-headers | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| perf | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel-tools-devel | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.150-174.273.amzn2023 |
| kernel-livepatch-6.1.150-174.273 | Amazon Linux | 1:1.0-0.amzn2023 |
| linux_kernel | linux | 6.16.2, 6.15.11, 6.12.43, 6.6.103, 6.1.149, 5.15.190, 5.10.241, 5.4.297 |
| Linux | Linux | a181b228b37a6a5625dad2bb4265bb7abb673e9f, a0854de00ce2ee27edf39037e7836ad580eb3350, 47b0f6d8f0d2be4d311a49e13d2fd5f152f492b2, 08f70be5e406ce47c822f2dd11c1170ca259605b |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c5665868183fec689dbab9fb8505188b2c4f0757, c5665868183fec689dbab9fb8505188b2c4f0757, c5665868183fec689dbab9fb8505188b2c4f0757 |
| Linux | Linux | 5.4, 0, 5.4.297 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-livepatch-6.1.150-174.273 | 0 |
| Linux | Linux | 6.17, *, * |
| linux | linux_kernel | 5.4, 5.4, 5.4 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | python3-perf | 0 |
| Siemens | SIMATIC CN 4100 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
Timeline
- Sep 11, 2025 CVE Published
- Sep 12, 2025 EPSS Score (30 in total, the first dated here)
- Jan 14, 2026 PoC Published
- Mar 29, 2026 Distribution Patch (193 in total, the first dated here)
- Mar 29, 2026 Security Advisory (206 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
- Oct 29, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39736
vulnetix vdb fixes CVE-2025-39736
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39736/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart