sched/debug: fix dentry leak in update_sched_domain_debugfs
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 |
|
|
5.15.685.19.96.0In the Linux kernel, the following vulnerability has been resolved:
sched/debug: fix dentry leak in update_sched_domain_debugfs
Kuyo reports that the pattern of using debugfs_remove(debugfs_lookup()) leaks a dentry and with a hotplug stress test, the machine eventually runs out of memory.
Fix this up by using the newly created debugfs_lookup_and_remove() call instead which properly handles the dentry reference counting logic.
From the CVE record · Linux
The Linux kernel's update_sched_domain_debugfs function leaks a dentry when removing a debugfs entry. Under hotplug stress, the leak can eventually exhaust system memory. The input does not specify an attack path, authentication requirements, or user interaction.
Anyone running the Linux kernel should check whether their version includes this fix; affected versions are not specified.