{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50201","id":"CVE-2022-50201","title":"selinux: fix memleak in security_read_state_kernel()","description":"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]","descriptionLong":"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]","published":"2025-06-18T11:03:43.263Z","updated":"2026-11-07T02:30:49.534653313Z","reserved":"2025-06-18T10:57:27.428Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"fdd1ffe8a812b1109388e4bc389e57b2695ad095","lessThan":"c877c5217145bda8fd95f506bf42f8d981afa57d","status":"affected","versionType":"git"},{"version":"fdd1ffe8a812b1109388e4bc389e57b2695ad095","lessThan":"f3cd7562c0a6774fc62d79654482014020e574f5","status":"affected","versionType":"git"},{"version":"fdd1ffe8a812b1109388e4bc389e57b2695ad095","lessThan":"1fc1f72aad2070d34022d0823e4cf09706b53f25","status":"affected","versionType":"git"},{"version":"fdd1ffe8a812b1109388e4bc389e57b2695ad095","lessThan":"73de1befcc53a7c68b0c5e76b9b5ac41c517760f","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","status":"unaffected","versionType":"semver"},{"version":"5.15.61","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.18.18","lessThanOrEqual":"5.18.*","status":"unaffected","versionType":"semver"},{"version":"5.19.2","lessThanOrEqual":"5.19.*","status":"unaffected","versionType":"semver"},{"version":"6.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/c877c5217145bda8fd95f506bf42f8d981afa57d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f3cd7562c0a6774fc62d79654482014020e574f5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1fc1f72aad2070d34022d0823e4cf09706b53f25","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/73de1befcc53a7c68b0c5e76b9b5ac41c517760f","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50201.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50201","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00256,"epssPercentile":0.17382,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50201","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50201","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50201","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50201","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}