A memory leak vulnerability in the Linux kernel's dma-buf subsystem was fixed by restoring the scatterlist entry count before freeing the scatterlist table. The flaw caused dma_buf_free_sgt() to leak memory on every successful map/unmap cycle due to clearing the orig_nents field, which sg_free_table() relies on to free memory properly.