{"id":"CVE-2026-53335","state":"PUBLISHED","title":"mm/damon/lru_sort: handle ctx allocation failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/lru_sort: handle ctx allocation failure\n\nDAMON_LRU_SORT allocates the damon_ctx object for its kdamond in its init\nfunction.  damon_lru_sort_enabled_store() wrongly assumes the allocation\nwill always succeed once tried.  If the damon_ctx allocation was failed,\ntherefore, code execution reaches to damon_commit_ctx() while 'ctx' is\nNULL.  As a result, it dereferences the NULL 'ctx' pointer.  Avoid the\nNULL dereference by returning -ENOMEM if 'ctx' is NULL.","publishedAt":"2026-07-01T13:32:17.953Z","updatedAt":"2026-07-01T13:32:17.953Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c4a8e662c839ac0003e4781aa324cb2d68ed9cb1","status":"affected","lessThan":"6d48f15659395bf1381114f01be91bc68e0be46a","versionType":"git"},{"version":"c4a8e662c839ac0003e4781aa324cb2d68ed9cb1","status":"affected","lessThan":"daab1996431a71f43219dcac48ecc9ad2aad3f1c","versionType":"git"},{"version":"c4a8e662c839ac0003e4781aa324cb2d68ed9cb1","status":"affected","lessThan":"ab04340b5ae5d52c1d46b750538febcde9d889e7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/lru_sort.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.36","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.13","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/lru_sort.c"]}],"references":["https://git.kernel.org/stable/c/6d48f15659395bf1381114f01be91bc68e0be46a","https://git.kernel.org/stable/c/daab1996431a71f43219dcac48ecc9ad2aad3f1c","https://git.kernel.org/stable/c/ab04340b5ae5d52c1d46b750538febcde9d889e7"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/53xxx/CVE-2026-53335.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-53335","state":"PUBLISHED","datePublished":"2026-07-01T13:32:17.953Z","dateUpdated":"2026-07-01T13:32:17.953Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-06-09T07:44:35.399Z"},"containers":{"cna":{"title":"mm/damon/lru_sort: handle ctx allocation failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/lru_sort: handle ctx allocation failure\n\nDAMON_LRU_SORT allocates the damon_ctx object for its kdamond in its init\nfunction.  damon_lru_sort_enabled_store() wrongly assumes the allocation\nwill always succeed once tried.  If the damon_ctx allocation was failed,\ntherefore, code execution reaches to damon_commit_ctx() while 'ctx' is\nNULL.  As a result, it dereferences the NULL 'ctx' pointer.  Avoid the\nNULL dereference by returning -ENOMEM if 'ctx' is NULL."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c4a8e662c839ac0003e4781aa324cb2d68ed9cb1","status":"affected","lessThan":"6d48f15659395bf1381114f01be91bc68e0be46a","versionType":"git"},{"version":"c4a8e662c839ac0003e4781aa324cb2d68ed9cb1","status":"affected","lessThan":"daab1996431a71f43219dcac48ecc9ad2aad3f1c","versionType":"git"},{"version":"c4a8e662c839ac0003e4781aa324cb2d68ed9cb1","status":"affected","lessThan":"ab04340b5ae5d52c1d46b750538febcde9d889e7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/damon/lru_sort.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.36","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.13","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/lru_sort.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6d48f15659395bf1381114f01be91bc68e0be46a"},{"url":"https://git.kernel.org/stable/c/daab1996431a71f43219dcac48ecc9ad2aad3f1c"},{"url":"https://git.kernel.org/stable/c/ab04340b5ae5d52c1d46b750538febcde9d889e7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-07-01T13:32:17.953Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.36"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.0.13"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}