CVE-2023-53711: NFS: Fix a potential data corruption
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
NFS: Fix a potential data corruption
We must ensure that the subrequests are joined back into the head before we can retransmit a request. If the head was not on the commit lists, because the server wrote it synchronously, we still need to add it back to the retransmission list.
Add a call that mirrors the effect of nfs_cancel_remove_inode() for O_DIRECT.
The Linux kernel CVE team has assigned CVE-2023-53711 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.7 with commit ed5d588fe47feef290f271022820e255d8371561 and fixed in 5.10.195 with commit 4185605cd0f72ec8bf8b423aacd94cd5ee13bbcf Issue introduced in 5.7 with commit ed5d588fe47feef290f271022820e255d8371561 and fixed in 5.15.132 with commit da302f1d476a44245823a74546debb5d160bf5bd Issue introduced in 5.7 with commit ed5d588fe47feef290f271022820e255d8371561 and fixed in 6.1.54 with commit dac14a1dbe20e003215dacb8a3a1a7e4ca4e0ad0 Issue introduced in 5.7 with commit ed5d588fe47feef290f271022820e255d8371561 and fixed in 6.5.4 with commit 0ec26716e45d615edfff46012e7dedcc0ac5f7ab Issue introduced in 5.7 with commit ed5d588fe47feef290f271022820e255d8371561 and fixed in 6.6 with commit 88975a55969e11f26fe3846bf4fbf8e7dc8cbbd4
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-53711
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/nfs/direct.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/4185605cd0f72ec8bf8b423aacd94cd5ee13bbcf https://git.kernel.org/stable/c/da302f1d476a44245823a74546debb5d160bf5bd https://git.kernel.org/stable/c/dac14a1dbe20e003215dacb8a3a1a7e4ca4e0ad0 https://git.kernel.org/stable/c/0ec26716e45d615edfff46012e7dedcc0ac5f7ab https://git.kernel.org/stable/c/88975a55969e11f26fe3846bf4fbf8e7dc8cbbd4