В ядре Linux устранена следующая уязвимость:
nfs: вернуть EISDIR в nfs3_proc_create, если d_alias — это каталог
Если мы нашли псевдоним через nfs3_do_create/nfs_add_or_obtain
/d_splice_alias, который является каталогом, мы не возвращаем
любую ошибку и просто забудем об этом псевдониме, а вот оригинал
dentry, которые мы добавляли и передавали, поскольку параметр оставался отрицательным. Позже это вызывает ошибку nfs_atomic_open_v23/finish_open, поскольку мы
укажите отрицательный dentry для do_dentry_open. Это наблюдалось при запуске lustre-racer, где каталоги и файлы
создается/удаляется одновременно с тем же именем, и O_EXCL не является
используется для открытия файлов (частое перенаправление файлов).
Хотя d_splice_alias обычно возвращает псевдоним каталога или NULL, мы
явно проверьте d_is_dir(), чтобы убедиться, что мы не пытаемся выполнить
файловые операции (например, Finish_open) на индексном дескрипторе каталога, что запускает
наблюдаемое упс.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: nfs: return EISDIR on nfs3_proc_create if d_alias is a dir If we found an alias through nfs3_do_create/nfs_add_or_obtain /d_splice_alias which happens to be a dir dentry, we don't return any error, and simply forget about this alias, but the original dentry we were adding and passed as parameter remains negative. This later causes an oops on nfs_atomic_open_v23/finish_open since we supply a negative dentry to do_dentry_open. This has been observed running lustre-racer, where dirs and files are created/removed concurrently with the same name and O_EXCL is not used to open files (frequent file redirection). While d_splice_alias typically returns a directory alias or NULL, we explicitly check d_is_dir() to ensure that we don't attempt to perform file operations (like finish_open) on a directory inode, which triggers the observed oops.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.10
|
6.12.78
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.19
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
|
— | — |