Skip to main content
EPSS 0.1%top 96%

Linux hwe edge: In the Linux kernel, the following vulnerability has been resolved: erofs: fix crafted invalid cases for encoded extents Robert recently reported… (CVE-2025-40241)

0
Medium
Published: 12/04/2025 (12/04/2025, 16:16:00 UTC)
Source: GCVE Database
Product: linux-hwe-edge

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.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected software

Affected versions
<6.17.0-1007.7~24.04.1<6.17.0-1008.8~24.04.1<6.17.0-1008.8<6.17.0-1011.11

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:55:09 UTC

Technical Analysis

CVE-2025-40241 addresses a vulnerability in the Linux kernel's EROFS filesystem implementation involving encoded extents introduced in Linux 6.15. Two specific crafted invalid cases were identified: one where the plen field is non-zero but does not match expected mask conditions, leading to mishandling of special extents; and another where a physical block address exceeds the supported 48-bit range, causing pointer arithmetic to wrap around and result in out-of-bounds access in the z_erofs_submit_queue() function. These issues can lead to system crashes due to memory corruption. The fix involves adding sanity checks to enforce address limits and properly handle special extent cases.

Potential Impact

Successful exploitation of this vulnerability can cause system crashes due to out-of-bounds memory access and improper handling of malformed encoded extents in the EROFS filesystem. This results in denial of service and potential system instability. The vulnerability has a high severity rating based on CVSS 3.1 metrics (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), indicating local attacker capability with low complexity and significant impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix for this vulnerability has been implemented in the Linux kernel to address the crafted invalid cases for encoded extents in EROFS. Users should apply the official Linux kernel updates that include this patch. Since no specific patch links or vendor advisories are provided here, users should monitor the official Linux kernel repositories and distributions for the relevant security updates. Patch status is not yet confirmed in this data; check vendor advisories for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-9f7m-pc72-73fj
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40241"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a6b72d69c2644c7f847a55c

Added to database: 07/30/2026, 15:50:46 UTC

Last enriched: 07/30/2026, 16:55:09 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 18

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses