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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-38627— f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic

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存在安全漏洞,该漏洞源于f2fs_free_dic未正确处理异步释放,可能导致释放后重用。

CVSS 7.8 · High EPSS 0.18% · P7

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation

Affected Version Matrix 12

VendorProduct Version RangeStatus
Linux Linux bff139b49d9f70c1ac5384aac94554846aa834de< 74cbeeca4f16823ba58c882e1d8b836c0e39c93d affected
bff139b49d9f70c1ac5384aac94554846aa834de< 5d604d40cd3232b09cb339941ef958e49283ed0a affected
bff139b49d9f70c1ac5384aac94554846aa834de< cc81768212cdc509e5a986274db7bc24d18cde19 affected
bff139b49d9f70c1ac5384aac94554846aa834de< 8fae5b6addd5f6895e03797b56e3c7b9f9cd15c9 affected
bff139b49d9f70c1ac5384aac94554846aa834de< 39868685c2a94a70762bc6d77dc81d781d05bff5 affected
6.0 affected
< 6.0 unaffected
6.1.175≤ 6.1.* unaffected
… +4 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-38627

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: compress: fix UAF of f2fs_inode_info in f2fs_free_dic
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: fix UAF of f2fs_inode_info in f2fs_free_dic The decompress_io_ctx may be released asynchronously after I/O completion. If this file is deleted immediately after read, and the kworker of processing post_read_wq has not been executed yet due to high workloads, It is possible that the inode(f2fs_inode_info) is evicted and freed before it is used f2fs_free_dic. The UAF case as below: Thread A Thread B - f2fs_decompress_end_io - f2fs_put_dic - queue_work add free_dic work to post_read_wq - do_unlink - iput - evict - call_rcu This file is deleted after read. Thread C kworker to process post_read_wq - rcu_do_batch - f2fs_free_inode - kmem_cache_free inode is freed by rcu - process_scheduled_works - f2fs_late_free_dic - f2fs_free_dic - f2fs_release_decomp_mem read (dic->inode)->i_compress_algorithm This patch store compress_algorithm and sbi in dic to avoid inode UAF. In addition, the previous solution is deprecated in [1] may cause system hang. [1] https://lore.kernel.org/all/c36ab955-c8db-4a8b-a9d0-f07b5f426c3f@kernel.org
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存在安全漏洞,该漏洞源于f2fs_free_dic未正确处理异步释放,可能导致释放后重用。
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 bff139b49d9f70c1ac5384aac94554846aa834de ~ 74cbeeca4f16823ba58c882e1d8b836c0e39c93d -
Linux Linux 6.0 -

II. Public POCs for CVE-2025-38627

# 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-38627

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

Patches & Fixes for CVE-2025-38627 (2)

Same Patch Batch · Linux · 2025-08-22 · 60 CVEs total

CVE-2025-38660 9.8 CRITICAL [ceph] parse_longname(): strrchr() expects NUL-terminated string
CVE-2025-38658 8.8 HIGH nvmet: pci-epf: Do not complete commands twice if nvmet_req_init() fails
CVE-2025-38643 8.8 HIGH wifi: cfg80211: Add missing lock in cfg80211_check_and_end_cac()
CVE-2024-58239 8.2 HIGH tls: stop recv() if initial process_rx_list gave us non-DATA
CVE-2025-38675 7.8 HIGH xfrm: state: initialize state_ptrs earlier in xfrm_state_find
CVE-2025-38659 7.8 HIGH gfs2: No more self recovery
CVE-2025-38656 7.8 HIGH wifi: iwlwifi: Fix error code in iwl_op_mode_dvm_start()
CVE-2025-38653 7.8 HIGH proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al
CVE-2025-38667 7.8 HIGH iio: fix potential out-of-bound write
CVE-2025-38619 7.8 HIGH media: ti: j721e-csi2rx: fix list_del corruption
CVE-2025-38640 7.8 HIGH bpf: Disable migration in nf_hook_run_bpf().
CVE-2025-38670 7.8 HIGH arm64/entry: Mask DAIF in cpu_switch_to(), call_on_irq_stack()
CVE-2025-38618 7.8 HIGH vsock: Do not allow binding to VMADDR_PORT_ANY
CVE-2025-38617 7.8 HIGH net/packet: fix a race in packet_set_ring() and packet_notifier()
CVE-2025-38616 7.8 HIGH tls: handle data disappearing from under the TLS ULP
CVE-2025-38657 7.3 HIGH wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
CVE-2025-38652 7.3 HIGH f2fs: fix to avoid out-of-boundary access in devs.path
CVE-2025-38639 7.1 HIGH netfilter: xt_nfacct: don't assume acct name is null-terminated
CVE-2025-38661 7.1 HIGH platform/x86: alienware-wmi-wmax: Fix `dmi_system_id` array
CVE-2025-38662 7.1 HIGH ASoC: mediatek: mt8365-dai-i2s: pass correct size to mt8365_dai_set_priv

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-38627

No comments yet


Leave a comment