Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-40971

published high CVSS 3.1 · 7.3

f2fs: remove clear SB_INLINECRYPT flag in default_options

Published
12 Jul 2024, 12:32:09 UTC
Updated
15 Oct 2026, 00:46:18 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 724429db09e21ee153fef35e34342279d33df6ae · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < a9cea0489c562c97cd56bb345e78939f9909e7f4 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < eddeb8d941d5be11a9da5637dbe81ac37e8449a2 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ae39c8ec4250d2a35ddaab1c40faacfec306ff66 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ac5eecf481c29942eb9a862e758c0c8b68090c33 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 5.10.221 through 5.10.* (unaffected · semver) · 5.15.162 through 5.15.* (unaffected · semver) · 6.1.96 through 6.1.* (unaffected · semver) · 6.6.36 through 6.6.* (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Siemens — SIMATIC S7-1500 TM MFP - GNU/Linux subsystem0 to < V1.1.1 · Other versions: unknown Affected Not stated siemens-SADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bookworm linux Advisory build 6.1.99-1 DSA-5731-1
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1069.75~20.04.1 USN-7007-1
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Debian bullseye linux Advisory build 5.10.221-1 DSA-5730-1
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 8 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el8uek ELSA-2024-12618
Oracle Linux 9 bpftoolaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 bpftoolx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-containeraarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-containerx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-docaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-210.163.7.el9uek ELSA-2024-12618
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1069 Advisory build 5.15.0-1069.75~20.04.1 USN-7007-1
Ubuntu focal linux-aws-5.15-headers-5.15.0-1069 Advisory build 5.15.0-1069.75~20.04.1 USN-7007-1
Ubuntu focal linux-aws-5.15-tools-5.15.0-1069 Advisory build 5.15.0-1069.75~20.04.1 USN-7007-1
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1072.81~20.04.1 USN-7009-1
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1072 Advisory build 5.15.0-1072.81~20.04.1 USN-7009-1
Ubuntu focal linux-azure-5.15-headers-5.15.0-1072 Advisory build 5.15.0-1072.81~20.04.1 USN-7009-1
Ubuntu focal linux-azure-5.15-tools-5.15.0-1072 Advisory build 5.15.0-1072.81~20.04.1 USN-7009-1
Ubuntu focal linux-buildinfo-5.15.0-1052-gkeop Advisory build 5.15.0-1052.59~20.04.1 USN-7007-1
Ubuntu focal linux-buildinfo-5.15.0-1062-ibm Advisory build 5.15.0-1062.65~20.04.1 USN-7007-2
Ubuntu focal linux-buildinfo-5.15.0-1064-intel-iotg Advisory build 5.15.0-1064.70~20.04.1 USN-7007-1
Ubuntu focal linux-buildinfo-5.15.0-1067-oracle Advisory build 5.15.0-1067.73~20.04.1 USN-7007-2
Ubuntu focal linux-buildinfo-5.15.0-1068-gcp Advisory build 5.15.0-1068.76~20.04.1 USN-7007-1
Ubuntu focal linux-buildinfo-5.15.0-1069-aws Advisory build 5.15.0-1069.75~20.04.1 USN-7007-1
Ubuntu focal linux-buildinfo-5.15.0-1072-azure Advisory build 5.15.0-1072.81~20.04.1 USN-7009-1
Ubuntu focal linux-buildinfo-5.15.0-121-generic Advisory build 5.15.0-121.131~20.04.1 USN-7007-1
Ubuntu focal linux-buildinfo-5.15.0-121-generic-64k Advisory build 5.15.0-121.131~20.04.1 USN-7007-1
Ubuntu focal linux-buildinfo-5.15.0-121-generic-lpae Advisory build 5.15.0-121.131~20.04.1 USN-7007-1
Ubuntu focal linux-buildinfo-5.15.0-121-lowlatency Advisory build 5.15.0-121.131~20.04.1 USN-7007-3
Ubuntu focal linux-buildinfo-5.15.0-121-lowlatency-64k Advisory build 5.15.0-121.131~20.04.1 USN-7007-3
Ubuntu focal linux-cloud-tools-5.15.0-1052-gkeop Advisory build 5.15.0-1052.59~20.04.1 USN-7007-1
Ubuntu focal linux-cloud-tools-5.15.0-1064-intel-iotg Advisory build 5.15.0-1064.70~20.04.1 USN-7007-1
Ubuntu focal linux-cloud-tools-5.15.0-1069-aws Advisory build 5.15.0-1069.75~20.04.1 USN-7007-1
Ubuntu focal linux-cloud-tools-5.15.0-1072-azure Advisory build 5.15.0-1072.81~20.04.1 USN-7009-1
Ubuntu focal linux-cloud-tools-5.15.0-121-generic Advisory build 5.15.0-121.131~20.04.1 USN-7007-1
Ubuntu focal linux-cloud-tools-5.15.0-121-lowlatency Advisory build 5.15.0-121.131~20.04.1 USN-7007-3
Ubuntu focal linux-gcp-5.15 Advisory build 5.15.0-1068.76~20.04.1 USN-7007-1
Ubuntu focal linux-gcp-5.15-headers-5.15.0-1068 Advisory build 5.15.0-1068.76~20.04.1 USN-7007-1
Ubuntu focal linux-gcp-5.15-tools-5.15.0-1068 Advisory build 5.15.0-1068.76~20.04.1 USN-7007-1
Ubuntu focal linux-gkeop-5.15 Advisory build 5.15.0-1052.59~20.04.1 USN-7007-1
Ubuntu focal linux-gkeop-5.15-cloud-tools-5.15.0-1052 Advisory build 5.15.0-1052.59~20.04.1 USN-7007-1
Ubuntu focal linux-gkeop-5.15-headers-5.15.0-1052 Advisory build 5.15.0-1052.59~20.04.1 USN-7007-1
Ubuntu focal linux-gkeop-5.15-tools-5.15.0-1052 Advisory build 5.15.0-1052.59~20.04.1 USN-7007-1
Ubuntu focal linux-headers-5.15.0-1052-gkeop Advisory build 5.15.0-1052.59~20.04.1 USN-7007-1
Ubuntu focal linux-headers-5.15.0-1062-ibm Advisory build 5.15.0-1062.65~20.04.1 USN-7007-2
Ubuntu focal linux-headers-5.15.0-1064-intel-iotg Advisory build 5.15.0-1064.70~20.04.1 USN-7007-1
Ubuntu focal linux-headers-5.15.0-1067-oracle Advisory build 5.15.0-1067.73~20.04.1 USN-7007-2
Ubuntu focal linux-headers-5.15.0-1068-gcp Advisory build 5.15.0-1068.76~20.04.1 USN-7007-1
Ubuntu focal linux-headers-5.15.0-1069-aws Advisory build 5.15.0-1069.75~20.04.1 USN-7007-1
Ubuntu focal linux-headers-5.15.0-1072-azure Advisory build 5.15.0-1072.81~20.04.1 USN-7009-1
Ubuntu focal linux-headers-5.15.0-121-generic Advisory build 5.15.0-121.131~20.04.1 USN-7007-1

Package entries are limited to the first 100 builds and 100 linked advisories.

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

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

20

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.3 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H
Scenarios
en: AV:L - The affected code is reached exclusively through local syscalls — `mount(2)` remount on one side and `open(2)`/`creat(2)`/`mkdir(2)` on the other. No network protocol handler or remote peer data is involved. AC:L - There is no tight race to win: whenever the remount option string omits `inlinecrypt`, `SB_INLINECRYPT` stays cleared for the full duration of the remount (which includes multi-second work such as `f2fs_disable_checkpoint()`'s GC loop) or permanently on success, and the attacker simply runs a continuous file-creation loop, which is entirely under their control. f2fs remounts are routine, frequent system operations on the primary deployment (Android `/data`, embedded ro→rw transitions), not an extenuating circumstance. PR:L - The exploiting side — opening or creating files on the encrypted f2fs mount so they latch `ci_inlinecrypt = false` — requires only an ordinary unprivileged local account, with no capability check anywhere on the `f2fs_file_open()`/`f2fs_new_inode()` path. Only the environmental remount needs CAP_SYS_ADMIN, and that is a routine system action, not a privilege the attacker must hold. UI:N - The attacker performs their own file creations with no action required from another human; the remount is an automated system operation performed by init/vold/systemd during boot, user unlock, or OTA, not an interactive victim step. S:U - The mis-selected encryption implementation and the resulting corruption stay within the f2fs superblock and the kernel's own security authority. No VM, IOMMU, container, or sandbox boundary is crossed. C:L - The bug silently downgrades file-contents encryption from the inline crypto engine — where, with hardware-wrapped keys, key material never leaves the hardware key slots — to the software crypto API, materializing usable key material in kernel RAM on vendor kernels that permit the fallback and defeating the protection the `inlinecrypt` mount option was chosen to provide. Data is still encrypted on disk, so this is a limited weakening rather than an arbitrary read. I:H - Files created or opened while the flag is cleared are permanently bound to the wrong crypto implementation, so with `wrappedkey_v0` their contents are written under a different key than the one used on read-back, producing silent, persistent, unrecoverable corruption of user data on the encrypted partition — exactly the "data corruption" the fix commit describes. The corruption survives reboot and is not detectable or repairable by the affected application. A:H - On kernels with hardware-wrapped key support, `fscrypt_setup_v2_file_key()` returns `-EINVAL` for every regular-file open when inline crypt was not selected, so the entire encrypted data partition becomes inaccessible for the duration of the window — or indefinitely if the remount omitted `inlinecrypt` — rendering an Android/embedded device unusable. Corrupted system files on `/data` additionally force a factory reset to recover.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 38a82c8d00638bb642bef787eb1d5e0e4d3b7d71 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 724429db09e21ee153fef35e34342279d33df6ae (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < a9cea0489c562c97cd56bb345e78939f9909e7f4 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < eddeb8d941d5be11a9da5637dbe81ac37e8449a2 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ae39c8ec4250d2a35ddaab1c40faacfec306ff66 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ac5eecf481c29942eb9a862e758c0c8b68090c33 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.8 (affected)0 to < 3.8 (unaffected · semver)5.10.221 through 5.10.* (unaffected · semver)5.15.162 through 5.15.* (unaffected · semver)6.1.96 through 6.1.* (unaffected · semver)6.6.36 through 6.6.* (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem 0 to < V1.1.1 (affected · custom)Default: unknown siemens-SADP · adp

Weaknesses

0

No weakness assertions.

References

9

Provider assertions

4

Linux · cna

f2fs: remove clear SB_INLINECRYPT flag in default_options

siemens-SADP · adp

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
8ff1a9da89d90e41862e05de283dd0a3233af08d4045e627e3b2558277e11d32
Ingested
15 Oct 2026, 13:09:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected