CVE-2023-53295: udf: Do not update file length for failed writes to inline files
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
udf: Do not update file length for failed writes to inline files
When write to inline file fails (or happens only partly), we still updated length of inline data as if the whole write succeeded. Fix the update of length of inline data to happen only if the write succeeds.
The Linux kernel CVE team has assigned CVE-2023-53295 to this issue.
Affected and fixed versions
===========================
Fixed in 4.14.308 with commit 5621f7a8139053d0c3c47fb68ee9f602139eb40a Fixed in 4.19.276 with commit 5a6c373d761f55635e175fa2f407544bae8f583b Fixed in 5.4.235 with commit 7bd8d9e1cf5607ee14407f4060b9a1dbb3c42802 Fixed in 5.10.173 with commit eb2133900cac2d2f78befd6be41666cf1a2315d9 Fixed in 5.15.99 with commit c5787d77a5c29fffd295d138bd118b334990a567 Fixed in 6.1.16 with commit 6837910aeb2c9101fc036dcd1b1f32615c20ec1a Fixed in 6.2.3 with commit 6d18cedc1ef0caeb1567cab660079e48844ff6d6 Fixed in 6.3 with commit 256fe4162f8b5a1625b8603ca5f7ff79725bfb47
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-53295
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/udf/file.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/5621f7a8139053d0c3c47fb68ee9f602139eb40a https://git.kernel.org/stable/c/5a6c373d761f55635e175fa2f407544bae8f583b https://git.kernel.org/stable/c/7bd8d9e1cf5607ee14407f4060b9a1dbb3c42802 https://git.kernel.org/stable/c/eb2133900cac2d2f78befd6be41666cf1a2315d9 https://git.kernel.org/stable/c/c5787d77a5c29fffd295d138bd118b334990a567 https://git.kernel.org/stable/c/6837910aeb2c9101fc036dcd1b1f32615c20ec1a https://git.kernel.org/stable/c/6d18cedc1ef0caeb1567cab660079e48844ff6d6 https://git.kernel.org/stable/c/256fe4162f8b5a1625b8603ca5f7ff79725bfb47