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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-40241— erofs: fix crafted invalid cases for encoded extents

CVSS 7.8 · High EPSS 0.14% · P4

Possible ATT&CK Techniques 1AI

T1207 · Rogue Domain Controller

Affected Version Matrix 6

VendorProductVersion RangeStatus
LinuxLinux1d191b4ca51d73699cb127386b95ac152af2b930< 00d8fe0b72f4ca0a983abced36aad2160038c421affected
1d191b4ca51d73699cb127386b95ac152af2b930< a429b76114aaca3ef1aff4cd469dcf025431bd11affected
6.15affected
< 6.15unaffected
6.17.6≤ 6.17.*unaffected
6.18≤ *unaffected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-40241

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
erofs: fix crafted invalid cases for encoded extents
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: erofs: fix crafted invalid cases for encoded extents Robert recently reported two corrupted images that can cause system crashes, which are related to the new encoded extents introduced in Linux 6.15: - The first one [1] has plen != 0 (e.g. plen == 0x2000000) but (plen & Z_EROFS_EXTENT_PLEN_MASK) == 0. It is used to represent special extents such as sparse extents (!EROFS_MAP_MAPPED), but previously only plen == 0 was handled; - The second one [2] has pa 0xffffffffffdcffed and plen 0xb4000, then "cur [0xfffffffffffff000] += bvec.bv_len [0x1000]" in "} while ((cur += bvec.bv_len) < end);" wraps around, causing an out-of-bound access of pcl->compressed_bvecs[] in z_erofs_submit_queue(). EROFS only supports 48-bit physical block addresses (up to 1EiB for 4k blocks), so add a sanity check to enforce this.
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存在安全漏洞,该漏洞源于处理特制无效编码extent时可能导致越界访问。
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

VendorProductAffected VersionsCPESubscribe
LinuxLinux 1d191b4ca51d73699cb127386b95ac152af2b930 ~ 00d8fe0b72f4ca0a983abced36aad2160038c421 -
LinuxLinux 6.15 -

II. Public POCs for CVE-2025-40241

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-40241

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-12-04 · 53 CVEs total

CVE-2025-402529.8 CRITICALnet: qlogic/qede: fix potential out-of-bounds read in qede_tpa_cont() and qede_tpa_end()
CVE-2025-402619.8 CRITICALnvme: nvme-fc: Ensure ->ioerr_work is cancelled in nvme_fc_delete_ctrl()
CVE-2025-402589.8 CRITICALmptcp: fix race condition in mptcp_schedule_work()
CVE-2025-402579.8 CRITICALmptcp: fix a race in mptcp_pm_del_add_timer()
CVE-2025-402538.8 HIGHs390/ctcm: Fix double-kfree
CVE-2025-402668.2 HIGHKVM: arm64: Check the untrusted offset in FF-A memory share
CVE-2025-402457.8 HIGHnios2: ensure that memblock.current_limit is set when setting pfn limits
CVE-2025-402517.8 HIGHdevlink: rate: Unset parent pointer in devl_rate_nodes_destroy
CVE-2025-402627.8 HIGHInput: imx_sc_key - fix memory corruption on unload
CVE-2025-402507.8 HIGHnet/mlx5: Clean up only new IRQ glue on request_irq() failure
CVE-2025-402487.8 HIGHvsock: Ignore signal/timeout on connect() if already established
CVE-2025-402497.8 HIGHgpio: cdev: make sure the cdev fd is still active before emitting events
CVE-2025-402147.8 HIGHaf_unix: Initialise scc_index in unix_add_edge().
CVE-2025-402447.8 HIGHhfsplus: fix KMSAN uninit-value issue in __hfsplus_ext_cache_extent()
CVE-2025-402437.8 HIGHhfs: fix KMSAN uninit-value issue in hfs_find_set_zero_bits()
CVE-2025-402337.8 HIGHocfs2: clear extent cache after moving/defragmenting extents
CVE-2025-402167.8 HIGHio_uring/rsrc: don't rely on user vaddr alignment
CVE-2025-402157.8 HIGHxfrm: delete x->tunnel as we delete x
CVE-2025-402407.5 HIGHsctp: avoid NULL dereference when chunk data buffer is missing
CVE-2025-402427.0 HIGHgfs2: Fix unlikely race in gdlm_put_lock

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-40241

No comments yet


Leave a comment