CVE-2022-48996: mm/damon/sysfs: fix wrong empty schemes assumption under online tuning in damon_sysfs_set_schemes()
In the Linux kernel, the following vulnerability has been resolved:
mm/damon/sysfs: fix wrong empty schemes assumption under online tuning in damonsysfssetschemes()
Commit da87878010e5 ("mm/damon/sysfs: support online inputs update") made 'damonsysfssetschemes()' to be called for running DAMON context, which could have schemes. In the case, DAMON sysfs interface is supposed to update, remove, or add schemes to reflect the sysfs files. However, the code is assuming the DAMON context wouldn't have schemes at all, and therefore creates and adds new schemes. As a result, the code doesn't work as intended for online schemes tuning and could have more than expected memory footprint. The schemes are all in the DAMON context, so it doesn't leak the memory, though.
Remove the wrong asssumption (the DAMON context wouldn't have schemes) in 'damonsysfssetschemes()' to fix the bug.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2022-48996?
CVE-2022-48996 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2022-48996?
To fix CVE-2022-48996, update your Linux kernel to versions 6.0.12 or later, or apply the appropriate patches.
Which versions of Linux kernel are affected by CVE-2022-48996?
CVE-2022-48996 affects Linux kernel versions from 5.19 up to 6.0.12 and various 6.1 release candidates.
What impact does CVE-2022-48996 have on Linux systems?
CVE-2022-48996 can cause improper assumptions during online tuning, potentially leading to system performance issues.
Who is the vendor for the CVE-2022-48996 Linux kernel vulnerability?
The vendor for the CVE-2022-48996 vulnerability is the Linux kernel development community.