What’s Vulnerable › Vulnerabilities

CVE-2022-50201: selinux: fix memleak in security_read_state_kernel()

Description

In the Linux kernel, the following vulnerability has been resolved: selinux: fix memleak in security_read_state_kernel() In this function, it directly returns the result of __security_read_policy without freeing the allocated memory in *data, cause memory leak issue, so free the memory if __security_read_policy failed. [PM: subject line tweak]

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.61, 5.18.18, 5.19.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-50201 or the next vulnerability affects your stack