{"id":"CVE-2024-40971","summary":"f2fs: remove clear SB_INLINECRYPT flag in default_options","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: remove clear SB_INLINECRYPT flag in default_options\n\nIn f2fs_remount, SB_INLINECRYPT flag will be clear and re-set.\nIf create new file or open file during this gap, these files\nwill not use inlinecrypt. Worse case, it may lead to data\ncorruption if wrappedkey_v0 is enable.\n\nThread A:                               Thread B:\n\n-f2fs_remount\t\t\t\t-f2fs_file_open or f2fs_new_inode\n  -default_options\n\t\u003c- clear SB_INLINECRYPT flag\n\n                                          -fscrypt_select_encryption_impl\n\n  -parse_options\n\t\u003c- set SB_INLINECRYPT again","modified":"2026-04-02T12:17:23.003126Z","published":"2024-07-12T12:32:09.440Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40971.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/38a82c8d00638bb642bef787eb1d5e0e4d3b7d71"},{"type":"WEB","url":"https://git.kernel.org/stable/c/724429db09e21ee153fef35e34342279d33df6ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a9cea0489c562c97cd56bb345e78939f9909e7f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ac5eecf481c29942eb9a862e758c0c8b68090c33"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae39c8ec4250d2a35ddaab1c40faacfec306ff66"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eddeb8d941d5be11a9da5637dbe81ac37e8449a2"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/40xxx/CVE-2024-40971.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40971"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"98e4da8ca301e062d79ae168c67e56f3c3de3ce4"},{"fixed":"38a82c8d00638bb642bef787eb1d5e0e4d3b7d71"},{"fixed":"724429db09e21ee153fef35e34342279d33df6ae"},{"fixed":"a9cea0489c562c97cd56bb345e78939f9909e7f4"},{"fixed":"eddeb8d941d5be11a9da5637dbe81ac37e8449a2"},{"fixed":"ae39c8ec4250d2a35ddaab1c40faacfec306ff66"},{"fixed":"ac5eecf481c29942eb9a862e758c0c8b68090c33"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-40971.json"}}],"schema_version":"1.7.5"}