Skip to contentSkip to conversation

CVE-2024-42160: f2fs: check validation of fault attrs in f2fs_build_fault_attr()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 30, 2024

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

f2fs: check validation of fault attrs in f2fs_build_fault_attr()

- It missed to check validation of fault attrs in parse_options(), let's fix to add check condition in f2fs_build_fault_attr().
- Use f2fs_build_fault_attr() in __sbi_store() to clean up code.

The Linux kernel CVE team has assigned CVE-2024-42160 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.1.98 with commit bc84dd2c33e0
	Fixed in 6.6.39 with commit 44958ca9e400
	Fixed in 6.9.9 with commit ecb641f424d6
	Fixed in 6.10 with commit 4ed886b187f4

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-42160

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/f2fs.h
	fs/f2fs/super.c
	fs/f2fs/sysfs.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/bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d
	https://git.kernel.org/stable/c/44958ca9e400f57bd0478115519ffc350fcee61e
	https://git.kernel.org/stable/c/ecb641f424d6d1f055d149a15b892edcc92c504b
	https://git.kernel.org/stable/c/4ed886b187f47447ad559619c48c086f432d2b77