mm/damon/sysfs-scheme: cleanup access_pattern subdirs on scheme dir setup failure
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-scheme: cleanup access_pattern subdirs on scheme dir setup failure
When a DAMOS-scheme DAMON sysfs directory setup fails after setup of access_pattern/ directory, subdirectories of access_pattern/ directory are not cleaned up. As a result, DAMON sysfs interface is nearly broken until the system reboots, and the memory for the unremoved directory is leaked.
Cleanup the directories under such failures.
From the CVE record · Linux
If DAMON sysfs scheme directory setup fails after creating the access_pattern directory, its subdirectories are not cleaned up. The DAMON sysfs interface can remain nearly broken until reboot, and memory is leaked. The input does not specify whether an attacker can trigger the failure or what access or user interaction would be required.
Engineers running Linux kernels that use the DAMON sysfs interface should check their affected versions; none are specified in the input.