# CVE-2022-48996: mm/damon/sysfs: fix wrong empty schemes assumption under online tuning in damon_sysfs_set_schemes()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 11% of CVEs (2026-11-30)
- Published: 2024-10-21T20:06:12.122Z
- Modified: 2026-06-17T05:16:48.450Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/damon/sysfs: fix wrong empty schemes assumption under online tuning in damon_sysfs_set_schemes()

Commit da87878010e5 ("mm/damon/sysfs: support online inputs update") made
'damon_sysfs_set_schemes()' 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
'damon_sysfs_set_schemes()' to fix the bug.

(As written by CVE List.)

## Affected

- Linux Linux: from da87878010e59869d4d27b3c01ecc8ec06ff4a20 before f98d1f2a36ad7ab48fb4cf73ca14e7b19482fd4d; from da87878010e59869d4d27b3c01ecc8ec06ff4a20 before 95bc35f9bee5220dad4e8567654ab3288a181639; 5.19 (not affected: before 5.19; from 6.0.12 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.19 before 6.0.12; 6.1

## References

- <https://git.kernel.org/stable/c/f98d1f2a36ad7ab48fb4cf73ca14e7b19482fd4d> (patch)
- <https://git.kernel.org/stable/c/95bc35f9bee5220dad4e8567654ab3288a181639> (patch)

## Sources

- CVE List: [CVE-2022-48996](https://www.cve.org/CVERecord?id=CVE-2022-48996), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48996](https://nvd.nist.gov/vuln/detail/CVE-2022-48996), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48996 · Whole record: https://cve.day/CVE-2022-48996.json · Rebuilt by cve.day 2026-11-25T22:58:20.022Z
