CVE-2026-31653
JSON

5.5medium

mm/damon/sysfs: dealloc repeat_call_control if damon_call() fails

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.12% (higher than 1% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: dealloc repeat_call_control if damon_call() fails damon_call() for repeat_call_control of DAMON_SYSFS could fail if somehow the kdamond is stopped before the damon_call(). It could happen, for example, when te damon context was made for monitroing of a virtual address processes, and the process is terminated immediately, before the damon_call() invocation. In the case, the dyanmically allocated repeat_call_control is not deallocated and leaked. Fix the leak by deallocating the repeat_call_control under the damon_call() failure. This issue is discovered by sashiko [1].

Affected

Product or packageVersionsReported by
Linux Linuxfrom 04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d before b9dadf026a9fb681ed32a0646adc10ab485bf3b1, from 04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d before 0655f5cf1735508394ef8af98ddcfab3ac1c1cc5, from 04a06b139ec08aa63d7377f6d3e5218f8ddb1c5d before 0199390a6b92fc21860e1b858abf525c7e73b956, 6.17
Not affected: before 6.17, from 6.18.23 up to 6.18.*, from 6.19.13 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.17.1 before 6.18.23, from 6.19 before 6.19.13, 6.17, 7.0NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: dealloc repeat_call_control if damon_call() fails damon_call() for repeat_call_control of DAMON_SYSFS could fail if somehow the kdamond is stopped before the damon_call(). It could happen, for example, when te damon context was made for monitroing of a virtual address processes, and the process is terminated immediately, before the damon_call() invocation. In the case, the dyanmically allocated repeat_call_control is not deallocated and leaked. Fix the leak by deallocating the repeat_call_control under the damon_call() failure. This issue is discovered by sashiko [1].

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: mm/damon/sysfs: desasigna repeat_call_control si damon_call() falla damon_call() para repeat_call_control de DAMON_SYSFS podría fallar si de alguna manera el kdamond se detiene antes de la damon_call(). Podría ocurrir, por ejemplo, cuando el contexto de damon fue creado para la monitorización de procesos de dirección virtual, y el proceso termina inmediatamente, antes de la invocación de damon_call(). En ese caso, el repeat_call_control asignado dinámicamente no es desasignado y se fuga. Soluciona la fuga desasignando el repeat_call_control en caso de fallo de damon_call(). Este problema es descubierto por sashiko [1].

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31653 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-31653 changed 2026-11-11Public domain