{"id":"CVE-2022-50201","summary":"selinux: fix memleak in security_read_state_kernel()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nselinux: fix memleak in security_read_state_kernel()\n\nIn this function, it directly returns the result of __security_read_policy\nwithout freeing the allocated memory in *data, cause memory leak issue,\nso free the memory if __security_read_policy failed.\n\n[PM: subject line tweak]","modified":"2026-04-11T12:44:55.033034Z","published":"2025-06-18T11:03:43.263Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50201.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1fc1f72aad2070d34022d0823e4cf09706b53f25"},{"type":"WEB","url":"https://git.kernel.org/stable/c/73de1befcc53a7c68b0c5e76b9b5ac41c517760f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c877c5217145bda8fd95f506bf42f8d981afa57d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3cd7562c0a6774fc62d79654482014020e574f5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50201.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50201"},{"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":"fdd1ffe8a812b1109388e4bc389e57b2695ad095"},{"fixed":"c877c5217145bda8fd95f506bf42f8d981afa57d"},{"fixed":"f3cd7562c0a6774fc62d79654482014020e574f5"},{"fixed":"1fc1f72aad2070d34022d0823e4cf09706b53f25"},{"fixed":"73de1befcc53a7c68b0c5e76b9b5ac41c517760f"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50201.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.12.0"},{"fixed":"5.15.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"5.18.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.19.0"},{"fixed":"5.19.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50201.json"}}],"schema_version":"1.7.5"}