# CVE-2025-39737: mm/kmemleak: avoid soft lockup in \_\_kmemleak\_do\_cleanup()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-11T16:52:12.519Z
- **Modified:** 2026-11-05T22:17:29.133Z

## Who should check

- Anyone running Linux \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 9f1f4e95031f84867c5821540466d62f88dab8ca; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 1ef72a7fedc5bca70e8cc980985790de10d407aa; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< a04de4c40aab9b338dfa989cf4aec70fd187eeb2; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< f014c10d190b92aad366e56b445daffcd1c075e4; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< e21a3ddd58733ce31afcb1e5dc3cb80a4b5bc29b; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 8d2d22a55ffe35c38e69795468a7addd1a80e9ce; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 926092268efdf1ed7b55cf486356c74a9e7710d1; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 9b80430c194e4a114dc663c1025d56b4f3d0153d; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< d1534ae23c2b6be350c8ab060803fbf6e9682adc
- Anyone running Linux 5.4

## Description

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

mm/kmemleak: avoid soft lockup in \_\_kmemleak\_do\_cleanup()

A soft lockup warning was observed on a relative small system x86-64
system with 16 GB of memory when running a debug kernel with kmemleak
enabled.

  watchdog: BUG: soft lockup - CPU\#8 stuck for 33s! \[kworker/8:1:134\]

The test system was running a workload with hot unplug happening in
parallel.  Then kemleak decided to disable itself due to its inability to
allocate more kmemleak objects.  The debug kernel has its
CONFIG\_DEBUG\_KMEMLEAK\_MEM\_POOL\_SIZE set to 40,000.

The soft lockup happened in kmemleak\_do\_cleanup() when the existing
kmemleak objects were being removed and deleted one-by-one in a loop via a
workqueue.  In this particular case, there are at least 40,000 objects
that need to be processed and given the slowness of a debug kernel and the
fact that a raw\_spinlock has to be acquired and released in
\_\_delete\_object(), it could take a while to properly handle all these
objects.

As kmemleak has been disabled in this case, the object removal and
deletion process can be further optimized as locking isn't really needed. 
However, it is probably not worth the effort to optimize for such an edge
case that should rarely happen.  So the simple solution is to call
cond\_resched() at periodic interval in the iteration loop to avoid soft
lockup.

## Affected and fixed versions

- Linux: \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 9f1f4e95031f84867c5821540466d62f88dab8ca; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 1ef72a7fedc5bca70e8cc980985790de10d407aa; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< a04de4c40aab9b338dfa989cf4aec70fd187eeb2; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< f014c10d190b92aad366e56b445daffcd1c075e4; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< e21a3ddd58733ce31afcb1e5dc3cb80a4b5bc29b; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 8d2d22a55ffe35c38e69795468a7addd1a80e9ce; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 926092268efdf1ed7b55cf486356c74a9e7710d1; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 9b80430c194e4a114dc663c1025d56b4f3d0153d; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< d1534ae23c2b6be350c8ab060803fbf6e9682adc (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39737. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39737.md
Affected: Linux >= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, < 9f1f4e95031f84867c5821540466d62f88dab8ca; >= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, < 1ef72a7fedc5bca70e8cc980985790de10d407aa; >= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, < a04de4c40aab9b338dfa989cf4aec70fd187eeb2; >= 2abd839aa7e615f2bbc50c8…
Fixed in: Linux 9f1f4e95031f84867c5821540466d62f88dab8ca, Linux 1ef72a7fedc5bca70e8cc980985790de10d407aa, Linux 8d2d22a55ffe35c38e69795468a7addd1a80e9ce, Linux 926092268efdf1ed7b55cf486356c74a9e7710d1, Linux 9b80430c194e4a114dc663c1025d56b4f3d0153d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39737 being exploited?

There is no confirmed exploitation: CVE-2025-39737 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39737?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39737?

Linux \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 9f1f4e95031f84867c5821540466d62f88dab8ca; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 1ef72a7fedc5bca70e8cc980985790de10d407aa; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< a04de4c40aab9b338dfa989cf4aec70fd187eeb2; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< f014c10d190b92aad366e56b445daffcd1c075e4; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< e21a3ddd58733ce31afcb1e5dc3cb80a4b5bc29b; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 8d2d22a55ffe35c38e69795468a7addd1a80e9ce; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 926092268efdf1ed7b55cf486356c74a9e7710d1; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< 9b80430c194e4a114dc663c1025d56b4f3d0153d; \>= 2abd839aa7e615f2bbc50c8ba7deb9e40d186768, \< d1534ae23c2b6be350c8ab060803fbf6e9682adc; Linux 5.4.

### Is there a fix for CVE-2025-39737?

Yes. Fixed in Linux 9f1f4e95031f84867c5821540466d62f88dab8ca, Linux 1ef72a7fedc5bca70e8cc980985790de10d407aa, Linux 8d2d22a55ffe35c38e69795468a7addd1a80e9ce, Linux 926092268efdf1ed7b55cf486356c74a9e7710d1, Linux 9b80430c194e4a114dc663c1025d56b4f3d0153d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-39737?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9f1f4e95031f84867c5821540466d62f88dab8ca>
- patch: <https://git.kernel.org/stable/c/1ef72a7fedc5bca70e8cc980985790de10d407aa>
- patch: <https://git.kernel.org/stable/c/a04de4c40aab9b338dfa989cf4aec70fd187eeb2>
- patch: <https://git.kernel.org/stable/c/f014c10d190b92aad366e56b445daffcd1c075e4>
- patch: <https://git.kernel.org/stable/c/e21a3ddd58733ce31afcb1e5dc3cb80a4b5bc29b>
- patch: <https://git.kernel.org/stable/c/8d2d22a55ffe35c38e69795468a7addd1a80e9ce>
- patch: <https://git.kernel.org/stable/c/926092268efdf1ed7b55cf486356c74a9e7710d1>
- patch: <https://git.kernel.org/stable/c/9b80430c194e4a114dc663c1025d56b4f3d0153d>
- patch: <https://git.kernel.org/stable/c/d1534ae23c2b6be350c8ab060803fbf6e9682adc>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39737>

HTML: <https://flawdb.com/CVE-2025-39737> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39737>
