Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2025-40229
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-40229 is a memory leak vulnerability in the Linux kernel's DAMON (Data Access MONitor) subsystem, specifically in the mm/damon/core component. The flaw exists in the damon_destroy_scheme() function, which cleans up the filter list but fails to free the ops_filter field, resulting in a potential memory leak when a DAMON scheme is destroyed. It was published on December 4, 2025, and affects Linux kernel versions from commit ab82e57981d0 up to (but not including) the fix commits. The CVSS base score has not been formally assigned as of the time of this report, and the EPSS score is approximately 0.024% (Feedly).

Technical details

The root cause is classified as a missing resource release (CWE-401: Missing Release of Memory after Effective Lifetime). In damon_destroy_scheme(), the function iterates over and frees entries in the filter list but neglects to also free the ops_filter structure, leaving allocated memory unreachable after the scheme object is destroyed. The fix, applied in two stable kernel commits (ff8dcf621a41 and 7071537159be), ensures both filter and ops_filter are properly freed during scheme teardown. Exploitation of this class of vulnerability typically requires local access and the ability to create and destroy DAMON schemes repeatedly (Feedly, Linux Kernel Git).

Impact

The primary impact of this vulnerability is a gradual exhaustion of kernel memory (availability impact) on affected Linux systems. Repeated creation and destruction of DAMON schemes without proper cleanup of ops_filter can cause kernel memory to leak over time, potentially leading to system instability or denial of service in long-running environments. There is no known confidentiality or integrity impact, and the vulnerability does not enable privilege escalation or remote code execution (Feedly).

Exploitability

There is no known public exploit code, active in-the-wild exploitation, or threat actor attribution associated with CVE-2025-40229. The EPSS score is approximately 0.024%, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation would require local access to a system with DAMON functionality enabled and the ability to repeatedly trigger scheme creation and destruction (Feedly).

Mitigation and workarounds

The Linux kernel maintainers have released patches addressing this issue in two stable commits: ff8dcf621a4172f4a6d42cbbb25d21659d3ac300 (targeting the 6.17.x stable branch) and 7071537159be845a5c4ed5fb7d3db25aa4bd04a3 (targeting the 6.18 release). Fixed versions include Linux kernel 6.17.6 and 6.18. Users should update to a patched kernel version as soon as it is available from their distribution. As a workaround, disabling DAMON functionality (if not required) can reduce exposure, though upgrading is the recommended remediation (Feedly, Linux Kernel Git).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

sid

linux: 6.17.6-1

Fixed

trixie

linux

Fixed

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

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-94106HIGH8.7
  • Linux Debian logoLinux Debian
  • php-getid3
NoNoSep 20, 2026
CVE-2026-93990HIGH8.7
  • Linux Debian logoLinux Debian
  • expat
NoNoSep 19, 2026
CVE-2026-94108HIGH8.3
  • Linux Debian logoLinux Debian
  • php-getid3
NoNoSep 20, 2026
CVE-2026-93962MEDIUM5.5
  • Linux Debian logoLinux Debian
  • kamailio
NoNoSep 20, 2026
CVE-2026-82560NONEN/A
  • Linux Debian logoLinux Debian
  • perl
NoYesSep 19, 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