CVE-2022-50512

Source
https://cve.org/CVERecord?id=CVE-2022-50512
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50512.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-50512
Downstream
Related
Published
2025-10-07T15:19:08.854Z
Modified
2026-04-02T08:28:33.928458Z
Summary
ext4: fix potential memory leak in ext4_fc_record_regions()
Details

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

ext4: fix potential memory leak in ext4fcrecord_regions()

As krealloc may return NULL, in this case 'state->fcregions' may not be freed by krealloc, but 'state->fcregions' already set NULL. Then will lead to 'state->fc_regions' memory leak.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50512.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8016e29f4362e285f0f7e38fadc61a5b7bdfdfa2
Fixed
2cfb769d60a2a57eb3566765428b6131cd16dcfe
Fixed
417b0455a0b6d0f60a2930592731d1f8340e24be
Fixed
a4058b869e6c5e517c79e30532a350d0f3115c3e
Fixed
518566e71ad86b7c2f1bf6d9caee9588bb7ac158
Fixed
7069d105c1f15c442b68af43f7fde784f3126739

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50512.json"