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)
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.
AI Analysis
Technical Summary
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.
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)
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
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.