В ядре Linux была устранена следующая уязвимость: f2fs: избежать доступа к потоку контрольных точек NULL в sysfs checkpoint_merge можно включить, даже когда ни один поток слияния контрольных точек не запущен. f2fs не запускает f2fs_issue_ckpt там, но ckpt_thread_ioprio все еще можно записывать через sysfs. Путь хранилища ckpt_thread_ioprio обновляет сохраненное значение ioprio и, когда checkpoint_merge включен, вызывает set_task_ioprio() для потока контрольных точек. Если cprc->f2fs_issue_ckpt - это NULL, это лишает NULL указателя задачи.
Protect ckpt_thread_ioprio sysfs пишет также с s_umount, поэтому поток контрольных точек не может исчезнуть под путем магазина при обновлении его ioprio.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: f2fs: avoid NULL checkpoint thread access in sysfs checkpoint_merge can be enabled even when no checkpoint merge thread is running. A read-only mount is one case: f2fs does not start f2fs_issue_ckpt there, but ckpt_thread_ioprio is still writable through sysfs. The ckpt_thread_ioprio store path updates the saved ioprio value and, when checkpoint_merge is enabled, calls set_task_ioprio() for the checkpoint thread. If cprc->f2fs_issue_ckpt is NULL, that dereferences a NULL task pointer. Protect ckpt_thread_ioprio sysfs writes with s_umount as well, so the checkpoint thread cannot disappear under the store path while updating its ioprio.