# CVE-2025-40227: mm/damon/sysfs: dealloc commit test ctx always

- Severity: not scored yet
- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-12-04T15:31:18.839Z
- Modified: 2026-10-19T19:10:00.130Z
- Assigned by: Linux

## Description

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

mm/damon/sysfs: dealloc commit test ctx always

The damon_ctx for testing online DAMON parameters commit inputs is
deallocated only when the test fails.  This means memory is leaked for
every successful online DAMON parameters commit.  Fix the leak by always
deallocating it.

(As written by CVE List.)

## Affected

- Linux Linux: from 4c9ea539ad59ec60676930dacee02b7adde2e0c0 before ba236520ae53418859f4b7c7de3c71478d3c0b5a; from 4c9ea539ad59ec60676930dacee02b7adde2e0c0 before 139e7a572af0b45f558b5e502121a768dc328ba8; 6.15 (not affected: before 6.15; from 6.17.6 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/ba236520ae53418859f4b7c7de3c71478d3c0b5a>
- <https://git.kernel.org/stable/c/139e7a572af0b45f558b5e502121a768dc328ba8>

## Sources

- CVE List: [CVE-2025-40227](https://www.cve.org/CVERecord?id=CVE-2025-40227), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40227](https://nvd.nist.gov/vuln/detail/CVE-2025-40227), Public domain, modified 2026-10-19

---

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