7.0high
mm/damon/dbgfs: protect targets destructions with kdamond_lock
- Severity
- 7.0high CVSS:3.1 by NVD
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mm/damon/dbgfs: protect targets destructions with kdamond_lock DAMON debugfs interface iterates current monitoring targets in 'dbgfs_target_ids_read()' while holding the corresponding 'kdamond_lock'. However, it also destructs the monitoring targets in 'dbgfs_before_terminate()' without holding the lock. This can result in a use_after_free bug. This commit avoids the race by protecting the destruction with the corresponding 'kdamond_lock'.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 4bc05954d0076655cfaf6f0135585bdc20cd6b11 before 330c6117a82c16a9a365a51cec5c9ab30b13245c, from 4bc05954d0076655cfaf6f0135585bdc20cd6b11 before 34796417964b8d0aef45a99cf6c2d20cebe33733, 5.15 Not affected: before 5.15, from 5.15.12 up to 5.15.*, from 5.16 up to * | CVE List |
| linux linux_kernel | from 5.15 before 5.15.12, 5.16 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mm/damon/dbgfs: protect targets destructions with kdamond_lock DAMON debugfs interface iterates current monitoring targets in 'dbgfs_target_ids_read()' while holding the corresponding 'kdamond_lock'. However, it also destructs the monitoring targets in 'dbgfs_before_terminate()' without holding the lock. This can result in a use_after_free bug. This commit avoids the race by protecting the destruction with the corresponding 'kdamond_lock'.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mm/damon/dbgfs: protege las destrucciones de objetivos con kdamond_lock La interfaz DAMON debugfs itera los objetivos de monitoreo actuales en 'dbgfs_target_ids_read()' mientras mantiene el correspondiente 'kdamond_lock'. Sin embargo, también destruye los objetivos de monitoreo en 'dbgfs_before_terminate()' sin mantener el bloqueo. Esto puede provocar un error use_after_free. Este compromiso evita la ejecución protegiendo la destrucción con el correspondiente 'kdamond_lock'.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47088 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47088 changed 2026-06-17 | Public domain |