В ядре Linux устранена следующая уязвимость:
smb/client: исправить код ошибки в smb2_aad_req_alloc(). Переменная «*num_sgs» — это u32, поэтому «ERR_PTR(*num_sgs)» не работает. Нам придется сделать что-то похожее на предыдущую строку, где
привести к int, а затем к long.
Однако проще хранить возврат в переменная int ret. Эта ошибка в конечном итоге приводила к сбою при разыменовании недопустимого указатель ошибки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: smb/client: Fix error code in smb2_aead_req_alloc() The "*num_sgs" variable is a u32 so "ERR_PTR(*num_sgs)" doesn't work. We would have to do something similar to the previous line where it's cast to int and then long. However, it's simpler to store the return in an int ret variable. This bug would eventually result in a crash when dereference the invalid error pointer.