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 'dbgfstargetidsread()' while holding the corresponding 'kdamondlock'. However, it also destructs the monitoring targets in 'dbgfsbeforeterminate()' without holding the lock. This can result in a useafterfree bug. This commit avoids the race by protecting the destruction with the corresponding 'kdamond_lock'.