CVE-2021-47088: mm/damon/dbgfs: protect targets destructions with kdamond_lock
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/dbgfs: protect targets destructions with kdamondlock
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 'kdamondlock'.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/dbgfs: protect targets destructions with kdamondlock
The Linux kernel CVE team has assigned CVE-2021-47088 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024030413-CVE-2021-47088-269c@gregkh/T
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.15.12 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.16
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47088?
CVE-2021-47088 is classified as a medium-severity vulnerability affecting the Linux kernel.
How do I fix CVE-2021-47088?
To resolve CVE-2021-47088, update your Linux kernel to a version later than 5.15.12.
What versions of the Linux kernel are affected by CVE-2021-47088?
CVE-2021-47088 affects Linux kernel versions from 5.15 to 5.16-rc6.
What is the nature of CVE-2021-47088?
CVE-2021-47088 involves a vulnerability in the DAMON debugfs interface in the Linux kernel.
What impact does CVE-2021-47088 have on systems?
CVE-2021-47088 may lead to improper handling of monitoring targets in the Linux kernel, potentially affecting system stability.