{"id":"CVE-2022-50512","summary":"ext4: fix potential memory leak in ext4_fc_record_regions()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: fix potential memory leak in ext4_fc_record_regions()\n\nAs krealloc may return NULL, in this case 'state-\u003efc_regions' may not be\nfreed by krealloc, but 'state-\u003efc_regions' already set NULL. Then will\nlead to 'state-\u003efc_regions' memory leak.","modified":"2026-04-02T08:28:33.928458Z","published":"2025-10-07T15:19:08.854Z","related":["SUSE-SU-2025:4111-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4320-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50512.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2cfb769d60a2a57eb3566765428b6131cd16dcfe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/417b0455a0b6d0f60a2930592731d1f8340e24be"},{"type":"WEB","url":"https://git.kernel.org/stable/c/518566e71ad86b7c2f1bf6d9caee9588bb7ac158"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7069d105c1f15c442b68af43f7fde784f3126739"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a4058b869e6c5e517c79e30532a350d0f3115c3e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50512.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50512"},{"type":"PACKAGE","url":"https://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"}}],"schema_version":"1.7.5"}