# CVE-2024-42160: f2fs: check validation of fault attrs in f2fs\_build\_fault\_attr()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-754
- **Published:** 2024-07-30T07:47:02.208Z
- **Modified:** 2026-06-17T07:48:57.393Z

## Who should check

- Anyone running Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 6e5b601706ce05d94338cad598736d96bb8096c8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 44958ca9e400f57bd0478115519ffc350fcee61e; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< ecb641f424d6d1f055d149a15b892edcc92c504b; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 4ed886b187f47447ad559619c48c086f432d2b77
- Anyone running Linux 3.8

## 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.

## Affected and fixed versions

- Linux: \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 6e5b601706ce05d94338cad598736d96bb8096c8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 44958ca9e400f57bd0478115519ffc350fcee61e; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< ecb641f424d6d1f055d149a15b892edcc92c504b; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 4ed886b187f47447ad559619c48c086f432d2b77 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- Upgrade Linux to 4ed886b187f47447ad559619c48c086f432d2b77 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-42160. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42160.md
Affected: Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 6e5b601706ce05d94338cad598736d96bb8096c8; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 44958ca9e400f57bd0478115519ffc350fcee61e; >= 98e4da8ca301e062d79ae16…
Fixed in: Linux 6e5b601706ce05d94338cad598736d96bb8096c8, Linux 44958ca9e400f57bd0478115519ffc350fcee61e, Linux 4ed886b187f47447ad559619c48c086f432d2b77

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-42160 being exploited?

There is no confirmed exploitation: CVE-2024-42160 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-42160?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-42160?

Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 6e5b601706ce05d94338cad598736d96bb8096c8; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 44958ca9e400f57bd0478115519ffc350fcee61e; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< ecb641f424d6d1f055d149a15b892edcc92c504b; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 4ed886b187f47447ad559619c48c086f432d2b77; Linux 3.8.

### Is there a fix for CVE-2024-42160?

Yes. Fixed in Linux 6e5b601706ce05d94338cad598736d96bb8096c8, Linux 44958ca9e400f57bd0478115519ffc350fcee61e, Linux 4ed886b187f47447ad559619c48c086f432d2b77. Upgrade Linux to 4ed886b187f47447ad559619c48c086f432d2b77 or later.

### How do I check if I'm affected by CVE-2024-42160?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6e5b601706ce05d94338cad598736d96bb8096c8>
- patch: <https://git.kernel.org/stable/c/bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d>
- patch: <https://git.kernel.org/stable/c/44958ca9e400f57bd0478115519ffc350fcee61e>
- patch: <https://git.kernel.org/stable/c/ecb641f424d6d1f055d149a15b892edcc92c504b>
- patch: <https://git.kernel.org/stable/c/4ed886b187f47447ad559619c48c086f432d2b77>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-42160>

HTML: <https://flawdb.com/CVE-2024-42160> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-42160>
