{"id":"CVE-2024-40971","aliases":["CVE-2024-40971"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: remove clear SB_INLINECRYPT flag in default_options","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: f2fs: eliminar el indicador SB_INLINECRYPT en default_options En f2fs_remount, el indicador SB_INLINECRYPT se borrará y se restablecerá. Si crea un archivo nuevo o abre un archivo durante este intervalo, estos archivos no utilizarán inlinecrypt. En el peor de los casos, puede provocar daños en los datos si Wrappedkey_v0 está habilitado. Hilo A: Hilo B: -f2fs_remount -f2fs_file_open o f2fs_new_inode -default_options &lt;- borrar el indicador SB_INLINECRYPT -fscrypt_select_encryption_impl -parse_options &lt;- configurar SB_INLINECRYPT nuevamente","source":"nvd"}],"published":"2024-07-12T12:32:09.440Z","modified":"2026-10-15T01:18:39.327Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"98e4da8ca301e062d79ae168c67e56f3c3de3ce4","fixed":"38a82c8d00638bb642bef787eb1d5e0e4d3b7d71","status":"affected"},{"type":"git","introduced":"98e4da8ca301e062d79ae168c67e56f3c3de3ce4","fixed":"724429db09e21ee153fef35e34342279d33df6ae","status":"affected"},{"type":"git","introduced":"98e4da8ca301e062d79ae168c67e56f3c3de3ce4","fixed":"a9cea0489c562c97cd56bb345e78939f9909e7f4","status":"affected"},{"type":"git","introduced":"98e4da8ca301e062d79ae168c67e56f3c3de3ce4","fixed":"eddeb8d941d5be11a9da5637dbe81ac37e8449a2","status":"affected"},{"type":"git","introduced":"98e4da8ca301e062d79ae168c67e56f3c3de3ce4","fixed":"ae39c8ec4250d2a35ddaab1c40faacfec306ff66","status":"affected"},{"type":"git","introduced":"98e4da8ca301e062d79ae168c67e56f3c3de3ce4","fixed":"ac5eecf481c29942eb9a862e758c0c8b68090c33","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.8","status":"unaffected"},{"type":"semver","introduced":"5.10.221","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.162","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.96","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.36","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.7","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.8","fixed":"5.10.221"},{"status":"affected","introduced":"5.11","fixed":"5.15.162"},{"status":"affected","introduced":"5.16","fixed":"6.1.96"},{"status":"affected","introduced":"6.2","fixed":"6.6.36"},{"status":"affected","introduced":"6.7","fixed":"6.9.7"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/38a82c8d00638bb642bef787eb1d5e0e4d3b7d71","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/724429db09e21ee153fef35e34342279d33df6ae","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a9cea0489c562c97cd56bb345e78939f9909e7f4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eddeb8d941d5be11a9da5637dbe81ac37e8449a2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ae39c8ec4250d2a35ddaab1c40faacfec306ff66","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac5eecf481c29942eb9a862e758c0c8b68090c33","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:02:54.463Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-40971","url":"https://www.cve.org/CVERecord?id=CVE-2024-40971","licence":"CVE Terms of Use","modified":"2026-10-15T00:46:18.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-40971","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40971","licence":"Public domain","modified":"2026-10-15T01:18:39.327Z"}],"updatedAt":"2026-11-25T22:58:42.867Z","epss":{"score":0.00304,"percentile":0.24957,"date":"2026-12-01T12:00:22.000Z"}}