CVE-2024-49859
published high CVSS 3.1 · 7.8f2fs: fix to check atomic_file in f2fs ioctl interfaces
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 26b07bd2e1f124b0e430c8d250023f7205c549c3 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 7cb51731f24b216b0b87942f519f2c67a17107ee · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 10569b682ebe9c75ef06ddd322ae844e9be6374b · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < d6f08c88047accc6127dddb6798a3ff11321539d · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < bfe5c02654261bfb8bd9cb174a67f3279ea99e58 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 6.1.113 through 6.1.* (unaffected · semver) · 6.6.54 through 6.6.* (unaffected · semver) · 6.10.13 through 6.10.* (unaffected · semver) · 6.11.2 through 6.11.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| 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 | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | jammy | linux-aws-6.8 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devel-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermaarch64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermppc64le | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longterms390x | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-longtermx86_64 | Advisory build | 6.12.11-1.1 | OPENSUSE-SU-2025:14705-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 6.11.8-1.1 | OPENSUSE-SU-2024:14500-1 |
| Ubuntu | jammy | linux-aws-6.8-cloud-tools-6.8.0-1023 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-aws-6.8-headers-6.8.0-1023 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-aws-6.8-tools-6.8.0-1023 | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-azure-6.8 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-azure-6.8-cloud-tools-6.8.0-1025 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-azure-6.8-headers-6.8.0-1025 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-azure-6.8-tools-6.8.0-1025 | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-buildinfo-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-cloud-tools-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-gcp-6.8 | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-gcp-6.8-headers-6.8.0-1024 | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-gcp-6.8-tools-6.8.0-1024 | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-headers-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-headers-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-headers-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-headers-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-headers-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-headers-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-headers-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-headers-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8-cloud-tools-6.8.0-57 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8-headers-6.8.0-57 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-hwe-6.8-tools-6.8.0-57 | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-image-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-image-unsigned-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-cloud-tools-6.8.0-54 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-headers-6.8.0-54 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-lib-rust-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-lowlatency-hwe-6.8-tools-6.8.0-54 | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-modules-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-modules-6.8.0-1022-nvidia | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1022-nvidia-64k | Advisory build | 6.8.0-1022.25~22.04.2 | USN-7303-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1023-aws | Advisory build | 6.8.0-1023.25~22.04.1 | USN-7311-1 |
| Ubuntu | jammy | linux-modules-6.8.0-1024-gcp | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-modules-6.8.0-1024-gcp-64k | Advisory build | 6.8.0-1024.26~22.04.1 | USN-7303-3 |
| Ubuntu | jammy | linux-modules-6.8.0-1025-azure | Advisory build | 6.8.0-1025.30~22.04.1 | USN-7384-2 |
| Ubuntu | jammy | linux-modules-6.8.0-54-lowlatency | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-modules-6.8.0-54-lowlatency-64k | Advisory build | 6.8.0-54.56.1~22.04.1 | USN-7301-1 |
| Ubuntu | jammy | linux-modules-6.8.0-57-generic | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-modules-6.8.0-57-generic-64k | Advisory build | 6.8.0-57.59~22.04.1 | USN-7403-1 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1020-oracle | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
| Ubuntu | jammy | linux-modules-extra-6.8.0-1020-oracle-64k | Advisory build | 6.8.0-1020.21~22.04.1 | USN-7303-2 |
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: fix to check atomic_file in f2fs ioctl interfaces Some f2fs ioctl interfaces like f2fs_ioc_set_pin_file(), f2fs_move_file_range(), and f2fs_defragment_range() missed to check atomic_write status, which may cause potential race issue, fix it.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerability is reached only through local ioctl() calls (`F2FS_IOC_START_ATOMIC_WRITE`, `F2FS_IOC_MOVE_RANGE`, `F2FS_IOC_SET_PIN_FILE`, `F2FS_IOC_DEFRAGMENT`) on file descriptors of an already-mounted f2fs filesystem. There is no remote or adjacent-network path into `fs/f2fs/file.c`. AC:L - For the two unprivileged entry points no race is required at all — the attacker simply issues `F2FS_IOC_START_ATOMIC_WRITE` and then `F2FS_IOC_MOVE_RANGE`/`F2FS_IOC_SET_PIN_FILE` in sequence on the same fd, deterministically reaching the unguarded state. Even the `f2fs_defragment_range()` TOCTOU is driven entirely by two attacker-owned threads. PR:L - `f2fs_ioc_set_pin_file()` and `__f2fs_ioc_move_range()` contain no `capable()` check whatsoever, and `f2fs_ioc_start_atomic_write()` only requires `inode_owner_or_capable()` on a file the attacker creates — so any unprivileged local user with a writable f2fs mount (every Android app on `/data`, any automounted f2fs volume) can trigger it. Only the `F2FS_IOC_DEFRAGMENT` variant needs `CAP_SYS_ADMIN`, and it is not the limiting path. UI:N - The attacker performs every step themselves against an already-mounted filesystem; no victim needs to open a file, mount a volume, or take any other action. S:U - The corruption is confined to f2fs metadata and kernel memory within the same security authority — a standard local kernel compromise with no VM, IOMMU, or sandbox boundary crossed. C:H - Double-release of a physical block desynchronizes SIT/SSA and the valid-block bitmaps, so a block still mapped in the attacker's inode is marked free and reallocated to another user's or system file, letting the attacker read its contents through their own mapping. The `SET_PIN_FILE` variant likewise drives in-place writes against stale extent-cache block addresses. I:H - The same double-referenced block gives the attacker a write primitive into another file's data, and the corrupted block accounting plus `f2fs_replace_block()` on stale/`NULL_ADDR` mappings persistently corrupts on-disk filesystem metadata (`SBI_NEED_FSCK`). A:H - The inconsistent state reaches `f2fs_bug_on()` in `f2fs_invalidate_blocks()`, `dec_valid_block_count()`, and `update_sit_entry()`, which are plain `BUG_ON` under `CONFIG_F2FS_CHECK_FS` — an immediate kernel panic — and otherwise leave the filesystem corrupted and unusable.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 26b07bd2e1f124b0e430c8d250023f7205c549c3 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 7cb51731f24b216b0b87942f519f2c67a17107ee (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 10569b682ebe9c75ef06ddd322ae844e9be6374b (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < d6f08c88047accc6127dddb6798a3ff11321539d (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < bfe5c02654261bfb8bd9cb174a67f3279ea99e58 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.8 (affected)0 to < 3.8 (unaffected · semver)6.1.113 through 6.1.* (unaffected · semver)6.6.54 through 6.6.* (unaffected · semver)6.10.13 through 6.10.* (unaffected · semver)6.11.2 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/10569b682ebe9c75ef06ddd322ae844e9be6374b
- https://git.kernel.org/stable/c/26b07bd2e1f124b0e430c8d250023f7205c549c3
- https://git.kernel.org/stable/c/7cb51731f24b216b0b87942f519f2c67a17107ee
- https://git.kernel.org/stable/c/bfe5c02654261bfb8bd9cb174a67f3279ea99e58
- https://git.kernel.org/stable/c/d6f08c88047accc6127dddb6798a3ff11321539d
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
f2fs: fix to check atomic_file in f2fs ioctl interfaces
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5ae376205e98cc9fa5f209c15a6294b64300cad71fcf283f1f394af6dd20c17c
- Ingested
- 23 Sep 2026, 08:29:06 UTC
- Source record
- Official CVE record