# CVE-2021-47088: mm/damon/dbgfs: protect targets destructions with kdamond_lock

- Severity: High 7.0 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2024-03-04T18:10:26.511Z
- Modified: 2026-06-17T04:16:26.307Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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'.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.15 before 5.15.12; 5.16

## References

- <https://git.kernel.org/stable/c/330c6117a82c16a9a365a51cec5c9ab30b13245c> (patch)
- <https://git.kernel.org/stable/c/34796417964b8d0aef45a99cf6c2d20cebe33733> (patch)

## Sources

- CVE List: [CVE-2021-47088](https://www.cve.org/CVERecord?id=CVE-2021-47088), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47088](https://nvd.nist.gov/vuln/detail/CVE-2021-47088), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47088 · Whole record: https://cve.day/CVE-2021-47088.json · Rebuilt by cve.day 2026-11-25T22:58:08.654Z
