# CVE-2025-40228: mm/damon/sysfs: catch commit test ctx alloc failure

- 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:19.668Z
- Modified: 2026-10-19T19:10:00.130Z
- Assigned by: Linux

## Description

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

mm/damon/sysfs: catch commit test ctx alloc failure

Patch series "mm/damon/sysfs: fix commit test damon_ctx [de]allocation".

DAMON sysfs interface dynamically allocates and uses a damon_ctx object
for testing if given inputs for online DAMON parameters update is valid.
The object is being used without an allocation failure check, and leaked
when the test succeeds.  Fix the two bugs.


This patch (of 2):

The damon_ctx for testing online DAMON parameters commit inputs is used
without its allocation failure check.  This could result in an invalid
memory access.  Fix it by directly returning an error when the allocation
failed.

(As written by CVE List.)

## Affected

- Linux Linux: from 4c9ea539ad59ec60676930dacee02b7adde2e0c0 before 5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc; from 4c9ea539ad59ec60676930dacee02b7adde2e0c0 before f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f; 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/5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc>
- <https://git.kernel.org/stable/c/f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f>

## Sources

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

---

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