{"id":"CVE-2026-53335","summary":"mm/damon/lru_sort: handle ctx allocation failure","details":"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.","modified":"2026-07-08T08:13:46.209413238Z","published":"2026-07-01T13:32:17.953Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53335.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6d48f15659395bf1381114f01be91bc68e0be46a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab04340b5ae5d52c1d46b750538febcde9d889e7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/daab1996431a71f43219dcac48ecc9ad2aad3f1c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53335.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53335"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c4a8e662c839ac0003e4781aa324cb2d68ed9cb1"},{"fixed":"6d48f15659395bf1381114f01be91bc68e0be46a"},{"fixed":"daab1996431a71f43219dcac48ecc9ad2aad3f1c"},{"fixed":"ab04340b5ae5d52c1d46b750538febcde9d889e7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53335.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.18.0"},{"fixed":"6.18.36"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.0.13"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53335.json"}}],"schema_version":"1.7.5"}