Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs-schemes: call missing mem_cgroup_iter_break() damon_sysfs_memcg_path_to_id() breaks mem_cgroup_iter() loop without calling mem_cgroup_iter_break(). This leaks the cgroup reference. Fix the issue by calling mem_cgroup_iter_break() before the break. The issue was discovered [1] by Sashiko.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 29cbb9a13f05b20f0777c60db9603730b487a4e0 before 082351f9d40007414ad6af062b3a26fa02fd4b5f; affected 29cbb9a13f05b20f0777c60db9603730b487a4e0 before 30a361be33f3793b9ecbd10ab7be6d0564819b79; affected 29cbb9a13f05b20f0777c60db9603730b487a4e0 before 302e02f9ba49f81418ec2a749ae6f5cac1d424e9; affected 29cbb9a13f05b20f0777c60db9603730b487a4e0 before 1bd31386ec3b9ccec10c04429948a306ec5897c0; affected 29cbb9a13f05b20f0777c60db9603730b487a4e0 before d4e7b5c4cc353f154d5ab8bb2e1ce7714d77a6e9 |
| Linux / Linux | affected 6.3; unaffected 0 before 6.3; unaffected 6.6.142 through 6.6.*; unaffected 6.12.92 through 6.12.*; unaffected 6.18.34 through 6.18.*; unaffected 7.0.11 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/082351f9d40007414ad6af062b3a26fa02fd4b5f
- https://git.kernel.org/stable/c/30a361be33f3793b9ecbd10ab7be6d0564819b79
- https://git.kernel.org/stable/c/302e02f9ba49f81418ec2a749ae6f5cac1d424e9
- https://git.kernel.org/stable/c/1bd31386ec3b9ccec10c04429948a306ec5897c0
- https://git.kernel.org/stable/c/d4e7b5c4cc353f154d5ab8bb2e1ce7714d77a6e9