CVE-2021-47088
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_kernelfrom 5.15 before 5.15.12, 5.16NVD

Classification

CWE-416

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

SourceRecordLicence
CVE ListCVE-2021-47088 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47088 changed 2026-06-17Public domain