CVE-2026-53334

mm/damon/reclaim: handle ctx allocation failure

Published Jul 1, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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. The CVSS score of 5.5 indicates moderate severity.

Remediation

No solution or workaround provided in the CVE record.

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 13, 2026 at 12:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8727-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8800-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Weaknesses CWE-476
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jul 1, 2026, 1:32 PM
Reserved
Jun 9, 2026, 7:44 AM
Status
Analyzed
Published
Jul 1, 2026, 2:16 PM
Modified
Jul 23, 2026, 9:33 PM
Severity
Public date
Jul 1, 2026, 12:00 AM