{"id":"CVE-2021-47117","aliases":["CVE-2021-47117"],"related":[],"kind":"vulnerability","state":"published","title":"ext4: fix bug on in ext4_es_cache_extent as ext4_split_extent_at failed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix bug on in ext4_es_cache_extent as ext4_split_extent_at failed\n\nWe got follow bug_on when run fsstress with injecting IO fault:\n[130747.323114] kernel BUG at fs/ext4/extents_status.c:762!\n[130747.323117] Internal error: Oops - BUG: 0 [#1] SMP\n......\n[130747.334329] Call trace:\n[130747.334553]  ext4_es_cache_extent+0x150/0x168 [ext4]\n[130747.334975]  ext4_cache_extents+0x64/0xe8 [ext4]\n[130747.335368]  ext4_find_extent+0x300/0x330 [ext4]\n[130747.335759]  ext4_ext_map_blocks+0x74/0x1178 [ext4]\n[130747.336179]  ext4_map_blocks+0x2f4/0x5f0 [ext4]\n[130747.336567]  ext4_mpage_readpages+0x4a8/0x7a8 [ext4]\n[130747.336995]  ext4_readpage+0x54/0x100 [ext4]\n[130747.337359]  generic_file_buffered_read+0x410/0xae8\n[130747.337767]  generic_file_read_iter+0x114/0x190\n[130747.338152]  ext4_file_read_iter+0x5c/0x140 [ext4]\n[130747.338556]  __vfs_read+0x11c/0x188\n[130747.338851]  vfs_read+0x94/0x150\n[130747.339110]  ksys_read+0x74/0xf0\n\nThis patch's modification is according to Jan Kara's suggestion in:\nhttps://patchwork.ozlabs.org/project/linux-ext4/patch/20210428085158.3728201-1-yebin10@huawei.com/\n\"I see. Now I understand your patch. Honestly, seeing how fragile is trying\nto fix extent tree after split has failed in the middle, I would probably\ngo even further and make sure we fix the tree properly in case of ENOSPC\nand EDQUOT (those are easily user triggerable).  Anything else indicates a\nHW problem or fs corruption so I'd rather leave the extent tree as is and\ndon't try to fix it (which also means we will not create overlapping\nextents).\"","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix bug on in ext4_es_cache_extent as ext4_split_extent_at failed\n\nWe got follow bug_on when run fsstress with injecting IO fault:\n[130747.323114] kernel BUG at fs/ext4/extents_status.c:762!\n[130747.323117] Internal error: Oops - BUG: 0 [#1] SMP\n......\n[130747.334329] Call trace:\n[130747.334553]  ext4_es_cache_extent+0x150/0x168 [ext4]\n[130747.334975]  ext4_cache_extents+0x64/0xe8 [ext4]\n[130747.335368]  ext4_find_extent+0x300/0x330 [ext4]\n[130747.335759]  ext4_ext_map_blocks+0x74/0x1178 [ext4]\n[130747.336179]  ext4_map_blocks+0x2f4/0x5f0 [ext4]\n[130747.336567]  ext4_mpage_readpages+0x4a8/0x7a8 [ext4]\n[130747.336995]  ext4_readpage+0x54/0x100 [ext4]\n[130747.337359]  generic_file_buffered_read+0x410/0xae8\n[130747.337767]  generic_file_read_iter+0x114/0x190\n[130747.338152]  ext4_file_read_iter+0x5c/0x140 [ext4]\n[130747.338556]  __vfs_read+0x11c/0x188\n[130747.338851]  vfs_read+0x94/0x150\n[130747.339110]  ksys_read+0x74/0xf0\n\nThis patch's modification is according to Jan Kara's suggestion in:\nhttps://patchwork.ozlabs.org/project/linux-ext4/patch/20210428085158.3728201-1-yebin10@huawei.com/\n\"I see. Now I understand your patch. Honestly, seeing how fragile is trying\nto fix extent tree after split has failed in the middle, I would probably\ngo even further and make sure we fix the tree properly in case of ENOSPC\nand EDQUOT (those are easily user triggerable).  Anything else indicates a\nHW problem or fs corruption so I'd rather leave the extent tree as is and\ndon't try to fix it (which also means we will not create overlapping\nextents).\"","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: ext4: corrigió el error en ext4_es_cache_extent ya que ext4_split_extent_at falló. Obtuvimos el seguimiento de bug_on cuando ejecutamos fsstress con la inyección de error de IO: [130747.323114] ERROR del kernel en fs/ext4/extents_status.c:762. [130747.323117] Error interno: Vaya - ERROR: 0 [#1] SMP ...... [130747.334329] Rastreo de llamadas: [130747.334553] ext4_es_cache_extent+0x150/0x168 [ext4] [130747.334975] ext4_cache_extents+0x 64/0xe8 [ext4] [130747.335368] text4_find_extent+0x300/0x330 [ext4] [130747.335759] text4_ext_map_blocks+0x74/0x1178 [ext4] [130747.336179] text4_map_blocks+0x2f4/0x5f0 [ext4] [130747.336567] ext4_mpage_readpages+0x4a8/0x7a8 [ext4] [130747.336995] ext4_readpage+0x54 /0x100 [ext4] [130747.337359] generic_file_buffered_read+0x410/0xae8 [130747.337767] generic_file_read_iter+0x114/0x190 [130747.338152] ext4_file_read_iter+0x5c/0x140 [ext4] [13 0747.338556] __vfs_read+0x11c/0x188 [130747.338851] vfs_read+0x94/0x150 [130747.339110 ] ksys_read+0x74/0xf0 La modificación de este parche se realiza según la sugerencia de Jan Kara en: https://patchwork.ozlabs.org/project/linux-ext4/patch/20210428085158.3728201-1-yebin10@huawei.com/ \"Ya veo. Ahora Entiendo su parche. Honestamente, viendo lo frágil que es intentar arreglar el árbol de extensión después de que la división falló en el medio, probablemente iría aún más lejos y me aseguraría de arreglar el árbol correctamente en el caso de ENOSPC y EDQUOT (esos son fácilmente activables por el usuario). ). Cualquier otra cosa indica un problema de hardware o corrupción de fs, por lo que prefiero dejar el árbol de extensiones como está y no intentar arreglarlo (lo que también significa que no crearemos extensiones superpuestas)\".","source":"nvd"}],"published":"2024-03-15T20:14:24.291Z","modified":"2026-06-17T04:16:32.113Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"e33bafad30d34cfa5e9787cb099cab05e2677fcb","status":"affected"},{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"5b3a9a2be59478b013a430ac57b0f3d65471b071","status":"affected"},{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"d8116743ef5432336289256b2f7c117299213eb9","status":"affected"},{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"569496aa3776eea1ff0d49d0174ac1b7e861e107","status":"affected"},{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"920697b004e49cb026e2e15fe91be065bf0741b7","status":"affected"},{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"d3b668b96ad3192c0581a248ae2f596cd054792a","status":"affected"},{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"48105dc98c9ca35af418746277b087cb2bc6df7c","status":"affected"},{"type":"git","introduced":"adb2355104b2109e06ba5276485d187d023b2fd2","fixed":"082cd4ec240b8734a82a89ffb890216ac98fec68","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.9","status":"unaffected"},{"type":"semver","introduced":"4.4.272","lastAffected":"4.4.*","status":"unaffected"},{"type":"semver","introduced":"4.9.272","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.236","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.194","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.125","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.43","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.12.10","lastAffected":"5.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.4.272"},{"status":"affected","introduced":"4.5","fixed":"4.9.272"},{"status":"affected","introduced":"4.10","fixed":"4.14.236"},{"status":"affected","introduced":"4.15","fixed":"4.19.194"},{"status":"affected","introduced":"4.20","fixed":"5.4.125"},{"status":"affected","introduced":"5.5","fixed":"5.10.43"},{"status":"affected","introduced":"5.11","fixed":"5.12.10"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"},{"status":"affected","version":"5.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e33bafad30d34cfa5e9787cb099cab05e2677fcb","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b3a9a2be59478b013a430ac57b0f3d65471b071","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8116743ef5432336289256b2f7c117299213eb9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/569496aa3776eea1ff0d49d0174ac1b7e861e107","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/920697b004e49cb026e2e15fe91be065bf0741b7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3b668b96ad3192c0581a248ae2f596cd054792a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48105dc98c9ca35af418746277b087cb2bc6df7c","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/082cd4ec240b8734a82a89ffb890216ac98fec68","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-03-18T14:32:59.932Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47117","url":"https://www.cve.org/CVERecord?id=CVE-2021-47117","licence":"CVE Terms of Use","modified":"2026-05-11T13:48:22.727Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47117","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47117","licence":"Public domain","modified":"2026-06-17T04:16:32.113Z"}],"updatedAt":"2026-11-25T22:58:08.669Z","epss":{"score":0.00242,"percentile":0.16531,"date":"2026-12-01T12:00:22.000Z"}}