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-2025-38218

published high CVSS 3.1 · 7.8

f2fs: fix to do sanity check on sit_bitmap_size

Published
04 Jul 2025, 13:37:35 UTC
Updated
05 Aug 2026, 12:00:26 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 82f51bff393e4c12cf4de553120ca831cfa4ef19 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 38ef48a8afef8df646b6f6ae7abb872f18b533c1 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ad862f71016ba38039df1c96ed55c0a4314cc183 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 79ef8a6c4ec53d327580fd7d2b522cf4f1d05b0c · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ee1b421c469876544e297ec1090574bd76100247 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 3e5ac62a56a24f4d88ce8ffd7bc452428b235868 · 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 5db0d252c64e91ba1929c70112352e85dc5751e7 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.8 (affected) · 0 to < 3.8 (unaffected · semver) · 5.10.239 through 5.10.* (unaffected · semver) · 5.15.186 through 5.15.* (unaffected · semver) · 6.1.142 through 6.1.* (unaffected · semver) · 6.6.95 through 6.6.* (unaffected · semver) · 6.12.35 through 6.12.* (unaffected · semver) · 6.15.4 through 6.15.* (unaffected · semver) · 6.16 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.147-1 DSA-5973-1
Ubuntu focal linux-aws-5.15 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Debian bullseye linux Advisory build 5.10.244-1 DLA-4327-1
Debian bullseye linux-6.1 Advisory build 6.1.153-1~deb11u1 DLA-4328-1
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu focal linux-aws-5.15-cloud-tools-5.15.0-1092 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-aws-5.15-headers-5.15.0-1092 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-aws-5.15-tools-5.15.0-1092 Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-azure-5.15 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-azure-5.15-cloud-tools-5.15.0-1096 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-azure-5.15-headers-5.15.0-1096 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-azure-5.15-tools-5.15.0-1096 Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-buildinfo-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-buildinfo-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-buildinfo-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-generic-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-generic-lpae Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-buildinfo-5.15.0-156-lowlatency-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-cloud-tools-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-cloud-tools-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-gcp-5.15 Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-gcp-5.15-headers-5.15.0-1092 Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-gcp-5.15-tools-5.15.0-1092 Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-headers-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-headers-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-generic-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-generic-lpae Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-headers-5.15.0-156-lowlatency-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15-cloud-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15-headers-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-hwe-5.15-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15-headers-5.15.0-1086 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15-source-5.15.0 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-ibm-5.15-tools-5.15.0-1086 Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-image-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-5.15.0-156-generic-lpae Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-image-unsigned-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-image-unsigned-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-156-generic-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-image-unsigned-5.15.0-156-lowlatency-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-5.15.0-1087 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-cloud-tools-common Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-headers-5.15.0-1087 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-tools-5.15.0-1087 Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-tools-common Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-intel-iotg-5.15-tools-host Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15-headers-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-lowlatency-hwe-5.15-tools-5.15.0-156 Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1045-nvidia-tegra-rt Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-modules-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-modules-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-156-generic-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-156-generic-lpae Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-156-lowlatency Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-5.15.0-156-lowlatency-64k Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-extra-5.15.0-1045-nvidia-tegra Advisory build 5.15.0-1045.45~20.04.1 USN-7774-1
Ubuntu focal linux-modules-extra-5.15.0-1086-ibm Advisory build 5.15.0-1086.89~20.04.1 USN-7774-1
Ubuntu focal linux-modules-extra-5.15.0-1087-intel-iotg Advisory build 5.15.0-1087.93~20.04.1 USN-7774-1
Ubuntu focal linux-modules-extra-5.15.0-1090-oracle Advisory build 5.15.0-1090.96~20.04.1 USN-7776-1
Ubuntu focal linux-modules-extra-5.15.0-1092-aws Advisory build 5.15.0-1092.99~20.04.1 USN-7774-1
Ubuntu focal linux-modules-extra-5.15.0-1092-gcp Advisory build 5.15.0-1092.101~20.04.1 USN-7774-1
Ubuntu focal linux-modules-extra-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3
Ubuntu focal linux-modules-extra-5.15.0-156-generic Advisory build 5.15.0-156.166~20.04.1 USN-7774-1
Ubuntu focal linux-modules-involflt-5.15.0-1096-azure Advisory build 5.15.0-1096.105~20.04.1 USN-7775-3

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 sit_bitmap_size w/ below testcase, resize will generate a corrupted image which contains inconsistent metadata, so when mounting such image, it will trigger kernel panic: touch img truncate -s $((512*1024*1024*1024)) img mkfs.f2fs -f img $((256*1024*1024)) resize.f2fs -s -i img -t $((1024*1024*1024)) mount img /mnt/f2fs ------------[ cut here ]------------ kernel BUG at fs/f2fs/segment.h:863! Oops: invalid opcode: 0000 [#1] SMP PTI CPU: 11 UID: 0 PID: 3922 Comm: mount Not tainted 6.15.0-rc1+ #191 PREEMPT(voluntary) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:f2fs_ra_meta_pages+0x47c/0x490 Call Trace: f2fs_build_segment_manager+0x11c3/0x2600 f2fs_fill_super+0xe97/0x2840 mount_bdev+0xf4/0x140 legacy_get_tree+0x2b/0x50 vfs_get_tree+0x29/0xd0 path_mount+0x487/0xaf0 __x64_sys_mount+0x116/0x150 do_syscall_64+0x82/0x190 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fdbfde1bcfe The reaseon is: sit_i->bitmap_size is 192, so size of sit bitmap is 192*8=1536, at maximum there are 1536 sit blocks, however MAIN_SEGS is 261893, so that sit_blk_cnt is 4762, build_sit_entries() -> current_sit_addr() tries to access out-of-boundary in sit_bitmap at offset from [1536, 4762), once sit_bitmap and sit_bitmap_mirror is not the same, it will trigger f2fs_bug_on(). Let's add sanity check in f2fs_sanity_check_ckpt() to avoid panic.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

36

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 through the local `mount(2)` path (`f2fs_fill_super` → `f2fs_build_segment_manager` → `build_sit_entries`) when a crafted f2fs image is attached, and the subsequent OOB write is reached via ordinary local file writes triggering a checkpoint. No network exposure exists. AC:L - The attacker fully controls the on-disk `sit_ver_bitmap_bytesize` and `segment_count_main` fields, so the out-of-bounds offset is deterministic and reproducible on every mount — the PoC is four shell commands with no race, timing, or memory-layout luck required to trigger it. PR:L - An unprivileged local user can get the crafted image mounted through removable-media auto-mount paths that are ubiquitous for f2fs — Android vold mounting SD/adoptable storage and udisks2 on desktops — without holding real `CAP_SYS_ADMIN` in the init namespace. UI:N - The attacker supplies and mounts the image themselves via auto-mount or delegated mount rights; no action by a separate victim user is needed, and the follow-on OOB write in `f2fs_flush_sit_entries()` fires from the attacker's own writes. S:U - The out-of-bounds access corrupts kernel slab memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - `current_sit_addr()` performs a heap out-of-bounds read of the `kmemdup`'d `sit_bitmap` at an attacker-chosen offset extending thousands of bits (up to ~19 KB) past the slab object, and the values read steer computed metadata block addresses, providing an oracle over adjacent kernel heap contents. I:H - `f2fs_flush_sit_entries()` → `get_next_sit_folio()` → `set_to_next_sit()` → `f2fs_change_bit()` performs an out-of-bounds bit flip at the same attacker-chosen offset, corrupting adjacent slab objects — a heap-corruption primitive suitable for control-flow hijacking with standard grooming. A:H - The reported impact is an immediate kernel panic — `BUG()` via `f2fs_bug_on()` at `fs/f2fs/segment.h:863` inside `f2fs_ra_meta_pages()` during mount — and the far out-of-bounds accesses can also fault on unmapped memory.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 82f51bff393e4c12cf4de553120ca831cfa4ef19 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 38ef48a8afef8df646b6f6ae7abb872f18b533c1 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ad862f71016ba38039df1c96ed55c0a4314cc183 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 79ef8a6c4ec53d327580fd7d2b522cf4f1d05b0c (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < ee1b421c469876544e297ec1090574bd76100247 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 3e5ac62a56a24f4d88ce8ffd7bc452428b235868 (affected · git)98e4da8ca301e062d79ae168c67e56f3c3de3ce4 to < 5db0d252c64e91ba1929c70112352e85dc5751e7 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.8 (affected)0 to < 3.8 (unaffected · semver)5.10.239 through 5.10.* (unaffected · semver)5.15.186 through 5.15.* (unaffected · semver)6.1.142 through 6.1.* (unaffected · semver)6.6.95 through 6.6.* (unaffected · semver)6.12.35 through 6.12.* (unaffected · semver)6.15.4 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

9

Provider assertions

2

Linux · cna

f2fs: fix to do sanity check on sit_bitmap_size

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
19e33b8674fad23234dc03bdc0bc7b75b52e32ca6eb4ba398acf26c8ef53a487
Ingested
23 Sep 2026, 08:46:29 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