CVE-2022-50512Published Oct 7, 2025 · Oct 7Updated Oct 28
ext4: fix potential memory leak in ext4_fc_record_regions()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix potential memory leak in ext4_fc_record_regions()
As krealloc may return NULL, in this case 'state->fc_regions' may not be freed by krealloc, but 'state->fc_regions' already set NULL. Then will lead to 'state->fc_regions' memory leak.
From the CVE record · Linux
The Linux kernel's ext4_fc_record_regions() function can leak memory if krealloc returns NULL and the existing allocation is overwritten. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels with ext4 should check their versions; affected versions are not specified.