CVE-2025-40228

published 4 Dec 2025 · updated 11 May 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc and Kernel f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.15, >=4c9ea539ad59ec60676930dacee02b7adde2e0c0 <5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc, >=4c9ea539ad59ec60676930dacee02b7adde2e0c0 <f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc, f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40228 severity on Zeptric[![CVE-2025-40228](https://zeptric.io/badge/cve/CVE-2025-40228.svg)](https://zeptric.io/cve/CVE-2025-40228)