mm/damon/sysfs-schemes: call missing mem_cgroup_iter_break()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s damon_sysfs_memcg_path_to_id() can leak a cgroup reference when it exits a mem_cgroup_iter() loop without calling mem_cgroup_iter_break(). The input does not specify an attacker action or whether exploitation requires network access, authentication, local access, or user interaction.
Engineers running the Linux kernel should check whether their version is affected; affected versions were not provided.