{"id":"CVE-2026-46087","state":"PUBLISHED","title":"mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()\n\nDestroy the DAMON context and reset the global pointer when damon_start()\nfails.  Otherwise, the context allocated by damon_stat_build_ctx() is\nleaked, and the stale damon_stat_context pointer will be overwritten on\nthe next enable attempt, making the old allocation permanently\nunreachable.","publishedAt":"2026-05-27T12:58:30.611Z","updatedAt":"2026-06-14T17:53:23.838Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"369c415e60732b7c8ed33368891581246f580d7a","status":"affected","lessThan":"8a62c58411cbd748d7aeab0e5b0963e33ff47a7a","versionType":"git"},{"version":"369c415e60732b7c8ed33368891581246f580d7a","status":"affected","lessThan":"50bc1d7e0f3bb6932c8dc5da0907eead0790176b","versionType":"git"},{"version":"369c415e60732b7c8ed33368891581246f580d7a","status":"affected","lessThan":"e04ed278d25bf15769800bf6e35c6737f137186f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/stat.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.27","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.4","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/stat.c"]}],"references":["https://git.kernel.org/stable/c/8a62c58411cbd748d7aeab0e5b0963e33ff47a7a","https://git.kernel.org/stable/c/50bc1d7e0f3bb6932c8dc5da0907eead0790176b","https://git.kernel.org/stable/c/e04ed278d25bf15769800bf6e35c6737f137186f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/46xxx/CVE-2026-46087.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-46087","state":"PUBLISHED","datePublished":"2026-05-27T12:58:30.611Z","dateUpdated":"2026-06-14T17:53:23.838Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.096Z"},"containers":{"cna":{"title":"mm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/stat: fix memory leak on damon_start() failure in damon_stat_start()\n\nDestroy the DAMON context and reset the global pointer when damon_start()\nfails.  Otherwise, the context allocated by damon_stat_build_ctx() is\nleaked, and the stale damon_stat_context pointer will be overwritten on\nthe next enable attempt, making the old allocation permanently\nunreachable."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"369c415e60732b7c8ed33368891581246f580d7a","status":"affected","lessThan":"8a62c58411cbd748d7aeab0e5b0963e33ff47a7a","versionType":"git"},{"version":"369c415e60732b7c8ed33368891581246f580d7a","status":"affected","lessThan":"50bc1d7e0f3bb6932c8dc5da0907eead0790176b","versionType":"git"},{"version":"369c415e60732b7c8ed33368891581246f580d7a","status":"affected","lessThan":"e04ed278d25bf15769800bf6e35c6737f137186f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/stat.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.27","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.4","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/stat.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8a62c58411cbd748d7aeab0e5b0963e33ff47a7a"},{"url":"https://git.kernel.org/stable/c/50bc1d7e0f3bb6932c8dc5da0907eead0790176b"},{"url":"https://git.kernel.org/stable/c/e04ed278d25bf15769800bf6e35c6737f137186f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-14T17:53:23.838Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.27"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.0.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}