{"id":"CVE-2025-40241","published":"2025-12-04T15:31:30Z","modified":"2026-08-05T12:08:45Z","title":"erofs: fix crafted invalid cases for encoded extents","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: fix crafted invalid cases for encoded extents\n\nRobert recently reported two corrupted images that can cause system\ncrashes, which are related to the new encoded extents introduced\nin Linux 6.15:\n\n  - The first one [1] has plen != 0 (e.g. plen == 0x2000000) but\n    (plen & Z_EROFS_EXTENT_PLEN_MASK) == 0. It is used to represent\n    special extents such as sparse extents (!EROFS_MAP_MAPPED), but\n    previously only plen == 0 was handled;\n\n  - The second one [2] has pa 0xffffffffffdcffed and plen 0xb4000,\n    then \"cur [0xfffffffffffff000] += bvec.bv_len [0x1000]\" in\n    \"} while ((cur += bvec.bv_len) < end);\" wraps around, causing an\n    out-of-bound access of pcl->compressed_bvecs[] in\n    z_erofs_submit_queue().  EROFS only supports 48-bit physical block\n    addresses (up to 1EiB for 4k blocks), so add a sanity check to\n    enforce this.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00154,"percentile":0.04598,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/00d8fe0b72f4ca0a983abced36aad2160038c421","tags":[]},{"url":"https://git.kernel.org/stable/c/a429b76114aaca3ef1aff4cd469dcf025431bd11","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.92},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1d191b4ca51d73699cb127386b95ac152af2b930, < 00d8fe0b72f4ca0a983abced36aad2160038c421",">= 1d191b4ca51d73699cb127386b95ac152af2b930, < a429b76114aaca3ef1aff4cd469dcf025431bd11"]},{"vendor":"Linux","product":"Linux","versions":["6.15"]}],"euvd":{"id":"EUVD-2025-201218","exploited":false,"provenance":"source"}}