CVE-2021-47088

mm/damon/dbgfs: protect targets destructions with kdamond_lock

State
Published
Severity
Not scored
Published
Mar 4, 2024
Updated
May 11, 2026
Reserved
Feb 29, 2024

Read the record on cve.org

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'.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4bc05954d0076655cfaf6f0135585bdc20cd6b11 to before 330c6117a82c16a9a365a51cec5c9ab30b13245cAffected
  • 4bc05954d0076655cfaf6f0135585bdc20cd6b11 to before 34796417964b8d0aef45a99cf6c2d20cebe33733Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.12 through 5.15.*Not affected
  • 5.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.