In the Linux kernel, the following vulnerability has been resolved:
selinux: fix memleak in securityreadstate_kernel()
In this function, it directly returns the result of _securityreadpolicy without freeing the allocated memory in *data, cause memory leak issue, so free the memory if _securityreadpolicy failed.
[PM: subject line tweak]
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50201.json"
}