# CVE-2026-53334: mm/damon/reclaim: 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.419Z
- Modified: 2026-07-23T21:33:43.947Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/reclaim: handle ctx allocation failure

Patch series "mm/damon/{reclaim,lru_sort}: handle ctx allocation failures".

DAMON_RECLAIM and DAMON_LRU_SORT could dereference NULL pointers if their
damon_ctx object allocations fail.  The bugs are expected to happen
infrequently because the allocations are arguably too small to fail on
common setups.  But theoretically they are possible and the consequences
are bad.  Fix those.

The issues were discovered [1] by Sashiko.


This patch (of 2):

DAMON_RECLAIM allocates the damon_ctx object for its kdamond in its init
function.  damon_reclaim_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 3f7a914ab9a5e46cf8aac7de270f02aa3f63de04 before 66bc00ea37fa8ec14be5a3909d067a5967ef234b; from 3f7a914ab9a5e46cf8aac7de270f02aa3f63de04 before 635b45ce61de53a9357e28ac97461428cdb650f0; from 3f7a914ab9a5e46cf8aac7de270f02aa3f63de04 before 7e2ed8a29427af534bf2cb9b8bc51762b8b6e654; 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/66bc00ea37fa8ec14be5a3909d067a5967ef234b> (patch)
- <https://git.kernel.org/stable/c/635b45ce61de53a9357e28ac97461428cdb650f0> (patch)
- <https://git.kernel.org/stable/c/7e2ed8a29427af534bf2cb9b8bc51762b8b6e654> (patch)

## Sources

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

---

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