In the Linux kernel, the following vulnerability has been resolved:ubifs: Set page uptodate in the correct placePage cache reads are lockless, so setting the freshly allocated pageuptodate before we've overwritten it with the data it's supposed to havein it will allow a simultaneous reader to see old data.  Move the callto SetPageUptodate into ubifs_write_end(), which is after we copied thenew data into the page.
CWE-772 Missing Release of Resource after Effective Lifetime