CVE-2026-64185 sysfs: don't remove existing directory on update failure
A flaw in the Linux kernel sysfs implementation allows attackers to cause a denial of service by triggering a failure that incorrectly removes existing system directories.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-64185?
CVE-2026-64185 is a medium-severity denial of service vulnerability in Linux kernel, published on 19 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
sysfs: don't remove existing directory on update failure
When sysfs_update_group() is called for a named group and create_files() fails (e.g. -ENOMEM), internal_create_group() calls kernfs_remove(kn) on the group directory. In the update path, kn was obtained via kernfs_find_and_get() and refers to a directory that already existed before this call. Removing it silently destroys a sysfs group that the caller did not create.
Only remove the directory if we created it ourselves. On update failure the directory remains as it is left empty by remove_files() inside create_files(), but can be repopulated by a retry.
Which versions are affected by CVE-2026-64185?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-64185?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-64185 being exploited?
There is no known exploitation of CVE-2026-64185 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2026-64185, DEBIAN-CVE-2026-64185, GHSA-v9gp-g328-r6m8, UBUNTU-CVE-2026-64185.