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

Summary

CVECVE-2026-31459
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-04-22 14:16:41 UTC
Updated2026-04-23 16:17:41 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.000170000 probability, percentile 0.040460000 (date 2026-04-23)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f e9de9f3ce06b133a348006668bc8d25c6e504867 git Not specified
CNA Linux Linux affected f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f f76f0a964bc3d7b7e253b43c669c41356bc54e71 git Not specified
CNA Linux Linux affected f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f 7fe000eb32904758a85e62f6ea9483f89d5dabfc git Not specified
CNA Linux Linux affected 5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc git Not specified
CNA Linux Linux affected 6.18 Not specified
CNA Linux Linux unaffected 6.18 semver Not specified
CNA Linux Linux unaffected 6.18.21 6.18.* semver Not specified
CNA Linux Linux unaffected 6.19.11 6.19.* semver Not specified
CNA Linux Linux unaffected 7.0 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/f76f0a964bc3d7b7e253b43c669c41356bc54e71 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7fe000eb32904758a85e62f6ea9483f89d5dabfc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e9de9f3ce06b133a348006668bc8d25c6e504867 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report