CVE-2024-40971
f2fs: remove clear SB_INLINECRYPT flag in default_options
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 724429db09e21ee153fef35e34342279d33df6ae; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a9cea0489c562c97cd56bb345e78939f9909e7f4; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < eddeb8d941d5be11a9da5637dbe81ac37e8449a2; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ae39c8ec4250d2a35ddaab1c40faacfec306ff66; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ac5eecf481c29942eb9a862e758c0c8b68090c33
- Anyone running Linux 3.8
Vulnerability facts
- Affected
- Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 724429db09e21ee153fef35e34342279d33df6ae; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a9cea0489c562c97cd56bb345e78939f9909e7f4; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < eddeb8d941d5be11a9da5637dbe81ac37e8449a2; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ae39c8ec4250d2a35ddaab1c40faacfec306ff66; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ac5eecf481c29942eb9a862e758c0c8b68090c33; Linux 3.8
- Fixed in
- Linux 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71, Linux 724429db09e21ee153fef35e34342279d33df6ae
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.3 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: remove clear SB_INLINECRYPT flag in default_options In f2fs_remount, SB_INLINECRYPT flag will be clear and re-set. If create new file or open file during this gap, these files will not use inlinecrypt. Worse case, it may lead to data corruption if wrappedkey_v0 is enable. Thread A: Thread B: -f2fs_remount -f2fs_file_open or f2fs_new_inode -default_options <- clear SB_INLINECRYPT flag -fscrypt_select_encryption_impl -parse_options <- set SB_INLINECRYPT again
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 724429db09e21ee153fef35e34342279d33df6ae; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a9cea0489c562c97cd56bb345e78939f9909e7f4; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < eddeb8d941d5be11a9da5637dbe81ac37e8449a2; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ae39c8ec4250d2a35ddaab1c40faacfec306ff66; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ac5eecf481c29942eb9a862e758c0c8b68090c33 | — | cvelist |
| Linux | 3.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-40971. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-40971.md Affected: Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 724429db09e21ee153fef35e34342279d33df6ae; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a9cea0489c562c97cd56bb345e78939f9909e7f4; >= 98e4da8ca301e062d79ae16… Fixed in: Linux 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71, Linux 724429db09e21ee153fef35e34342279d33df6ae 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.
References
Patches
- https://git.kernel.org/stable/c/38a82c8d00638bb642bef787eb1d5e0e4d3b7d71
- https://git.kernel.org/stable/c/724429db09e21ee153fef35e34342279d33df6ae
- https://git.kernel.org/stable/c/a9cea0489c562c97cd56bb345e78939f9909e7f4
- https://git.kernel.org/stable/c/eddeb8d941d5be11a9da5637dbe81ac37e8449a2
- https://git.kernel.org/stable/c/ae39c8ec4250d2a35ddaab1c40faacfec306ff66
- https://git.kernel.org/stable/c/ac5eecf481c29942eb9a862e758c0c8b68090c33
FAQ
Is CVE-2024-40971 being exploited?
There is no confirmed exploitation: CVE-2024-40971 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-40971?
High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-40971?
Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 724429db09e21ee153fef35e34342279d33df6ae; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a9cea0489c562c97cd56bb345e78939f9909e7f4; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < eddeb8d941d5be11a9da5637dbe81ac37e8449a2; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ae39c8ec4250d2a35ddaab1c40faacfec306ff66; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ac5eecf481c29942eb9a862e758c0c8b68090c33; Linux 3.8.
Is there a fix for CVE-2024-40971?
Yes. Fixed in Linux 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71, Linux 724429db09e21ee153fef35e34342279d33df6ae. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-40971?
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.