{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50200","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-06-18T10:57:27.428Z","datePublished":"2025-06-18T11:03:42.627Z","dateUpdated":"2026-08-05T08:57:40.701Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T08:57:40.701Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nselinux: Add boundary check in put_entry()\n\nJust like next_entry(), boundary check is necessary to prevent memory\nout-of-bound access."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached by opening/reading `/sys/fs/selinux/policy` (selinuxfs), which invokes `sel_open_policy` → `security_read_policy` → `policydb_write` → `put_entry`; this is a local syscall/file path, not network-facing.\nAC:L - A local attacker who can open the policy file reliably drives the vulnerable `put_entry` serialize path; no race or other condition outside the attacker's control is required once that access is available.\nPR:L - Access is gated only by SELinux `SECURITY__READ_POLICY` (file mode is world-readable); common deployments grant this to unconfined local users (e.g. Fedora/RHEL `selinux_unconfined_type`), and globally permissive mode also allows any local user.\nUI:N - Exploitation requires no victim action; the attacker opens the selinuxfs policy node themselves.\nS:U - Impact is kernel memory corruption and privilege escalation within the same host security authority; this is not a VM/IOMMU/sandbox boundary escape.\nC:H - Missing bounds check yields an out-of-bounds write into the vmalloc policy buffer (and `fp->len` underflow enables further corruption), which can be leveraged for arbitrary kernel memory disclosure primitives.\nI:H - `put_entry` performs `memcpy` into `fp->data` without verifying remaining length, so a serialize overrun is a kernel out-of-bounds write usable for integrity compromise and control-flow hijacking.\nA:H - The same out-of-bounds write / length underflow can oops or panic the kernel, so availability impact is high."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/selinux/ss/policydb.h"],"versions":[{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"2dabe6a872a5744865372eb30ea51e8ccd21305a","status":"affected","versionType":"git"},{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"477722f31ad73aa779154d1d7e00825538389f76","status":"affected","versionType":"git"},{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"90bdf50ae70c5571a277b5601e4f5df210831e0a","status":"affected","versionType":"git"},{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"adbfdaacde18faf6cd4e490764045375266b3fbd","status":"affected","versionType":"git"},{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"7363a69d8ca8f0086f8e1196c8ddaf0e168614b1","status":"affected","versionType":"git"},{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"9605f50157cae00eb299e1189a6d708c84935ad8","status":"affected","versionType":"git"},{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"dedd558d9765b72c66e5a53948e9f5abc3ece1f6","status":"affected","versionType":"git"},{"version":"cee74f47a6baba0ac457e87687fdcf0abd599f0a","lessThan":"15ec76fb29be31df2bccb30fc09875274cba2776","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/selinux/ss/policydb.h"],"versions":[{"version":"2.6.37","status":"affected"},{"version":"0","lessThan":"2.6.37","status":"unaffected","versionType":"semver"},{"version":"4.14.291","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.256","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.211","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.137","lessThanOrEqual":"5.10.*","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"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"4.14.291"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"4.19.256"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"5.4.211"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"5.10.137"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"5.15.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"5.18.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"5.19.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.37","versionEndExcluding":"6.0"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/2dabe6a872a5744865372eb30ea51e8ccd21305a"},{"url":"https://git.kernel.org/stable/c/477722f31ad73aa779154d1d7e00825538389f76"},{"url":"https://git.kernel.org/stable/c/90bdf50ae70c5571a277b5601e4f5df210831e0a"},{"url":"https://git.kernel.org/stable/c/adbfdaacde18faf6cd4e490764045375266b3fbd"},{"url":"https://git.kernel.org/stable/c/7363a69d8ca8f0086f8e1196c8ddaf0e168614b1"},{"url":"https://git.kernel.org/stable/c/9605f50157cae00eb299e1189a6d708c84935ad8"},{"url":"https://git.kernel.org/stable/c/dedd558d9765b72c66e5a53948e9f5abc3ece1f6"},{"url":"https://git.kernel.org/stable/c/15ec76fb29be31df2bccb30fc09875274cba2776"}],"title":"selinux: Add boundary check in put_entry()","x_generator":{"engine":"bippy-1.2.0"}}}}