Bug 2460637 (CVE-2026-31459) - CVE-2026-31459 kernel: mm/damon/sysfs: fix param_ctx leak on damon_sysfs_new_test_ctx() failure
Summary: CVE-2026-31459 kernel: mm/damon/sysfs: fix param_ctx leak on damon_sysfs_new_...
Keywords:
Status: NEW
Alias: CVE-2026-31459
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-04-22 15:02 UTC by OSIDB Bzimport
Modified: 2026-04-22 17:48 UTC (History)
0 users

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-04-22 15:02:17 UTC
In the Linux kernel, the following vulnerability has been resolved:

mm/damon/sysfs: fix param_ctx leak on damon_sysfs_new_test_ctx() failure

Patch series "mm/damon/sysfs: fix memory leak and NULL dereference
issues", v4.

DAMON_SYSFS can leak memory under allocation failure, and do NULL pointer
dereference when a privileged user make wrong sequences of control.  Fix
those.


This patch (of 3):

When damon_sysfs_new_test_ctx() fails in damon_sysfs_commit_input(),
param_ctx is leaked because the early return skips the cleanup at the out
label.  Destroy param_ctx before returning.


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