CVE-2024-44942
published high CVSS 3.1 · 7.8f2fs: fix to do sanity check on F2FS_INLINE_DATA flag in inode during GC
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 54a8da38b70553b61e2265ee0f26d034349dde25 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ae00e6536a2dd54b64b39e9a39548870cf835745 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 26c07775fb5dc74351d1c3a2bc3cdf609b03e49f · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < fc01008c92f40015aeeced94750855a7111b6929 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.47 through 6.6.* (unaffected · semver) · 6.10.6 through 6.10.* (unaffected · semver) · 6.11 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 | bookworm | linux | Advisory build | 6.1.192-1 | DLA-4906-1 |
| Ubuntu | bionic | block-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | block-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | crypto-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | crypto-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | dasd-extra-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | dasd-extra-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | dasd-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | dasd-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fat-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | fat-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fb-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | fb-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | firewire-core-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | firewire-core-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | floppy-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | floppy-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fs-core-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | fs-core-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | fs-secondary-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | fs-secondary-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | input-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | input-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | ipmi-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | ipmi-modules-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | irda-modules-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | kernel-image-4.15.0-231-generic-di | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | kernel-image-5.4.0-202-generic-di | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-aws | Advisory build | 4.15.0-1175.188 | USN-7121-1 |
| Ubuntu | bionic | linux-aws-5.4 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-5.4-cloud-tools-5.4.0-1136 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-5.4-headers-5.4.0-1136 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-5.4-tools-5.4.0-1136 | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-aws-cloud-tools-4.15.0-1175 | Advisory build | 4.15.0-1175.188 | USN-7121-1 |
| Ubuntu | bionic | linux-aws-headers-4.15.0-1175 | Advisory build | 4.15.0-1175.188 | USN-7121-1 |
| Ubuntu | bionic | linux-aws-tools-4.15.0-1175 | Advisory build | 4.15.0-1175.188 | USN-7121-1 |
| Ubuntu | bionic | linux-azure-4.15 | Advisory build | 4.15.0-1183.198 | USN-7121-1 |
| Ubuntu | bionic | linux-azure-4.15-cloud-tools-4.15.0-1183 | Advisory build | 4.15.0-1183.198 | USN-7121-1 |
| Ubuntu | bionic | linux-azure-4.15-headers-4.15.0-1183 | Advisory build | 4.15.0-1183.198 | USN-7121-1 |
| Ubuntu | bionic | linux-azure-4.15-tools-4.15.0-1183 | Advisory build | 4.15.0-1183.198 | USN-7121-1 |
| Ubuntu | bionic | linux-azure-5.4 | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-azure-5.4-cloud-tools-5.4.0-1142 | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-azure-5.4-headers-5.4.0-1142 | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-azure-5.4-tools-5.4.0-1142 | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-buildinfo-4.15.0-1137-oracle | Advisory build | 4.15.0-1137.148 | USN-7121-1 |
| Ubuntu | bionic | linux-buildinfo-4.15.0-1158-kvm | Advisory build | 4.15.0-1158.163 | USN-7121-1 |
| Ubuntu | bionic | linux-buildinfo-4.15.0-1168-gcp | Advisory build | 4.15.0-1168.185 | USN-7121-1 |
| Ubuntu | bionic | linux-buildinfo-4.15.0-1175-aws | Advisory build | 4.15.0-1175.188 | USN-7121-1 |
| Ubuntu | bionic | linux-buildinfo-4.15.0-1183-azure | Advisory build | 4.15.0-1183.198 | USN-7121-1 |
| Ubuntu | bionic | linux-buildinfo-4.15.0-231-generic | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-buildinfo-4.15.0-231-lowlatency | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1083-ibm | Advisory build | 5.4.0-1083.88~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1120-raspi | Advisory build | 5.4.0-1120.132~18.04.1 | USN-7159-5 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1135-oracle | Advisory build | 5.4.0-1135.144~18.04.1 | USN-7159-3 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1136-aws | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1140-gcp | Advisory build | 5.4.0-1140.149~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-1142-azure | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-202-generic | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-buildinfo-5.4.0-202-lowlatency | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-cloud-tools-4.15.0-1175-aws | Advisory build | 4.15.0-1175.188 | USN-7121-1 |
| Ubuntu | bionic | linux-cloud-tools-4.15.0-1183-azure | Advisory build | 4.15.0-1183.198 | USN-7121-1 |
| Ubuntu | bionic | linux-cloud-tools-4.15.0-231 | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-cloud-tools-4.15.0-231-generic | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-cloud-tools-4.15.0-231-lowlatency | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-1136-aws | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-1142-azure | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-202-generic | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-cloud-tools-5.4.0-202-lowlatency | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-cloud-tools-common | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-gcp-4.15 | Advisory build | 4.15.0-1168.185 | USN-7121-1 |
| Ubuntu | bionic | linux-gcp-4.15-headers-4.15.0-1168 | Advisory build | 4.15.0-1168.185 | USN-7121-1 |
| Ubuntu | bionic | linux-gcp-4.15-tools-4.15.0-1168 | Advisory build | 4.15.0-1168.185 | USN-7121-1 |
| Ubuntu | bionic | linux-gcp-5.4 | Advisory build | 5.4.0-1140.149~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-gcp-5.4-headers-5.4.0-1140 | Advisory build | 5.4.0-1140.149~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-gcp-5.4-tools-5.4.0-1140 | Advisory build | 5.4.0-1140.149~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-headers-4.15.0-1137-oracle | Advisory build | 4.15.0-1137.148 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-4.15.0-1158-kvm | Advisory build | 4.15.0-1158.163 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-4.15.0-1168-gcp | Advisory build | 4.15.0-1168.185 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-4.15.0-1175-aws | Advisory build | 4.15.0-1175.188 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-4.15.0-1183-azure | Advisory build | 4.15.0-1183.198 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-4.15.0-231 | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-4.15.0-231-generic | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-4.15.0-231-lowlatency | Advisory build | 4.15.0-231.243 | USN-7121-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1083-ibm | Advisory build | 5.4.0-1083.88~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1120-raspi | Advisory build | 5.4.0-1120.132~18.04.1 | USN-7159-5 |
| Ubuntu | bionic | linux-headers-5.4.0-1135-oracle | Advisory build | 5.4.0-1135.144~18.04.1 | USN-7159-3 |
| Ubuntu | bionic | linux-headers-5.4.0-1136-aws | Advisory build | 5.4.0-1136.146~18.04.1 | USN-7159-2 |
| Ubuntu | bionic | linux-headers-5.4.0-1140-gcp | Advisory build | 5.4.0-1140.149~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-headers-5.4.0-1142-azure | Advisory build | 5.4.0-1142.149~18.04.1 | USN-7195-2 |
| Ubuntu | bionic | linux-headers-5.4.0-202-generic | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-headers-5.4.0-202-lowlatency | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4 | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4-cloud-tools-5.4.0-202 | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4-cloud-tools-common | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4-headers-5.4.0-202 | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4-source-5.4.0 | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4-tools-5.4.0-202 | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4-tools-common | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-1 |
| Ubuntu | bionic | linux-hwe-5.4-udebs-generic | Advisory build | 5.4.0-202.222~18.04.1 | USN-7159-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: fix to do sanity check on F2FS_INLINE_DATA flag in inode during GC syzbot reports a f2fs bug as below: ------------[ cut here ]------------ kernel BUG at fs/f2fs/inline.c:258! CPU: 1 PID: 34 Comm: kworker/u8:2 Not tainted 6.9.0-rc6-syzkaller-00012-g9e4bc4bcae01 #0 RIP: 0010:f2fs_write_inline_data+0x781/0x790 fs/f2fs/inline.c:258 Call Trace: f2fs_write_single_data_page+0xb65/0x1d60 fs/f2fs/data.c:2834 f2fs_write_cache_pages fs/f2fs/data.c:3133 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3288 [inline] f2fs_write_data_pages+0x1efe/0x3a90 fs/f2fs/data.c:3315 do_writepages+0x35b/0x870 mm/page-writeback.c:2612 __writeback_single_inode+0x165/0x10b0 fs/fs-writeback.c:1650 writeback_sb_inodes+0x905/0x1260 fs/fs-writeback.c:1941 wb_writeback+0x457/0xce0 fs/fs-writeback.c:2117 wb_do_writeback fs/fs-writeback.c:2264 [inline] wb_workfn+0x410/0x1090 fs/fs-writeback.c:2304 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0xa12/0x17c0 kernel/workqueue.c:3335 worker_thread+0x86d/0xd70 kernel/workqueue.c:3416 kthread+0x2f2/0x390 kernel/kthread.c:388 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The root cause is: inline_data inode can be fuzzed, so that there may be valid blkaddr in its direct node, once f2fs triggers background GC to migrate the block, it will hit f2fs_bug_on() during dirty page writeback. Let's add sanity check on F2FS_INLINE_DATA flag in inode during GC, so that, it can forbid migrating inline_data inode's data block for fixing.
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 poisoned inode reaches `gc_data_segment()` only after a local mount of an attacker-supplied f2fs image via loop device or removable media, and the triggering GC/writeback activity is entirely local kernel work. There is no network or adjacent-network path into the f2fs garbage collector. AC:L - Setting `F2FS_INLINE_DATA` in the inode while leaving a valid blkaddr in its direct node is a direct on-disk edit, and `is_alive()` plus the phase-4 checks then pass deterministically; background GC is enabled by default and the attacker can size the image so free sections run low, forcing migration on demand. No race, timing, or memory-layout condition outside the attacker's control is involved. PR:L - An unprivileged local user gets the crafted image mounted through loop devices or desktop/kiosk/Android automounters (udisks2, systemd, vold), and no capability check exists on the GC or writeback path that follows. This matches how the repo scores equivalent f2fs on-disk validation bugs (CVE-2024-47690, CVE-2024-56692). UI:N - In the automount/loop scenario the attacker performs the mount itself and the background GC kthread plus the flusher worker drive the crash asynchronously. No separate victim action is required. S:U - The BUG_ON panic, the stuck page/node-page locks, and the corrupted inode block-pointer array all remain inside the kernel's own security authority and the mounted filesystem. No VM, IOMMU, or sandbox boundary is crossed. C:H - On the non-`CONFIG_F2FS_CHECK_FS` path the WARN is non-fatal and the inode's `i_addr[]` array is replaced with attacker-chosen 32-bit values that f2fs subsequently dereferences as block addresses in `f2fs_get_dnode_of_data()`/`f2fs_map_blocks()`, allowing in-range blocks belonging to other files on the volume to be read back. The persisted metadata corruption therefore yields cross-file content disclosure, not merely a crash. I:H - `memcpy_from_page(inline_data_addr(inode, dn.inode_page), page, 0, MAX_INLINE_DATA(inode))` stomps roughly the whole `i_addr[]` block-pointer array of the inode with the contents of an unrelated data block the attacker controls, and `set_page_dirty(dn.inode_page)` writes that back to disk. The result is attacker-controlled corruption of filesystem metadata that the kernel only flags with `SBI_NEED_FSCK` rather than rejecting. A:H - With `CONFIG_F2FS_CHECK_FS` the reported failure is an outright `kernel BUG at fs/f2fs/inline.c:258` inside the writeback kworker, which dies holding the data page lock and the locked inode node page so every subsequent access to that inode and the bdi flusher deadlocks; without it the `WARN_ON` is fatal under `panic_on_warn` and otherwise repeats on every GC pass while marking the filesystem as needing fsck.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 54a8da38b70553b61e2265ee0f26d034349dde25 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ae00e6536a2dd54b64b39e9a39548870cf835745 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 26c07775fb5dc74351d1c3a2bc3cdf609b03e49f (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < fc01008c92f40015aeeced94750855a7111b6929 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.8 (affected)0 to < 3.8 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.47 through 6.6.* (unaffected · semver)6.10.6 through 6.10.* (unaffected · semver)6.11 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
2Linux · cna
f2fs: fix to do sanity check on F2FS_INLINE_DATA flag in inode during GC
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 09cec3eef3e880f2c0e14857fe06a55e771af3be680bd9235590428669485c3e
- Ingested
- 30 Oct 2026, 12:31:36 UTC
- Source record
- Official CVE record