# CVE-2024-26774: ext4: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt

- 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-04-03T17:01:00.618Z
- Modified: 2026-06-17T07:18:18.667Z
- Weaknesses: CWE-369
- 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: avoid dividing by 0 in mb_update_avg_fragment_size() when block bitmap corrupt

Determine if bb_fragments is 0 instead of determining bb_free to eliminate
the risk of dividing by zero when the block bitmap is corrupted.

(As written by CVE List.)

## Affected

- Linux Linux: from 83e80a6e3543f37f74c8e48a5f305b054b65ce2a before 8b40eb2e716b503f7a4e1090815a17b1341b2150; from 83e80a6e3543f37f74c8e48a5f305b054b65ce2a before f32d2a745b02123258026e105a008f474f896d6a; from 83e80a6e3543f37f74c8e48a5f305b054b65ce2a before 8cf9cc602cfb40085967c0d140e32691c8b71cf3; from 83e80a6e3543f37f74c8e48a5f305b054b65ce2a before 993bf0f4c393b3667830918f9247438a8f6fdb5b; 398a0fdb38d9ab5e68023667cc5e6e3d109e2d6b; from 5.19.12 before 5.20; 6.0 (not affected: before 6.0; from 6.1.80 up to 6.1.*; from 6.6.19 up to 6.6.*; from 6.7.7 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: before 5.15.150; from 5.16 before 6.1.80; from 6.2 before 6.6.19; from 6.7 before 6.7.7; 6.8

## References

- <https://git.kernel.org/stable/c/8b40eb2e716b503f7a4e1090815a17b1341b2150> (patch)
- <https://git.kernel.org/stable/c/f32d2a745b02123258026e105a008f474f896d6a> (patch)
- <https://git.kernel.org/stable/c/8cf9cc602cfb40085967c0d140e32691c8b71cf3> (patch)
- <https://git.kernel.org/stable/c/993bf0f4c393b3667830918f9247438a8f6fdb5b> (patch)
- <https://git.kernel.org/stable/c/687061cfaa2ac3095170e136dd9c29a4974f41d4> (patch)

## Sources

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

---

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