В ядре Linux устранена следующая уязвимость:
ovl: поддержка кодирования fid из индексного дескриптора без псевдонима
Дмитрий Сафонов сообщил, что утверждение WARN_ON() может быть вызвано
пользовательское пространство при вызове inotify_show_fdinfo() для просматриваемого наложения
inode, чьи псевдонимы dentry были удалены с помощью drop_caches. Утверждение WARN_ON() в inotify_show_fdinfo() было удалено, поскольку
кодирование дескриптора файла может завершиться неудачно по другой причине, но
последствия невозможности закодировать дескриптор файла overlayfs выходят за рамки
это утверждение. Как показано в тестовом примере LTP, упомянутом в ссылке ниже, неспособность
кодирование дескриптора файла overlayfs из индексного дескриптора без псевдонимов также приводит к
невозможность сообщить о фиде с событиями fanotify FAN_DELETE_SELF.
Как отмечает Дмитрий в своем анализе проблемы, ovl_encode_fh() терпит неудачу.
если он не может найти псевдоним для индексного дескриптора, но эту ошибку можно исправить.
ovl_encode_fh() редко использует псевдоним и в случае недекодируемого
дескрипторы файлов, как это часто бывает с fanotify fid info,
ovl_encode_fh() никогда не требует использования псевдонима для кодирования дескриптора файла. Отложите поиск псевдонима до тех пор, пока он действительно не понадобится, поэтому ovl_encode_fh()
не сработает в обычном случае событий fanotify FAN_DELETE_SELF.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ovl: support encoding fid from inode with no alias Dmitry Safonov reported that a WARN_ON() assertion can be trigered by userspace when calling inotify_show_fdinfo() for an overlayfs watched inode, whose dentry aliases were discarded with drop_caches. The WARN_ON() assertion in inotify_show_fdinfo() was removed, because it is possible for encoding file handle to fail for other reason, but the impact of failing to encode an overlayfs file handle goes beyond this assertion. As shown in the LTP test case mentioned in the link below, failure to encode an overlayfs file handle from a non-aliased inode also leads to failure to report an fid with FAN_DELETE_SELF fanotify events. As Dmitry notes in his analyzis of the problem, ovl_encode_fh() fails if it cannot find an alias for the inode, but this failure can be fixed. ovl_encode_fh() seldom uses the alias and in the case of non-decodable file handles, as is often the case with fanotify fid info, ovl_encode_fh() never needs to use the alias to encode a file handle. Defer finding an alias until it is actually needed so ovl_encode_fh() will not fail in the common case of FAN_DELETE_SELF fanotify events.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.6
|
6.6.74
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*
|
— | — |