В ядре Linux устранена следующая уязвимость:
nfsd: убедитесь, что nfsd_file_do_acquire() не использует неоткрытый файл
->atomic_open разрешено возвращать успех без фактического открытия
файл. Он указывает на это, вызывая Finish_no_open(). Это означает, что dentry_create() может вернуть файл, который не был открыт.
Это крайне маловероятно, поскольку обычно обработчики ->atomic_open
используйте Finish_no_open() только для уже существующих файлов и dentry_create()
в этом случае не вызывается, и заблокированный родительский элемент должен предотвратить
гонки. Однако из соображений предосторожности кажется разумным научить nfsd
используйте файл, возвращаемый dentry_create(), только если установлен FMODE_OPENED,
указывая на то, что он действительно был открыт.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: nfsd: ensure nfsd_file_do_acquire() does not use a non-opened file ->atomic_open is permitted to return success without actually opening the file. It indicates this by calling finish_no_open(). This means dentry_create() can return a file which hasn't been opened. This is extremely unlikely as ->atomic_open handlers typically use finish_no_open() only for already existing files, and dentry_create() isn't called in that case, and the parent being locked should prevent races. However out of an abundance of caution it seems wise to teach nfsd to only use the file returned by dentry_create() if FMODE_OPENED is set, indicating that it has in fact been opened.
Характеристики атаки
Последствия
Строка CVSS v3.1