# CVE-2024-43828: ext4: fix infinite loop when replaying fast_commit

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-08-17T09:21:47.429Z
- Modified: 2026-10-15T01:18:47.333Z
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ext4: fix infinite loop when replaying fast_commit

When doing fast_commit replay an infinite loop may occur due to an
uninitialized extent_status struct.  ext4_ext_determine_insert_hole() does
not detect the replay and calls ext4_es_find_extent_range(), which will
return immediately without initializing the 'es' variable.

Because 'es' contains garbage, an integer overflow may happen causing an
infinite loop in this function, easily reproducible using fstest generic/039.

This commit fixes this issue by unconditionally initializing the structure
in function ext4_es_find_extent_range().

Thanks to Zhang Yi, for figuring out the real problem!

(As written by CVE List.)

## Affected

- Linux Linux: from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 5ed0496e383cb6de120e56991385dce70bbb87c1; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 0619f7750f2b178a1309808832ab20d85e0ad121; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 181e63cd595c688194e07332f9944b3a63193de2; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before c6e67df64783e99a657ef2b8c834ba2bf54c539c; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 81f819c537d29932e4b9267f02411cbc8b355178; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 907c3fe532253a6ef4eb9c4d67efb71fab58c706; 5.10 (not affected: before 5.10; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 5.10 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/5ed0496e383cb6de120e56991385dce70bbb87c1> (patch)
- <https://git.kernel.org/stable/c/0619f7750f2b178a1309808832ab20d85e0ad121> (patch)
- <https://git.kernel.org/stable/c/181e63cd595c688194e07332f9944b3a63193de2> (patch)
- <https://git.kernel.org/stable/c/c6e67df64783e99a657ef2b8c834ba2bf54c539c> (patch)
- <https://git.kernel.org/stable/c/81f819c537d29932e4b9267f02411cbc8b355178> (patch)
- <https://git.kernel.org/stable/c/907c3fe532253a6ef4eb9c4d67efb71fab58c706> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-43828](https://www.cve.org/CVERecord?id=CVE-2024-43828), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-43828](https://nvd.nist.gov/vuln/detail/CVE-2024-43828), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-43828 · Whole record: https://cve.day/CVE-2024-43828.json · Rebuilt by cve.day 2026-11-25T22:58:44.492Z
