В ядре Linux устранена следующая уязвимость:
bpf: добавить отсутствующий вызов access_ok в copy_user_syms
Как сообщил Сашико, мы используем __get_user без предварительного вызова access_ok на
указатель пользовательского пространства. Добавление недостающего вызова для всего массива указателей.
Плюс удаление проверки ошибок в пути к ошибкам, потому что она не нужна и
также мы можем вернуть -ENOMEM непосредственно из первого пути сбоя kvmalloc_array.
[1] https://lore.kernel.org/bpf/20260611115503.AC16D1F00893@smtp.kernel.org/
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: bpf: Add missing access_ok call to copy_user_syms As reported by sashiko we use __get_user without prior access_ok call on the user space pointer. Adding the missing call for the whole pointer array. Plus removing the err check in the error path, because it's not needed and also we can return -ENOMEM directly from the first kvmalloc_array fail path. [1] https://lore.kernel.org/bpf/20260611115503.AC16D1F00893@smtp.kernel.org/