В ядре Linux была устранена следующая уязвимость: NFSv4/flexfiles: Использовать полное 64-разрядное stripe_unit ff_layout_alloc_lseg() декодирует stripe_unit в качестве 64-разрядного значения, которое определяет протокол, и struct nfs4_ff_layout_segment хранит его как одно, но оба потребителя сужают его до 32 бит: nfs4_ff_layout_calc_dss_id() делится на do_div(), что отбрасывает делитель, и ff_layout_pg_test() копирует его в u32. stripe_unit, который не подходит, бесшумно усечен, поэтому полосы клиента на блоке, который сервер не указал, или делятся на ноль, если низкие 32 бита оказываются чистыми. Разделите на полное значение, с div64_u64 () и div64_u64_rem ().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: NFSv4/flexfiles: Use the full 64-bit stripe_unit ff_layout_alloc_lseg() decodes stripe_unit as the 64-bit value the protocol defines and struct nfs4_ff_layout_segment stores it as one, but both consumers narrow it back to 32 bits: nfs4_ff_layout_calc_dss_id() divides with do_div(), which casts the divisor, and ff_layout_pg_test() copies it into a u32 first. A stripe_unit that does not fit is silently truncated, so the client stripes on a unit the server did not specify -- or divides by zero, if the low 32 bits happen to be clear. Divide by the full value, with div64_u64() and div64_u64_rem().