What’s Vulnerable › Vulnerabilities
CVE-2026-53335: mm/damon/lru_sort: handle ctx allocation failure
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-01 · updated 2026-07-23
- Weakness: CWE-476
Description
In the Linux kernel, the following vulnerability has been resolved: mm/damon/lru_sort: handle ctx allocation failure DAMON_LRU_SORT allocates the damon_ctx object for its kdamond in its init function. damon_lru_sort_enabled_store() wrongly assumes the allocation will always succeed once tried. If the damon_ctx allocation was failed, therefore, code execution reaches to damon_commit_ctx() while 'ctx' is NULL. As a result, it dereferences the NULL 'ctx' pointer. Avoid the NULL dereference by returning -ENOMEM if 'ctx' is NULL.
Affected products
- Linux kernel: from 6.18 before 6.18.36; from 6.19 before 7.0.13; 7.1-rc1, 7.1-rc2, 7.1-rc3, 7.1-rc4, 7.1-rc5, 7.1-rc6 (+1) — fixed in 6.18.36, 7.0.13
How to fix
Upgrade to a fixed version: Linux kernel 6.18.36, 7.0.13. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/6d48f15659395bf1381114f01be91bc68e0be46a
- https://git.kernel.org/stable/c/ab04340b5ae5d52c1d46b750538febcde9d889e7
- https://git.kernel.org/stable/c/daab1996431a71f43219dcac48ecc9ad2aad3f1c
Get alerted when CVE-2026-53335 or the next vulnerability affects your stack