Bug 2495934 (CVE-2026-53334) - CVE-2026-53334 kernel: mm/damon/reclaim: handle ctx allocation failure
Summary: CVE-2026-53334 kernel: mm/damon/reclaim: handle ctx allocation failure
Keywords:
Status: NEW
Alias: CVE-2026-53334
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-01 14:01 UTC by OSIDB Bzimport
Modified: 2026-07-01 18:42 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-01 14:01:57 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-07-01 18:34:40 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026070143-CVE-2026-53334-4d11@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.