ext4: fix potential memory leak in ext4_fc_record_modified_inode()
In the Linux kernel, the following vulnerability has been resolved: ext4: fix potential memory leak in ext4_fc_record_modified_inode() As krealloc may return NULL, in this case 'state->fc_modified_inodes' may not be freed by krealloc, but 'state->fc_modified_inodes' already set NULL. Then will lead to 'state->fc_modified_inodes' memory leak.
02 / AFFECTED SOFTWARE
Affected packages
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
In the Linux kernel, the following vulnerability has been resolved: ext4: fix potential memory leak in ext4_fc_record_modified_inode() As krealloc may return NULL, in this case 'state->fc_modified_inodes' may not be freed by krealloc, but 'state->fc_modified_inodes' already set NULL. Then will lead to 'state->fc_modified_inodes' memory leak.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/24d39affc6be1acf6df86a8c3e2413b8a73749c7
- https://git.kernel.org/stable/c/9305721a309fa1bd7c194e0d4a2335bf3b29dca4
- https://git.kernel.org/stable/c/9b5eb368a86f97eb9831f5b53b8e43ec69bc7cd4
- https://git.kernel.org/stable/c/c0be17635f039f864b1108efec0015c73736e414
- https://git.kernel.org/stable/c/c9ce7766dc4e88e624c62a68221a3bbe8f06e856
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50622.json
- https://nvd.nist.gov/vuln/detail/CVE-2022-50622