{"id":"CVE-2026-31653","state":"PUBLISHED","title":"mm/damon/sysfs: dealloc repeat_call_control if damon_call() fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs: dealloc repeat_call_control if damon_call() fails\n\ndamon_call() for repeat_call_control of DAMON_SYSFS could fail if somehow\nthe kdamond is stopped before the damon_call().  It could happen, for\nexample, when te damon context was made for monitroing of a virtual\naddress processes, and the process is terminated immediately, before the\ndamon_call() invocation.  In the case, the dyanmically allocated\nrepeat_call_control is not deallocated and leaked.\n\nFix the leak by deallocating the repeat_call_control under the\ndamon_call() failure.\n\nThis issue is discovered by sashiko [1].","publishedAt":"2026-04-24T14:45:05.689Z","updatedAt":"2026-05-11T22:12:58.645Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d","status":"affected","lessThan":"b9dadf026a9fb681ed32a0646adc10ab485bf3b1","versionType":"git"},{"version":"04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d","status":"affected","lessThan":"0655f5cf1735508394ef8af98ddcfab3ac1c1cc5","versionType":"git"},{"version":"04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d","status":"affected","lessThan":"0199390a6b92fc21860e1b858abf525c7e73b956","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/sysfs.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.23","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.13","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/sysfs.c"]}],"references":["https://git.kernel.org/stable/c/b9dadf026a9fb681ed32a0646adc10ab485bf3b1","https://git.kernel.org/stable/c/0655f5cf1735508394ef8af98ddcfab3ac1c1cc5","https://git.kernel.org/stable/c/0199390a6b92fc21860e1b858abf525c7e73b956"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31653.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31653","state":"PUBLISHED","datePublished":"2026-04-24T14:45:05.689Z","dateUpdated":"2026-05-11T22:12:58.645Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.128Z"},"containers":{"cna":{"title":"mm/damon/sysfs: dealloc repeat_call_control if damon_call() fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs: dealloc repeat_call_control if damon_call() fails\n\ndamon_call() for repeat_call_control of DAMON_SYSFS could fail if somehow\nthe kdamond is stopped before the damon_call().  It could happen, for\nexample, when te damon context was made for monitroing of a virtual\naddress processes, and the process is terminated immediately, before the\ndamon_call() invocation.  In the case, the dyanmically allocated\nrepeat_call_control is not deallocated and leaked.\n\nFix the leak by deallocating the repeat_call_control under the\ndamon_call() failure.\n\nThis issue is discovered by sashiko [1]."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d","status":"affected","lessThan":"b9dadf026a9fb681ed32a0646adc10ab485bf3b1","versionType":"git"},{"version":"04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d","status":"affected","lessThan":"0655f5cf1735508394ef8af98ddcfab3ac1c1cc5","versionType":"git"},{"version":"04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d","status":"affected","lessThan":"0199390a6b92fc21860e1b858abf525c7e73b956","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/sysfs.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.23","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.13","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/sysfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b9dadf026a9fb681ed32a0646adc10ab485bf3b1"},{"url":"https://git.kernel.org/stable/c/0655f5cf1735508394ef8af98ddcfab3ac1c1cc5"},{"url":"https://git.kernel.org/stable/c/0199390a6b92fc21860e1b858abf525c7e73b956"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T22:12:58.645Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.23"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.19.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}