{"id":"CVE-2024-40971","published":"2024-07-12T12:32:09Z","modified":"2026-10-15T00:46:18Z","title":"f2fs: remove clear SB_INLINECRYPT flag in default_options","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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<- clear SB_INLINECRYPT flag\n\n                                          -fscrypt_select_encryption_impl\n\n  -parse_options\n\t<- set SB_INLINECRYPT again","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00304,"percentile":0.23768,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/38a82c8d00638bb642bef787eb1d5e0e4d3b7d71","tags":[]},{"url":"https://git.kernel.org/stable/c/724429db09e21ee153fef35e34342279d33df6ae","tags":[]},{"url":"https://git.kernel.org/stable/c/a9cea0489c562c97cd56bb345e78939f9909e7f4","tags":[]},{"url":"https://git.kernel.org/stable/c/eddeb8d941d5be11a9da5637dbe81ac37e8449a2","tags":[]},{"url":"https://git.kernel.org/stable/c/ae39c8ec4250d2a35ddaab1c40faacfec306ff66","tags":[]},{"url":"https://git.kernel.org/stable/c/ac5eecf481c29942eb9a862e758c0c8b68090c33","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":4.75},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71",">= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 724429db09e21ee153fef35e34342279d33df6ae",">= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a9cea0489c562c97cd56bb345e78939f9909e7f4",">= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < eddeb8d941d5be11a9da5637dbe81ac37e8449a2",">= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ae39c8ec4250d2a35ddaab1c40faacfec306ff66",">= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ac5eecf481c29942eb9a862e758c0c8b68090c33"]},{"vendor":"Linux","product":"Linux","versions":["3.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:02:54.463850Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-38768","exploited":false,"provenance":"source"}}