# CVE-2026-46087: mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-27T12:58:30.611Z
- Modified: 2026-06-25T21:09:24.470Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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

mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()

Destroy the DAMON context and reset the global pointer when damon_start()
fails.  Otherwise, the context allocated by damon_stat_build_ctx() is
leaked, and the stale damon_stat_context pointer will be overwritten on
the next enable attempt, making the old allocation permanently
unreachable.

(As written by CVE List.)

## Affected

- Linux Linux: from 369c415e60732b7c8ed33368891581246f580d7a before 8a62c58411cbd748d7aeab0e5b0963e33ff47a7a; from 369c415e60732b7c8ed33368891581246f580d7a before 50bc1d7e0f3bb6932c8dc5da0907eead0790176b; from 369c415e60732b7c8ed33368891581246f580d7a before e04ed278d25bf15769800bf6e35c6737f137186f; 6.17 (not affected: before 6.17; from 6.18.27 up to 6.18.*; from 7.0.4 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.17 before 6.18.27; from 6.19 before 7.0.4

## References

- <https://git.kernel.org/stable/c/8a62c58411cbd748d7aeab0e5b0963e33ff47a7a> (patch)
- <https://git.kernel.org/stable/c/50bc1d7e0f3bb6932c8dc5da0907eead0790176b> (patch)
- <https://git.kernel.org/stable/c/e04ed278d25bf15769800bf6e35c6737f137186f> (patch)

## Sources

- CVE List: [CVE-2026-46087](https://www.cve.org/CVERecord?id=CVE-2026-46087), CVE Terms of Use, modified 2026-06-14
- NVD: [CVE-2026-46087](https://nvd.nist.gov/vuln/detail/CVE-2026-46087), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-46087 · Whole record: https://cve.day/CVE-2026-46087.json · Rebuilt by cve.day 2026-11-25T22:59:22.576Z
