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'.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 4bc05954d0076655cfaf6f0135585bdc20cd6b11, < 330c6117a82c16a9a365a51cec5c9ab30b13245c; >= 4bc05954d0076655cfaf6f0135585bdc20cd6b11, < 34796417964b8d0aef45a99cf6c2d20cebe33733 |
| Linux | Linux | 5.15 |
References
- https://git.kernel.org/stable/c/330c6117a82c16a9a365a51cec5c9ab30b13245cPatch
- https://git.kernel.org/stable/c/34796417964b8d0aef45a99cf6c2d20cebe33733Patch
- https://git.kernel.org/stable/c/330c6117a82c16a9a365a51cec5c9ab30b13245cPatch
- https://git.kernel.org/stable/c/34796417964b8d0aef45a99cf6c2d20cebe33733Patch
Timeline
- Published
- Mar 4, 2024
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed