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.
Published: 2026-07-01
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An allocation failure in the DAMON_RECLAIM and DAMON_LRU_SORT parts of the Linux kernel causes a NULL pointer dereference during module initialization. If the damon_ctx structure cannot be allocated, the code continues to use a NULL context pointer, resulting in a kernel OOPS and system crash.

Affected Systems

All Linux kernel builds that compile the DAMON_RECLAIM or DAMON_LRU_SORT modules without the mm/damon/{reclaim,lru_sort} patch series are vulnerable. This includes custom kernels, distribution kernels that enable DAMON by default, and embedded or specialized images that include these subsystems.

Risk and Exploitability

The EPSS score is less than 1%, indicating a very low likelihood of exploitation in practice, and the vulnerability is not listed in the CISA KEV catalog, meaning no publicly known exploits. Based on the description, it is inferred that the attack would require a damon_ctx allocation to fail during module initialization, a situation that is rare and might occur only under high memory pressure or constrained system resources. No attractive remote attack vector is indicated.

Generated by OpenCVE AI on August 1, 2026 at 23:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update to a kernel version that includes the mm/damon/{reclaim,lru_sort} patch series or apply the patch if you maintain the source tree.
  • Disable the DAMON_RECLAIM and DAMON_LRU_SORT modules in the kernel configuration to avoid the vulnerable code paths.
  • Monitor kernel logs (e.g., dmesg, syslog) for messages containing "damon_ctx" that indicate a kernel OOPS triggered by this bug.

Generated by OpenCVE AI on August 1, 2026 at 23:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 02 Jul 2026 00:15:00 +0000


Wed, 01 Jul 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Wed, 01 Jul 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Wed, 01 Jul 2026 13:45:00 +0000

Type Values Removed Values Added
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.
Title mm/damon/reclaim: handle ctx allocation failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-01T13:32:17.419Z

Reserved: 2026-06-09T07:44:35.398Z

Link: CVE-2026-53334

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-07-01T14:16:41.350

Modified: 2026-07-23T21:33:43.947

Link: CVE-2026-53334

cve-icon Redhat

Severity :

Publid Date: 2026-07-01T00:00:00Z

Links: CVE-2026-53334 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T23:45:03Z

Weaknesses