CVE-2024-40971

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-40971
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-40971.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-40971
Downstream
Published
2024-07-12T13:15:18Z
Modified
2025-08-09T20:01:27Z
Summary
[none]
Details

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

f2fs: remove clear SBINLINECRYPT flag in defaultoptions

In f2fsremount, SBINLINECRYPT 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:

-f2fsremount -f2fsfileopen or f2fsnewinode -defaultoptions <- clear SB_INLINECRYPT flag

                                      -fscrypt_select_encryption_impl

-parseoptions <- set SBINLINECRYPT again

References

Affected packages