CVE-2022-50201Published Jun 18, 2025 · Jun 18Updated Nov 7
selinux: fix memleak in security_read_state_kernel()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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]
From the CVE record · Linux
The Linux kernel's SELinux security_read_state_kernel() function can leak allocated memory when __security_read_policy fails. The input does not describe how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel should check their installations; affected versions are not specified.