CVE-2026-64185

Public on 2026-07-19
Modified on 2026-07-27
Description
In the Linux kernel, the following vulnerability has been resolved:

sysfs: don'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 update path, kn was obtained via
kernfs_find_and_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 remove_files() inside
create_files(), but can be repopulated by a retry.
Severity
Medium severity
Medium
See what this means
CVSS v3 Base Score
4.7
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Kernel-5.10 Extra kernel 2026-06-22 ALAS2KERNEL-5.10-2026-123 Fixed
Amazon Linux 2 - Kernel-5.15 Extra kernel 2026-06-22 ALAS2KERNEL-5.15-2026-107 Fixed
Amazon Linux 2 - Kernel-5.4 Extra kernel Pending Fix
Amazon Linux 2 - Core kernel Not Affected
Amazon Linux 2023 kernel 2026-06-22 ALAS2023-2026-1882 Fixed
Amazon Linux 2023 kernel6.12 2026-06-22 ALAS2023-2026-1894 Fixed
Amazon Linux 2023 kernel6.18 2026-06-22 ALAS2023-2026-1881 Fixed

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 4.7 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H