{"id":"CVE-2026-31459","aliases":["CVE-2026-31459"],"related":[],"kind":"vulnerability","state":"published","title":"mm/damon/sysfs: fix param_ctx leak on damon_sysfs_new_test_ctx() failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs: fix param_ctx leak on damon_sysfs_new_test_ctx() failure\n\nPatch series \"mm/damon/sysfs: fix memory leak and NULL dereference\nissues\", v4.\n\nDAMON_SYSFS can leak memory under allocation failure, and do NULL pointer\ndereference when a privileged user make wrong sequences of control.  Fix\nthose.\n\n\nThis patch (of 3):\n\nWhen damon_sysfs_new_test_ctx() fails in damon_sysfs_commit_input(),\nparam_ctx is leaked because the early return skips the cleanup at the out\nlabel.  Destroy param_ctx before returning.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs: fix param_ctx leak on damon_sysfs_new_test_ctx() failure\n\nPatch series \"mm/damon/sysfs: fix memory leak and NULL dereference\nissues\", v4.\n\nDAMON_SYSFS can leak memory under allocation failure, and do NULL pointer\ndereference when a privileged user make wrong sequences of control.  Fix\nthose.\n\n\nThis patch (of 3):\n\nWhen damon_sysfs_new_test_ctx() fails in damon_sysfs_commit_input(),\nparam_ctx is leaked because the early return skips the cleanup at the out\nlabel.  Destroy param_ctx before returning.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/damon/sysfs: corregir fuga de param_ctx al fallar damon_sysfs_new_test_ctx()\n\nSerie de parches ’mm/damon/sysfs: corregir fuga de memoria y problemas de desreferencia de NULL’, v4.\n\nDAMON_SYSFS puede fugar memoria en caso de fallo de asignación y realizar desreferencia de puntero NULL cuando un usuario privilegiado realiza secuencias de control incorrectas. Corregir estos.\n\nEste parche (de 3):\n\nCuando damon_sysfs_new_test_ctx() falla en damon_sysfs_commit_input(), param_ctx se fuga porque el retorno anticipado omite la limpieza en la etiqueta ’out’. Destruir param_ctx antes de retornar.","source":"nvd"}],"published":"2026-04-22T13:53:51.554Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f","fixed":"e9de9f3ce06b133a348006668bc8d25c6e504867","status":"affected"},{"type":"git","introduced":"f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f","fixed":"f76f0a964bc3d7b7e253b43c669c41356bc54e71","status":"affected"},{"type":"git","introduced":"f0c5118ebb0eb7e4fd6f0d2ace3315ca141b317f","fixed":"7fe000eb32904758a85e62f6ea9483f89d5dabfc","status":"affected"},{"type":"git","version":"5b3609d9b9650bdea0bfdf643e0ce57e1aed67fc","status":"affected"},{"type":"semver","introduced":"6.17.6","fixed":"6.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.18.1","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"6.17.6"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e9de9f3ce06b133a348006668bc8d25c6e504867","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f76f0a964bc3d7b7e253b43c669c41356bc54e71","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7fe000eb32904758a85e62f6ea9483f89d5dabfc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31459","url":"https://www.cve.org/CVERecord?id=CVE-2026-31459","licence":"CVE Terms of Use","modified":"2026-05-23T16:05:06.874Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31459","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31459","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.272Z","epss":{"score":0.00125,"percentile":0.02402,"date":"2026-12-01T12:00:22.000Z"}}