[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025050217-CVE-2023-53081-f8a2@gregkh>
Date: Fri, 2 May 2025 17:55:46 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-53081: ocfs2: fix data corruption after failed write
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
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.
The Linux kernel CVE team has assigned CVE-2023-53081 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.14.204 with commit 7ed80e77c908cbaa686529a49f8ae0060c5caee7 and fixed in 4.14.312 with commit 1629f6f522b2d058019710466a84b240683bbee3
Issue introduced in 4.19.155 with commit 7ce2b16bad2cbfa3fa7bbc42c4448914f639ca47 and fixed in 4.19.280 with commit c26f3ff4c0be590c1250f945ac2e4fc5fcdc5f45
Issue introduced in 5.4.75 with commit f8a6a2ed4b7d1c3c8631eeb6d00572bc853094a8 and fixed in 5.4.240 with commit 4c24eb49ab44351424ac8fe8567f91ea48a06089
Issue introduced in 5.10 with commit 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b and fixed in 5.10.177 with commit 91d7a4bd5656552d6259e2d0f8859f9e8cc5ef68
Issue introduced in 5.10 with commit 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b and fixed in 5.15.105 with commit a9e53869cb43c96d6d851c491fd4e26430ab6ba6
Issue introduced in 5.10 with commit 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b and fixed in 6.1.21 with commit 47eb055ad3588fc96d34e9e1dd87b210ce62906b
Issue introduced in 5.10 with commit 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b and fixed in 6.2.8 with commit 205759c6c18f54659b0b5976b14a52d1b3eb9f57
Issue introduced in 5.10 with commit 6dbf7bb555981fb5faf7b691e8f6169fc2b2e63b and fixed in 6.3 with commit 90410bcf873cf05f54a32183afff0161f44f9715
Issue introduced in 4.9.242 with commit acef5107e2eacb08a16ad5db60320d65bd26a6c0
Issue introduced in 5.9.5 with commit 36ed9e604215f58cec0381ca5fcc6da05f2d87ca
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2023-53081
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/ocfs2/aops.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/1629f6f522b2d058019710466a84b240683bbee3
https://git.kernel.org/stable/c/c26f3ff4c0be590c1250f945ac2e4fc5fcdc5f45
https://git.kernel.org/stable/c/4c24eb49ab44351424ac8fe8567f91ea48a06089
https://git.kernel.org/stable/c/91d7a4bd5656552d6259e2d0f8859f9e8cc5ef68
https://git.kernel.org/stable/c/a9e53869cb43c96d6d851c491fd4e26430ab6ba6
https://git.kernel.org/stable/c/47eb055ad3588fc96d34e9e1dd87b210ce62906b
https://git.kernel.org/stable/c/205759c6c18f54659b0b5976b14a52d1b3eb9f57
https://git.kernel.org/stable/c/90410bcf873cf05f54a32183afff0161f44f9715
Powered by blists - more mailing lists