NetSight
high7.8

CVE-2023-53081

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix data corruption after failed write When buffered write fails to copy data into u…

Impact

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix data corruption after failed write When buffered write fails to copy data into underlying page cache page, ocfs2_write_end_nolock() just zeroes out and dirties the page. This can leave dirty page beyond EOF and if page writeback tries to write this page before write succeeds and expands i_size, page gets into inconsistent state where page dirty bit is clear but buffer dirty bits stay set resulting in page data never getting written and so data copied to the page is lost. Fix the problem by invalidating page beyond EOF after failed write.

Affected products

VendorProductAffected versions
LinuxLinux Kernel
from 4.9.242 before 4.10
from 4.14.204 before 4.14.312
from 4.19.155 before 4.19.280
from 5.4.75 before 5.4.240
from 5.9.5 before 5.10.177
from 5.11 before 5.15.105

Weakness classification

References