CVE-2026-64185: sysfs: don't remove existing directory on update failure

Published Jul 19, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

sysfs: don't remove existing directory on update failure

When sysfsupdategroup() is called for a named group and createfiles() fails (e.g. -ENOMEM), internalcreategroup() calls kernfsremove(kn) on the group directory. In the update path, kn was obtained via kernfsfindandget() 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 removefiles() inside createfiles(), but can be repopulated by a retry.

Affected Software

12 affected components
Linux Linux kernel
Linux Linux kernel>=4.19<5.10.258
Linux Linux kernel>=5.11<5.15.209
Linux Linux kernel>=5.16<6.1.175
Linux Linux kernel>=6.2<6.6.142
Linux Linux kernel>=6.7<6.12.92
Linux Linux kernel>=6.13<6.18.34
Linux Linux kernel>=6.19<7.0.11
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4

Event History

Jul 19, 2026
CVE Published
via MITRE·03:41 PM
Data Sourced
via MITRE·03:41 PM
Description
Data Sourced
via NVD·04:18 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-64185?

CVE-2026-64185 has a risk rating of 26, indicating a moderate level of severity.

2

How do I fix CVE-2026-64185?

To resolve CVE-2026-64185, update to the latest version of the Linux kernel that contains the patch for this vulnerability.

3

What systems are affected by CVE-2026-64185?

CVE-2026-64185 affects the Linux kernel, specifically systems utilizing the sysfs interface.

4

When was CVE-2026-64185 published?

CVE-2026-64185 was published on July 19, 2026.

5

What is the main issue addressed in CVE-2026-64185?

CVE-2026-64185 addresses the problem of sysfs_update_group() improperly removing existing directories on update failures.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203