In the Linux kernel, the following vulnerability has been resolved: exfat: advance valid_size to EOF for append writes For an append write, the write position is recalculated by generic_write_checks(). Therefore, the write position must be obtained after generic_write_checks() returns. Using the original write position to advance valid_size may cause the valid_size update to be skipped, potentially exposing stale data. Also move the truncate_pagecache() check below the recalculated position, so that pos is never read before it is assigned.
https://git.kernel.org/stable/c/b70ab407503706289163dd59f1ac3e942bacc37d
https://git.kernel.org/stable/c/b639601d0f26653f7686e2326efe969b60900961
https://git.kernel.org/stable/c/8aecb67c8a89f68bb49dc8407b5d932ee36a565b
https://git.kernel.org/stable/c/71a855eb0d8ace4236c6462f47d9b205b92b222e