CVE-2026-64185

Source
https://cve.org/CVERecord?id=CVE-2026-64185
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64185.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-64185
Downstream
Published
2026-07-19T15:41:07.340Z
Modified
2026-07-21T03:47:54.798300132Z
Summary
sysfs: don't remove existing directory on update failure
Details

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 kernfsfindand_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 removefiles() inside createfiles(), but can be repopulated by a retry.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64185.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c855cf2759d27142f771173d9fd8e7fdf9cf5138
Fixed
c5e125c828b701afaf7493b42a14aa89362ff36d
Fixed
ccadd32cc1263802a5969c9efe0e96225450428c
Fixed
14f2c14ae86c4af17a0a9f8ab46dacf2d5fd1d8a
Fixed
31527d80234caf83dc96ad478645e57df9de4472
Fixed
57b285e0368290aa55f79ba11419b96d0ebdb418
Fixed
48fa96538bd2868034d33429e4565fda384d0736
Fixed
708f6926f61f71e09b5e9fd668b9882ccd46e69f
Fixed
237557b8a81ab948e8332f7c0058e758f081c0a3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64185.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
5.10.258
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.209
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.175
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.142
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.92
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.34
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.11

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64185.json"