Bug 2373649 (CVE-2022-50201) - CVE-2022-50201 kernel: selinux: fix memleak in security_read_state_kernel()
Summary: CVE-2022-50201 kernel: selinux: fix memleak in security_read_state_kernel()
Keywords:
Status: NEW
Alias: CVE-2022-50201
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:12 UTC by OSIDB Bzimport
Modified: 2025-06-19 02:40 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:12:16 UTC
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]

Comment 1 Avinash Hanwate 2025-06-18 22:04:50 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061840-CVE-2022-50201-7b57@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.