# CVE-2024-40971: f2fs: remove clear SB_INLINECRYPT flag in default_options

- Severity: High 7.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2024-07-12T12:32:09.440Z
- Modified: 2026-10-15T01:18:39.327Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before 724429db09e21ee153fef35e34342279d33df6ae; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before a9cea0489c562c97cd56bb345e78939f9909e7f4; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before eddeb8d941d5be11a9da5637dbe81ac37e8449a2; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before ae39c8ec4250d2a35ddaab1c40faacfec306ff66; from 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 before ac5eecf481c29942eb9a862e758c0c8b68090c33; 3.8 (not affected: before 3.8; from 5.10.221 up to 5.10.*; from 5.15.162 up to 5.15.*; from 6.1.96 up to 6.1.*; from 6.6.36 up to 6.6.*; from 6.9.7 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 3.8 before 5.10.221; from 5.11 before 5.15.162; from 5.16 before 6.1.96; from 6.2 before 6.6.36; from 6.7 before 6.9.7

## Every score

- Linux: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/38a82c8d00638bb642bef787eb1d5e0e4d3b7d71> (patch)
- <https://git.kernel.org/stable/c/724429db09e21ee153fef35e34342279d33df6ae> (patch)
- <https://git.kernel.org/stable/c/a9cea0489c562c97cd56bb345e78939f9909e7f4> (patch)
- <https://git.kernel.org/stable/c/eddeb8d941d5be11a9da5637dbe81ac37e8449a2> (patch)
- <https://git.kernel.org/stable/c/ae39c8ec4250d2a35ddaab1c40faacfec306ff66> (patch)
- <https://git.kernel.org/stable/c/ac5eecf481c29942eb9a862e758c0c8b68090c33> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Sources

- CVE List: [CVE-2024-40971](https://www.cve.org/CVERecord?id=CVE-2024-40971), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-40971](https://nvd.nist.gov/vuln/detail/CVE-2024-40971), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-40971 · Whole record: https://cve.day/CVE-2024-40971.json · Rebuilt by cve.day 2026-11-25T22:58:42.867Z
