CVE-2022-50201

published 18 Jun 2025 · updated 7 Nov 2026

selinux: fix memleak in security_read_state_kernel()

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.61, Kernel 5.18.18, Kernel 5.19.2 and 4 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=5.12 <5.15.61, >=5.16 <5.18.18, >=5.19 <5.19.2, >=fdd1ffe8a812b1109388e4bc389e57b2695ad095 <73de1befcc53a7c68b0c5e76b9b5ac41c517760f, >=fdd1ffe8a812b1109388e4bc389e57b2695ad095 <c877c5217145bda8fd95f506bf42f8d981afa57d, >=fdd1ffe8a812b1109388e4bc389e57b2695ad095 <f3cd7562c0a6774fc62d79654482014020e574f5, =5.12, >=fdd1ffe8a812b1109388e4bc389e57b2695ad095 <1fc1f72aad2070d34022d0823e4cf09706b53f255.15.61, 5.18.18, 5.19.2, 73de1befcc53a7c68b0c5e76b9b5ac41c517760f, c877c5217145bda8fd95f506bf42f8d981afa57d, f3cd7562c0a6774fc62d79654482014020e574f5, 1fc1f72aad2070d34022d0823e4cf09706b53f25
linux-kernel: Kernel>=5.12.0 <5.15.61, >=5.16.0 <5.18.18, >=5.19.0 <5.19.25.15.61, 5.18.18, 5.19.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50201 severity on Zeptric[![CVE-2022-50201](https://zeptric.io/badge/cve/CVE-2022-50201.svg)](https://zeptric.io/cve/CVE-2022-50201)