В ядре Linux устранена следующая уязвимость:
pnfs/flexfiles: исправлена утечка памяти в nfs4_ff_alloc_deviceid_node().
В nfs4_ff_alloc_deviceid_node(), если выделение ds_versions завершается неудачно,
функция переходит к метке out_scratch, не освобождая уже
выделенный список dsaddrs, что приводит к утечке памяти.
Исправьте это, перейдя к метке out_err_drain_dsaddrs, которая правильно
освобождает список dsaddrs перед очисткой других ресурсов.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node() In nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails, the function jumps to the out_scratch label without freeing the already allocated dsaddrs list, leading to a memory leak. Fix this by jumping to the out_err_drain_dsaddrs label, which properly frees the dsaddrs list before cleaning up other resources.