CVE-2025-40241
Last modified
CVE-2025-40241 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 1d191b4ca51d73699cb127386b95ac152af2b930, < 00d8fe0b72f4ca0a983abced36aad2160038c421; >= 1d191b4ca51d73699cb127386b95ac152af2b930, < a429b76114aaca3ef1aff4cd469dcf025431bd11 |
| Linux | Linux | 6.15 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40241?
How severe is CVE-2025-40241?
How do I fix CVE-2025-40241?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40236In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40237In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40238In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40239In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4024A vulnerability classified as critical has been found in its…9.8
- CVE-2025-40240In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2025-40242In the Linux kernel, the following vulnerability has been re…7
- CVE-2025-40243In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40244In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40245In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40246In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40247In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40241?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
