CVE-2022-50201

selinux: fix memleak in security_read_state_kernel()

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 11:03 AM UTC
Updated: June 17, 2026 at 05:22 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.12 ≤ v < 5.15.615.12 ≤ v < 5.18.185.12 ≤ v < 5.19.25.12 ≤ v < 6.05.16 ≤ v < 5.18.185.19 ≤ v < 5.19.25.12fdd1ffe8a812b1109388e4bc389e57b2695ad095
Vendor states this is fixed in 1fc1f72aad2070d34022d0823e4cf09706b53f25 (fixed)
Vendor states this is fixed in 73de1befcc53a7c68b0c5e76b9b5ac41c517760f (fixed)
Vendor states this is fixed in c877c5217145bda8fd95f506bf42f8d981afa57d (fixed)
Vendor states this is fixed in f3cd7562c0a6774fc62d79654482014020e574f5 (fixed)
Vendor states this is fixed in 5.12 (unaffected)
Vendor states this is fixed in 5.15.61 (unaffected)
Vendor states this is fixed in 5.18.18 (unaffected)
Vendor states this is fixed in 5.19.2 (unaffected)
Vendor states this is fixed in 6.0 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1fc1f72aad2070d34022d0823e4cf09706b53f25
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/73de1befcc53a7c68b0c5e76b9b5ac41c517760f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c877c5217145bda8fd95f506bf42f8d981afa57d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f3cd7562c0a6774fc62d79654482014020e574f5

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card