← CVE Intelligence

CVE-2021-47088

mm/damon/dbgfs: protect targets destructions with kdamond_lock PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected 4bc05954d0076655cfaf6f0135585bdc20cd6b11 before 330c6117a82c16a9a365a51cec5c9ab30b13245c; affected 4bc05954d0076655cfaf6f0135585bdc20cd6b11 before 34796417964b8d0aef45a99cf6c2d20cebe33733
Linux / Linuxaffected 5.15; unaffected 0 before 5.15; unaffected 5.15.12 through 5.15.*; unaffected 5.16 through *

CWE

No CWE identifiers supplied.

References

ADP enrichment

CVE

No English description supplied.

CISA-ADP

No English description supplied.

No references supplied.