mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
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: free old damon_sysfs_scheme_filter->memcg_path on write
memcg_path_store() assigns a newly allocated memory buffer to filter->memcg_path, without deallocating the previously allocated and assigned memory buffer. As a result, users can leak kernel memory by continuously writing a data to memcg_path DAMOS sysfs file. Fix the leak by deallocating the previously set memory buffer.
From the CVE record · Linux
The Linux kernel's DAMOS sysfs schemes code does not free the previous memcg_path buffer when a new value is written. A user who can write to the memcg_path DAMOS sysfs file can leak kernel memory through repeated writes.
Teams running Linux kernels with the affected DAMOS sysfs schemes code should check their installations; affected versions were not provided.