CVE-2026-46087 PUBLISHED

mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()

Assigner: Linux
Reserved: 13.05.2026 Published: 27.05.2026 Updated: 27.05.2026

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

mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()

Destroy the DAMON context and reset the global pointer when damon_start() fails. Otherwise, the context allocated by damon_stat_build_ctx() is leaked, and the stale damon_stat_context pointer will be overwritten on the next enable attempt, making the old allocation permanently unreachable.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 369c415e60732b7c8ed33368891581246f580d7a to 8a62c58411cbd748d7aeab0e5b0963e33ff47a7a (excl.)
  • affected from 369c415e60732b7c8ed33368891581246f580d7a to 50bc1d7e0f3bb6932c8dc5da0907eead0790176b (excl.)
  • affected from 369c415e60732b7c8ed33368891581246f580d7a to e04ed278d25bf15769800bf6e35c6737f137186f (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.17 is affected
  • unaffected from 0 to 6.17 (excl.)
  • unaffected from 6.18.27 to 6.18.* (incl.)
  • unaffected from 7.0.4 to 7.0.* (incl.)
  • unaffected from 7.1-rc1 to * (incl.)

References