A vulnerability in the Linux kernel's SMB client was fixed to prevent data corruption caused by concurrent writes combined with file truncation (O_TRUNC). The flaw allowed buffered writes to dirty pages after a flush but before truncation, leading to silent data loss. The fix ensures atomicity of the flush-truncate-resize sequence by properly acquiring necessary locks.