In the Linux kernel, the following vulnerability has been resolved: sysfs: don't remove existing directory on update failure When… (CVE-2026-64185)
A vulnerability in the Linux kernel's sysfs subsystem could cause an existing sysfs directory to be removed unintentionally during an update failure. Specifically, if sysfs_update_group() is called and create_files() fails, the kernel might remove a directory that was not created by the caller, leading to unintended destruction of sysfs groups. The fix ensures that only directories created by the current operation are removed on failure, preserving existing directories.
AI Analysis
Technical Summary
The vulnerability occurs in the Linux kernel's sysfs_update_group() function. When updating a named sysfs group, if the create_files() function fails (e.g., due to memory allocation failure), the internal_create_group() function calls kernfs_remove() on the group directory. However, this directory may have existed prior to the update call, and removing it silently deletes a sysfs group that the caller did not create. The patch changes this behavior to remove the directory only if it was created by the current operation, leaving existing directories intact even if the update fails.
Potential Impact
Unintended removal of existing sysfs directories during update failures could lead to loss of sysfs group entries, potentially affecting kernel subsystems or user-space components relying on those sysfs entries. This could cause system instability or unexpected behavior. There is no indication of remote exploitability or privilege escalation from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that a fix has been implemented to prevent removal of existing directories on update failure. Users should apply the official Linux kernel updates once available to ensure this issue is resolved.
In the Linux kernel, the following vulnerability has been resolved: sysfs: don't remove existing directory on update failure When… (CVE-2026-64185)
Description
A vulnerability in the Linux kernel's sysfs subsystem could cause an existing sysfs directory to be removed unintentionally during an update failure. Specifically, if sysfs_update_group() is called and create_files() fails, the kernel might remove a directory that was not created by the caller, leading to unintended destruction of sysfs groups. The fix ensures that only directories created by the current operation are removed on failure, preserving existing directories.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability occurs in the Linux kernel's sysfs_update_group() function. When updating a named sysfs group, if the create_files() function fails (e.g., due to memory allocation failure), the internal_create_group() function calls kernfs_remove() on the group directory. However, this directory may have existed prior to the update call, and removing it silently deletes a sysfs group that the caller did not create. The patch changes this behavior to remove the directory only if it was created by the current operation, leaving existing directories intact even if the update fails.
Potential Impact
Unintended removal of existing sysfs directories during update failures could lead to loss of sysfs group entries, potentially affecting kernel subsystems or user-space components relying on those sysfs entries. This could cause system instability or unexpected behavior. There is no indication of remote exploitability or privilege escalation from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The vulnerability description indicates that a fix has been implemented to prevent removal of existing directories on update failure. Users should apply the official Linux kernel updates once available to ensure this issue is resolved.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v9gp-g328-r6m8
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64185"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27a72a4a8d5989129db5
Added to database: 07/19/2026, 19:38:15 UTC
Last enriched: 07/19/2026, 19:39:05 UTC
Last updated: 07/20/2026, 17:26:47 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.