В ядре Linux устранена следующая уязвимость:
fs: ослабить утверждения при невозможности закодировать дескрипторы файлов. Кодирование дескрипторов файлов обычно выполняется файловой системой >encode_fh().
метод, который может не работать по разным причинам. Устаревшие пользователи Exportfs_encode_fh(), а именно nfsd и
системный вызов name_to_handle_at(2) готов справиться с такой возможностью
невозможности закодировать дескриптор файла.
Есть еще несколько пользователей Exportfs_encode_{fh,fid}(), которые
в настоящее время есть утверждение WARN_ON() при сбое ->encode_fh(). Ослабьте эти утверждения, потому что они неверны. Во втором связанном отчете об ошибке говорится, что коммит 16aac5ad1fa9 («ovl: support
кодирование недекодируемых дескрипторов файлов") в версии 6.6 как регрессирующий коммит,
но это не точно.
Вышеупомянутый коммит только увеличивает шансы на утверждение.
и позволяет инициировать утверждение с помощью репродуктора с помощью overlayfs,
inotify и drop_caches. Вызов этого утверждения всегда был возможен с другими файловыми системами и
другие причины сбоев ->encode_fh() и, в частности, это было
также возможно с тем же воспроизводителем, используя overlayfs, который
монтируется с опциями index=on,nfs_export=on также на ядрах < v6.6. Поэтому я не включаю вышеупомянутый коммит в список исправлений.
Подсказка по резервному порту: этот патч будет иметь тривиальный конфликт, применимый к v6.6.y и другие тривиальные конфликты, применимые к стабильным ядрам <v6.6.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: fs: relax assertions on failure to encode file handles Encoding file handles is usually performed by a filesystem >encode_fh() method that may fail for various reasons. The legacy users of exportfs_encode_fh(), namely, nfsd and name_to_handle_at(2) syscall are ready to cope with the possibility of failure to encode a file handle. There are a few other users of exportfs_encode_{fh,fid}() that currently have a WARN_ON() assertion when ->encode_fh() fails. Relax those assertions because they are wrong. The second linked bug report states commit 16aac5ad1fa9 ("ovl: support encoding non-decodable file handles") in v6.6 as the regressing commit, but this is not accurate. The aforementioned commit only increases the chances of the assertion and allows triggering the assertion with the reproducer using overlayfs, inotify and drop_caches. Triggering this assertion was always possible with other filesystems and other reasons of ->encode_fh() failures and more particularly, it was also possible with the exact same reproducer using overlayfs that is mounted with options index=on,nfs_export=on also on kernels < v6.6. Therefore, I am not listing the aforementioned commit as a Fixes commit. Backport hint: this patch will have a trivial conflict applying to v6.6.y, and other trivial conflicts applying to stable kernels < v6.6.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.1.151
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
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:*:*:*:*:*:*
|
— | — |