{"id":"CVE-2026-64185","aliases":["CVE-2026-64185"],"related":[],"kind":"vulnerability","state":"published","title":"sysfs: don't remove existing directory on update failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsysfs: don't remove existing directory on update failure\n\nWhen sysfs_update_group() is called for a named group and create_files()\nfails (e.g. -ENOMEM), internal_create_group() calls kernfs_remove(kn) on\nthe group directory.  In the update path, kn was obtained via\nkernfs_find_and_get() and refers to a directory that already existed\nbefore this call.  Removing it silently destroys a sysfs group that the\ncaller did not create.\n\nOnly remove the directory if we created it ourselves.  On update failure\nthe directory remains as it is left empty by remove_files() inside\ncreate_files(), but can be repopulated by a retry.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsysfs: don't remove existing directory on update failure\n\nWhen sysfs_update_group() is called for a named group and create_files()\nfails (e.g. -ENOMEM), internal_create_group() calls kernfs_remove(kn) on\nthe group directory.  In the update path, kn was obtained via\nkernfs_find_and_get() and refers to a directory that already existed\nbefore this call.  Removing it silently destroys a sysfs group that the\ncaller did not create.\n\nOnly remove the directory if we created it ourselves.  On update failure\nthe directory remains as it is left empty by remove_files() inside\ncreate_files(), but can be repopulated by a retry.","source":"cvelist"}],"published":"2026-07-19T15:41:07.340Z","modified":"2026-11-06T17:18:39.790Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"c5e125c828b701afaf7493b42a14aa89362ff36d","status":"affected"},{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"ccadd32cc1263802a5969c9efe0e96225450428c","status":"affected"},{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"14f2c14ae86c4af17a0a9f8ab46dacf2d5fd1d8a","status":"affected"},{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"31527d80234caf83dc96ad478645e57df9de4472","status":"affected"},{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"57b285e0368290aa55f79ba11419b96d0ebdb418","status":"affected"},{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"48fa96538bd2868034d33429e4565fda384d0736","status":"affected"},{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"708f6926f61f71e09b5e9fd668b9882ccd46e69f","status":"affected"},{"type":"git","introduced":"c855cf2759d27142f771173d9fd8e7fdf9cf5138","fixed":"237557b8a81ab948e8332f7c0058e758f081c0a3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.142","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.92","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.34","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.11","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.19","fixed":"5.10.258"},{"status":"affected","introduced":"5.11","fixed":"5.15.209"},{"status":"affected","introduced":"5.16","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.142"},{"status":"affected","introduced":"6.7","fixed":"6.12.92"},{"status":"affected","introduced":"6.13","fixed":"6.18.34"},{"status":"affected","introduced":"6.19","fixed":"7.0.11"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c5e125c828b701afaf7493b42a14aa89362ff36d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ccadd32cc1263802a5969c9efe0e96225450428c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14f2c14ae86c4af17a0a9f8ab46dacf2d5fd1d8a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31527d80234caf83dc96ad478645e57df9de4472","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57b285e0368290aa55f79ba11419b96d0ebdb418","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48fa96538bd2868034d33429e4565fda384d0736","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/708f6926f61f71e09b5e9fd668b9882ccd46e69f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/237557b8a81ab948e8332f7c0058e758f081c0a3","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-06T16:31:44.287Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64185","url":"https://www.cve.org/CVERecord?id=CVE-2026-64185","licence":"CVE Terms of Use","modified":"2026-11-06T16:34:28.927Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64185","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64185","licence":"Public domain","modified":"2026-11-06T17:18:39.790Z"}],"updatedAt":"2026-11-25T22:59:29.185Z","epss":{"score":0.00162,"percentile":0.03019,"date":"2026-11-30T12:00:22.000Z"}}