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: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A NULL pointer dereference occurs in the Linux kernel’s DAMON_RECLAIM and DAMON_LRU_SORT subsystems when a damon_ctx allocation fails during module initialization. The code incorrectly assumes a successful allocation, and when the allocation returns NULL it proceeds to use the pointer, causing an OOPS system. This flaw is classified as CWE‑476.

Affected Systems

All Linux kernel builds that include the DAMON_RECLAIM or DAMON_LRU_SORT modules without the fix are vulnerable. This includes any kernel configuration that compiles these modules and does not contain the mm/damon/{reclaim,lru_sort}: handle ctx allocation failures patch series.

Risk and Exploitability

The EPSS score indicates a very low probability of exploitation (<ISA’s Known Exploited Vulnerabilities catalog. The likely attack vector is local privileged access or a kernel boot process that loads the affected modules; a failure to allocate the damon_ctx is theoretically possible but unlikely kernel crash leading to a denial of service.

Generated by OpenCVE AI on July 17, 2026 at 02:10 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the mm/damon/{reclaim,lru_sort} patch series, or install the patched kernel from the vendor.
  • If a kernel upgrade is not feasible, rebuild the kernel without the DAMON_RECLAIM and DAMON_LRU_SORT modules, or disable these modules at boot to eliminate the vulnerable code paths.
  • Set up automated monitoring of syslog and dmesg for OOPS or panic messages referencing damon_ctx to detect any crashes triggered by allocation failures.

Generated by OpenCVE AI on July 17, 2026 at 02:10 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

No data.

cve-icon Redhat

Severity :

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

Links: CVE-2026-53334 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-17T02:15:04Z

Weaknesses