Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-38218— f2fs: fix to do sanity check on sit_bitmap_size

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未验证sit_bitmap_size导致内存损坏。

CVSS 7.8 · High EPSS 0.19% · P8

Possible ATT&CK Techniques 2 AI

T1496 · Resource Hijacking T1562

Affected Version Matrix 16

VendorProduct Version RangeStatus
Linux Linux 98e4da8ca301e062d79ae168c67e56f3c3de3ce4< 82f51bff393e4c12cf4de553120ca831cfa4ef19 affected
98e4da8ca301e062d79ae168c67e56f3c3de3ce4< 38ef48a8afef8df646b6f6ae7abb872f18b533c1 affected
98e4da8ca301e062d79ae168c67e56f3c3de3ce4< ad862f71016ba38039df1c96ed55c0a4314cc183 affected
98e4da8ca301e062d79ae168c67e56f3c3de3ce4< 79ef8a6c4ec53d327580fd7d2b522cf4f1d05b0c affected
98e4da8ca301e062d79ae168c67e56f3c3de3ce4< ee1b421c469876544e297ec1090574bd76100247 affected
98e4da8ca301e062d79ae168c67e56f3c3de3ce4< 3e5ac62a56a24f4d88ce8ffd7bc452428b235868 affected
98e4da8ca301e062d79ae168c67e56f3c3de3ce4< 5db0d252c64e91ba1929c70112352e85dc5751e7 affected
3.8 affected
… +8 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-38218

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
f2fs: fix to do sanity check on sit_bitmap_size
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未验证sit_bitmap_size导致内存损坏。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux 98e4da8ca301e062d79ae168c67e56f3c3de3ce4 ~ 82f51bff393e4c12cf4de553120ca831cfa4ef19 -
Linux Linux 3.8 -

II. Public POCs for CVE-2025-38218

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38218

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-07-04 · 59 CVEs total

CVE-2025-38209 9.8 CRITICAL nvme-tcp: remove tag set when second admin queue config fails
CVE-2025-38211 9.8 CRITICAL RDMA/iwcm: Fix use-after-free of work objects after cm_id destruction
CVE-2025-38174 8.8 HIGH thunderbolt: Do not double dequeue a configuration request
CVE-2025-38216 8.8 HIGH iommu/vt-d: Restore context entry setup order for aliased devices
CVE-2025-38189 7.8 HIGH drm/v3d: Avoid NULL pointer dereference in `v3d_job_update_stats()`
CVE-2025-38234 7.8 HIGH sched/rt: Fix race in push_rt_task
CVE-2025-38180 7.8 HIGH net: atm: fix /proc/net/atm/lec handling
CVE-2025-38187 7.8 HIGH drm/nouveau: fix a use-after-free in r535_gsp_rpc_push()
CVE-2025-38193 7.8 HIGH net_sched: sch_sfq: reject invalid perturb period
CVE-2025-38192 7.8 HIGH net: clear the dst when changing skb protocol
CVE-2025-38204 7.8 HIGH jfs: fix array-index-out-of-bounds read in add_missing_indices
CVE-2025-38206 7.8 HIGH exfat: fix double free in delayed_free
CVE-2025-38212 7.8 HIGH ipc: fix to protect IPCS lookups using RCU
CVE-2025-38224 7.8 HIGH can: kvaser_pciefd: refine error prone echo_skb_max handling logic
CVE-2025-38226 7.8 HIGH media: vivid: Change the siize of the composing
CVE-2025-38227 7.8 HIGH media: vidtv: Terminating the subsequent process of initialization failure
CVE-2025-38230 7.8 HIGH jfs: validate AG parameters in dbMount() to prevent crashes
CVE-2025-38233 7.8 HIGH powerpc64/ftrace: fix clobbered r15 during livepatching
CVE-2025-38232 7.8 HIGH NFSD: fix race between nfsd registration and exports_proc
CVE-2025-38175 7.8 HIGH binder: fix yet another UAF in binder_devices

Showing top 20 of 59 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-38218

No comments yet


Leave a comment