CVE-2024-40971: f2fs: remove clear SB_INLINECRYPT flag in default_options
Vulnerability summary
CVE-2024-40971 is a high (CVSS 7.3) vulnerability in linux. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 23.2% of scored vulnerabilities.
Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 16 · Related 13Timeline
- 12-07-2024PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
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
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.3HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
23%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.31% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu129 products
- linuxAll versions (No fix recorded) | < 5.15.0-121.131 | < 6.8.0-44.44
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1069.75 | < 6.8.0-1015.16
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71 | ≥ 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 724429db09e21ee153fef35e34342279d33df6ae | ≥ 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a9cea0489c562c97cd56bb345e78939f9909e7f4 | ≥ 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < eddeb8d941d5be11a9da5637dbe81ac37e8449a2 | ≥ 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ae39c8ec4250d2a35ddaab1c40faacfec306ff66 | ≥ 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < ac5eecf481c29942eb9a862e758c0c8b68090c33 | 3.8
- linux_kernel≥ 3.8, < 5.10.221 | ≥ 5.11, < 5.15.162 | ≥ 5.16, < 6.1.96 | ≥ 6.2, < 6.6.36 | ≥ 6.7, < 6.9.7
Debian1 product
- linux< 6.1.99-1 | < 6.9.7-1
3 vendors · 132 products