# CVE-2026-46025: mm/damon/core: fix damon\_call() vs kdamond\_fn() exit race

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.11% (percentile 0, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-05-27T12:56:31.784Z
- **Modified:** 2026-06-17T10:52:55.270Z

## Who should check

- Anyone running Linux \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< 2691332ad88b57179c38653e2cd613d5820a52cf; \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< e6a053a6f4b5048746c49432a5cc5b79fe4695fe; \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< 55da81663b9642dd046b26dd6f1baddbcf337c1e
- Anyone running Linux 6.14

## Description

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

mm/damon/core: fix damon\_call() vs kdamond\_fn() exit race

Patch series "mm/damon/core: fix damon\_call()/damos\_walk() vs kdmond exit
race".

damon\_call() and damos\_walk() can leak memory and/or deadlock when they
race with kdamond terminations.  Fix those.


This patch (of 2);

When kdamond\_fn() main loop is finished, the function cancels all
remaining damon\_call() requests and unset the damon\_ctx-\>kdamond so that
API callers and API functions themselves can know the context is
terminated.  damon\_call() adds the caller's request to the queue first. 
After that, it shows if the kdamond of the damon\_ctx is still running
(damon\_ctx-\>kdamond is set).  Only if the kdamond is running, damon\_call()
starts waiting for the kdamond's handling of the newly added request.

The damon\_call() requests registration and damon\_ctx-\>kdamond unset are
protected by different mutexes, though.  Hence, damon\_call() could race
with damon\_ctx-\>kdamond unset, and result in deadlocks.

For example, let's suppose kdamond successfully finished the damon\_call()
requests cancelling.  Right after that, damon\_call() is called for the
context.  It registers the new request, and shows the context is still
running, because damon\_ctx-\>kdamond unset is not yet done.  Hence the
damon\_call() caller starts waiting for the handling of the request. 
However, the kdamond is already on the termination steps, so it never
handles the new request.  As a result, the damon\_call() caller threads
infinitely waits.

Fix this by introducing another damon\_ctx field, namely
call\_controls\_obsolete.  It is protected by the
damon\_ctx-\>call\_controls\_lock, which protects damon\_call() requests
registration.  Initialize (unset) it in kdamond\_fn() before letting
damon\_start() returns and set it just before the cancelling of remaining
damon\_call() requests is executed.  damon\_call() reads the obsolete field
under the lock and avoids adding a new request.

After this change, only requests that are guaranteed to be handled or
cancelled are registered.  Hence the after-registration DAMON context
termination check is no longer needed.  Remove it together.

Note that the deadlock will not happen when damon\_call() is called for
repeat mode request.  In tis case, damon\_call() returns instead of waiting
for the handling when the request registration succeeds and it shows the
kdamond is running.  However, if the request also has dealloc\_on\_cancel,
the request memory would be leaked.

The issue is found by sashiko \[1\].

## Affected and fixed versions

- Linux: \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< 2691332ad88b57179c38653e2cd613d5820a52cf; \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< e6a053a6f4b5048746c49432a5cc5b79fe4695fe; \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< 55da81663b9642dd046b26dd6f1baddbcf337c1e (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 55da81663b9642dd046b26dd6f1baddbcf337c1e or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46025.md
Affected: Linux >= 42b7491af14cbba2393329ce43d508a957bd94fa, < 2691332ad88b57179c38653e2cd613d5820a52cf; >= 42b7491af14cbba2393329ce43d508a957bd94fa, < e6a053a6f4b5048746c49432a5cc5b79fe4695fe; >= 42b7491af14cbba2393329ce43d508a957bd94fa, < 55da81663b9642dd046b26dd6f1baddbcf337c1e; Linux 6.14
Fixed in: Linux 2691332ad88b57179c38653e2cd613d5820a52cf, Linux 55da81663b9642dd046b26dd6f1baddbcf337c1e

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-2026-46025 being exploited?

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

### How serious is CVE-2026-46025?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-46025?

Linux \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< 2691332ad88b57179c38653e2cd613d5820a52cf; \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< e6a053a6f4b5048746c49432a5cc5b79fe4695fe; \>= 42b7491af14cbba2393329ce43d508a957bd94fa, \< 55da81663b9642dd046b26dd6f1baddbcf337c1e; Linux 6.14.

### Is there a fix for CVE-2026-46025?

Yes. Fixed in Linux 2691332ad88b57179c38653e2cd613d5820a52cf, Linux 55da81663b9642dd046b26dd6f1baddbcf337c1e. Upgrade Linux to 55da81663b9642dd046b26dd6f1baddbcf337c1e or later.

### How do I check if I'm affected by CVE-2026-46025?

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/2691332ad88b57179c38653e2cd613d5820a52cf>
- patch: <https://git.kernel.org/stable/c/e6a053a6f4b5048746c49432a5cc5b79fe4695fe>
- patch: <https://git.kernel.org/stable/c/55da81663b9642dd046b26dd6f1baddbcf337c1e>

## 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-2026-46025>

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