What’s Vulnerable › Vulnerabilities
CVE-2021-47088: mm/damon/dbgfs: protect targets destructions with kdamond_lock
- Severity: high (CVSS 7.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-04 · updated 2026-06-17
- Weakness: CWE-416
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 products
- Linux kernel: from 5.15 before 5.15.12; 5.16-rc1, 5.16-rc2, 5.16-rc3, 5.16-rc4, 5.16-rc5, 5.16-rc6 — fixed in 5.15.12
How to fix
Upgrade to a fixed version: Linux kernel 5.15.12. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/330c6117a82c16a9a365a51cec5c9ab30b13245c
- https://git.kernel.org/stable/c/34796417964b8d0aef45a99cf6c2d20cebe33733
- https://git.kernel.org/stable/c/330c6117a82c16a9a365a51cec5c9ab30b13245c
- https://git.kernel.org/stable/c/34796417964b8d0aef45a99cf6c2d20cebe33733
Get alerted when CVE-2021-47088 or the next vulnerability affects your stack