# CVE-2022-48712: ext4: fix error handling in ext4_fc_record_modified_inode()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-06-20T11:13:06.701Z
- Modified: 2026-06-17T05:15:59.490Z
- Weaknesses: CWE-787
- 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 error handling in ext4_fc_record_modified_inode()

Current code does not fully takes care of krealloc() error case, which
could lead to silent memory corruption or a kernel bug.  This patch
fixes that.

Also it cleans up some duplicated error handling logic from various
functions in fast_commit.c file.

(As written by CVE List.)

## Affected

- Linux Linux: from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 62e46e0ffc02daa8fcfc02f7a932cc8a19601b19; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 1b6762ecdf3cf12113772427c904aa3c420a1802; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before 14aa3f49c7fc6424763f4323bfbc3a807b0727dc; from 8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2 before cdce59a1549190b66f8e3fe465c2b2f714b98a94; 5.10 (not affected: before 5.10; from 5.10.99 up to 5.10.*; from 5.15.22 up to 5.15.*; from 5.16.8 up to 5.16.*; from 5.17 up to *)
- linux linux_kernel: before 5.10.99; from 5.11 before 5.15.22; from 5.16 before 5.16.8; 5.17

## References

- <https://git.kernel.org/stable/c/62e46e0ffc02daa8fcfc02f7a932cc8a19601b19> (patch)
- <https://git.kernel.org/stable/c/1b6762ecdf3cf12113772427c904aa3c420a1802> (patch)
- <https://git.kernel.org/stable/c/14aa3f49c7fc6424763f4323bfbc3a807b0727dc> (patch)
- <https://git.kernel.org/stable/c/cdce59a1549190b66f8e3fe465c2b2f714b98a94> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-48712 · Whole record: https://cve.day/CVE-2022-48712.json · Rebuilt by cve.day 2026-11-25T22:58:19.830Z
