# CVE-2026-46008: mm/damon/core: fix damos\_walk() 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:08.315Z
- **Modified:** 2026-10-21T13:19:02.227Z

## Who should check

- Anyone running Linux \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 93a7f297362deac614ce3dbbba73ff2ba31aaca3; \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 0ba956a239ba6e3fae8555d3660e22e675be63b5; \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 33c3f6c2b48cd84b441dba1ee3e62290e53930f4
- Anyone running Linux 6.14

## Description

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

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

When kdamond\_fn() main loop is finished, the function cancels remaining
damos\_walk() request and unset the damon\_ctx-\>kdamond so that API callers
and API functions themselves can show the context is terminated. 
damos\_walk() 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, damos\_walk() starts waiting for
the kdamond's handling of the newly added request.

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

For example, let's suppose kdamond successfully finished the damow\_walk()
request cancelling.  Right after that, damos\_walk() 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
damos\_walk() 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 damos\_walk() caller thread
infinitely waits.

Fix this by introducing another damon\_ctx field, namely
walk\_control\_obsolete.  It is protected by the
damon\_ctx-\>walk\_control\_lock, which protects damos\_walk() request
registration.  Initialize (unset) it in kdamond\_fn() before letting
damon\_start() returns and set it just before the cancelling of the
remaining damos\_walk() request is executed.  damos\_walk() 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.

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

## Affected and fixed versions

- Linux: \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 93a7f297362deac614ce3dbbba73ff2ba31aaca3; \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 0ba956a239ba6e3fae8555d3660e22e675be63b5; \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 33c3f6c2b48cd84b441dba1ee3e62290e53930f4 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 33c3f6c2b48cd84b441dba1ee3e62290e53930f4 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-46008. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-46008.md
Affected: Linux >= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, < 93a7f297362deac614ce3dbbba73ff2ba31aaca3; >= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, < 0ba956a239ba6e3fae8555d3660e22e675be63b5; >= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, < 33c3f6c2b48cd84b441dba1ee3e62290e53930f4; Linux 6.14
Fixed in: Linux 93a7f297362deac614ce3dbbba73ff2ba31aaca3, Linux 0ba956a239ba6e3fae8555d3660e22e675be63b5, Linux 33c3f6c2b48cd84b441dba1ee3e62290e53930f4

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-46008 being exploited?

There is no confirmed exploitation: CVE-2026-46008 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-46008?

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-46008?

Linux \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 93a7f297362deac614ce3dbbba73ff2ba31aaca3; \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 0ba956a239ba6e3fae8555d3660e22e675be63b5; \>= bf0eaba0ff9c9c8e6fd58ddfa1a8b6df4b813f61, \< 33c3f6c2b48cd84b441dba1ee3e62290e53930f4; Linux 6.14.

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

Yes. Fixed in Linux 93a7f297362deac614ce3dbbba73ff2ba31aaca3, Linux 0ba956a239ba6e3fae8555d3660e22e675be63b5, Linux 33c3f6c2b48cd84b441dba1ee3e62290e53930f4. Upgrade Linux to 33c3f6c2b48cd84b441dba1ee3e62290e53930f4 or later.

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

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/0ba956a239ba6e3fae8555d3660e22e675be63b5>
- patch: <https://git.kernel.org/stable/c/33c3f6c2b48cd84b441dba1ee3e62290e53930f4>
- other: <https://git.kernel.org/stable/c/93a7f297362deac614ce3dbbba73ff2ba31aaca3>

## 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-46008>

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