CVE-2025-40227
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40227 is a memory leak vulnerability in the Linux kernel's DAMON (Data Access MONitor) sysfs subsystem. The flaw occurs in mm/damon/sysfs where the damon_ctx object allocated for testing online DAMON parameter commit inputs is only deallocated upon test failure, causing a memory leak on every successful commit operation. It was published on December 4, 2025, and affects Linux kernel versions from commit 4c9ea539ad59ec60676930dacee02b7adde2e0c0 up to the patched commits. No CVSS score has been assigned; the EPSS score is approximately 0.026% (Feedly, ENISA EUVD).

Technical details

The root cause is a missing deallocation path in the DAMON sysfs code (CWE-401: Missing Release of Memory after Effective Lifetime). When a user triggers an online DAMON parameter commit via the sysfs interface, a temporary damon_ctx is allocated for validation/testing purposes. The code only frees this context in the error path, so every successful commit leaks the allocated memory. The fix ensures the context is always deallocated regardless of the outcome, as reflected in the upstream kernel patches (Feedly, Kernel Patch 1, Kernel Patch 2).

Impact

The primary impact is a gradual memory leak in the Linux kernel, which can degrade system availability over time as kernel memory is exhausted through repeated DAMON parameter commits via sysfs. This could lead to system instability or denial of service on long-running systems where DAMON is actively used and parameters are frequently updated. There is no known confidentiality or integrity impact, and exploitation requires local access to the sysfs interface (Feedly).

Exploitability

There is no known public exploit code, active in-the-wild exploitation, or threat actor attribution associated with CVE-2025-40227. The vulnerability requires local access to trigger DAMON sysfs parameter commits, significantly limiting its attack surface. The EPSS score is approximately 0.026%, indicating a very low probability of exploitation in the near term. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Feedly).

Mitigation and workarounds

The fix is included in Linux kernel stable releases patched at commits ba236520ae53418859f4b7c7de3c71478d3c0b5a and 139e7a572af0b45f558b5e502121a768dc328ba8, with patches targeting kernel 6.17.6 and 6.18. Users should update to a patched kernel version as provided by their Linux distribution. As a workaround, avoiding frequent online DAMON parameter commits via sysfs can reduce the rate of memory leakage until a patch is applied (Feedly, Kernel Patch 1, Kernel Patch 2).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-48120HIGH8.6
  • Linux Debian logoLinux Debian
  • kakoune
NoNoAug 07, 2026
CVE-2026-42170HIGH7.8
  • Linux Debian logoLinux Debian
  • gimp-help-browser
NoYesAug 08, 2026
CVE-2026-71870MEDIUM4.8
  • Python logoPython
  • pypdf2
NoYesAug 07, 2026
CVE-2026-68082NONEN/A
  • Linux Debian logoLinux Debian
  • linux
NoYesAug 08, 2026
CVE-2026-68081NONEN/A
  • Linux Debian logoLinux Debian
  • linux
NoYesAug 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management