Bug 2495946 (CVE-2026-53335) - CVE-2026-53335 kernel: mm/damon/lru_sort: handle ctx allocation failure
Summary: CVE-2026-53335 kernel: mm/damon/lru_sort: handle ctx allocation failure
Keywords:
Status: NEW
Alias: CVE-2026-53335
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:02 UTC by OSIDB Bzimport
Modified: 2026-07-01 17:12 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:02:49 UTC
In the Linux kernel, the following vulnerability has been resolved:

mm/damon/lru_sort: handle ctx allocation failure

DAMON_LRU_SORT allocates the damon_ctx object for its kdamond in its init
function.  damon_lru_sort_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 17:05:38 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026070143-CVE-2026-53335-6f05@gregkh/T


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