{"id":82255,"date":"2026-07-19T19:48:00","date_gmt":"2026-07-19T16:18:00","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-64185-sysfs-dont-remove-existing-directory-on-update-failure\/"},"modified":"2026-07-19T19:48:00","modified_gmt":"2026-07-19T16:18:00","slug":"cve-2026-64185-sysfs-dont-remove-existing-directory-on-update-failure","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-64185-sysfs-dont-remove-existing-directory-on-update-failure\/","title":{"rendered":"CVE-2026-64185 &#8211; sysfs: don&#8217;t remove existing directory on update failure"},"content":{"rendered":"<p>CVE ID :CVE-2026-64185<\/p>\n<p>  Published : July 19, 2026, 4:18 p.m. | 1\u00a0hour, 23\u00a0minutes ago<\/p>\n<p>  Description :In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>sysfs: don&#8217;t remove existing directory on update failure<\/p>\n<p>When sysfs_update_group() is called for a named group and create_files()<br \/>\nfails (e.g. -ENOMEM), internal_create_group() calls kernfs_remove(kn) on<br \/>\nthe group directory.  In the update path, kn was obtained via<br \/>\nkernfs_find_and_get() and refers to a directory that already existed<br \/>\nbefore this call.  Removing it silently destroys a sysfs group that the<br \/>\ncaller did not create.<\/p>\n<p>Only remove the directory if we created it ourselves.  On update failure<br \/>\nthe directory remains as it is left empty by remove_files() inside<br \/>\ncreate_files(), but can be repopulated by a retry.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-64185 Published : July 19, 2026, 4:18 p.m. | 1\u00a0hour, 23\u00a0minutes ago Description :In the Linux kernel, the following vulnerability has been resolved: sysfs: don&#8217;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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-82255","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=82255"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/82255\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=82255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=82255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=82255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}