Description
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.
Published: 2026-04-22
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel Damon sysfs subsystem contains a flaw that causes a memory leak when the helper function fails to allocate a context during sysfs operations. If a privileged user triggers this failure path, the allocated param_ctx is not freed, leading to gradual memory exhaustion. The same code path can also dereference a null pointer, causing an immediate kernel panic. These behaviors can be leveraged to disrupt service or crash the system, representing a denial‑of‑service vulnerability for the affected node.

Affected Systems

The issue affects Linux kernel releases that include the DAMON sysfs interface and expose the buggy code path. Specifically, affected kernel versions are 6.17.6, 6.18 and its release candidates rc3 through rc7, and 7.0 release candidates rc1 through rc5. The patch series v4 removes the leak by freeing param_ctx on failure and corrects the null dereference guard.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score is below 1 %, implying a low probability of exploitation at present. The vulnerability is not listed in the CISA KEV catalog, and no public exploit has been reported. Nonetheless, the flaw can be triggered by a local privileged user via sysfs, so there is a realistic risk of either memory exhaustion or kernel crash if the patch is not applied. Existing mitigations are limited, so patching is recommended.

Generated by OpenCVE AI on May 7, 2026 at 00:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch v4 that cleans up param_ctx and fixes the NULL dereference.
  • Reboot or reload the kernel to load the updated code.
  • If patching cannot be performed immediately, disable or restrict the DAMON sysfs interface on systems where it is not needed, limiting access to non‑privileged users.

Generated by OpenCVE AI on May 7, 2026 at 00:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 06 May 2026 22:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Wed, 06 May 2026 20:15:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:6.17.6:-:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:6.17.6:*:*:*:*:*:*:*

Wed, 06 May 2026 19:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:o:linux:linux_kernel:6.17.6:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Thu, 23 Apr 2026 00:15:00 +0000


Wed, 22 Apr 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-476

Wed, 22 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Description 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.
Title mm/damon/sysfs: fix param_ctx leak on damon_sysfs_new_test_ctx() 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-05-23T16:05:06.874Z

Reserved: 2026-03-09T15:48:24.092Z

Link: CVE-2026-31459

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-04-22T14:16:41.417

Modified: 2026-05-06T20:03:36.607

Link: CVE-2026-31459

cve-icon Redhat

Severity :

Publid Date: 2026-04-22T00:00:00Z

Links: CVE-2026-31459 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-07T00:15:05Z

Weaknesses