# CVE-2026-53335: mm/damon/lru_sort: handle ctx allocation failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-01T13:32:17.953Z
- Modified: 2026-07-23T21:33:33.100Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c4a8e662c839ac0003e4781aa324cb2d68ed9cb1 before 6d48f15659395bf1381114f01be91bc68e0be46a; from c4a8e662c839ac0003e4781aa324cb2d68ed9cb1 before daab1996431a71f43219dcac48ecc9ad2aad3f1c; from c4a8e662c839ac0003e4781aa324cb2d68ed9cb1 before ab04340b5ae5d52c1d46b750538febcde9d889e7; 6.18 (not affected: before 6.18; from 6.18.36 up to 6.18.*; from 7.0.13 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 6.18 before 6.18.36; from 6.19 before 7.0.13; 7.1

## References

- <https://git.kernel.org/stable/c/6d48f15659395bf1381114f01be91bc68e0be46a> (patch)
- <https://git.kernel.org/stable/c/daab1996431a71f43219dcac48ecc9ad2aad3f1c> (patch)
- <https://git.kernel.org/stable/c/ab04340b5ae5d52c1d46b750538febcde9d889e7> (patch)

## Sources

- CVE List: [CVE-2026-53335](https://www.cve.org/CVERecord?id=CVE-2026-53335), CVE Terms of Use, modified 2026-07-01
- NVD: [CVE-2026-53335](https://nvd.nist.gov/vuln/detail/CVE-2026-53335), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-53335 · Whole record: https://cve.day/CVE-2026-53335.json · Rebuilt by cve.day 2026-11-25T22:59:26.895Z
