blob: 45e18071b92455f9c1a3850fdeb113d8d3550a20 [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-43857: f2fs: fix null reference error when checking end of zone
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix null reference error when checking end of zone
This patch fixes a potentially null pointer being accessed by
is_end_zone_blkaddr() that checks the last block of a zone
when f2fs is mounted as a single device.
The Linux kernel CVE team has assigned CVE-2024-43857 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.5 with commit e067dc3c6b9c419bac43c6a0be2d85f44681f863 and fixed in 6.6.64 with commit b98777309756ebe15cc9ad4e8ab64bbfaf878a3f
Issue introduced in 6.5 with commit e067dc3c6b9c419bac43c6a0be2d85f44681f863 and fixed in 6.10.3 with commit 381cbe85592c78fbaeb3e770e3e9f3bfa3e67efb
Issue introduced in 6.5 with commit e067dc3c6b9c419bac43c6a0be2d85f44681f863 and fixed in 6.11 with commit c82bc1ab2a8a5e73d9728e80c4c2ed87e8921a38
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-2024-43857
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/f2fs/data.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/b98777309756ebe15cc9ad4e8ab64bbfaf878a3f
https://git.kernel.org/stable/c/381cbe85592c78fbaeb3e770e3e9f3bfa3e67efb
https://git.kernel.org/stable/c/c82bc1ab2a8a5e73d9728e80c4c2ed87e8921a38