{"id":"CVE-2022-50230","state":"PUBLISHED","title":"arm64: set UXN on swapper page tables","description":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: set UXN on swapper page tables\n\n[ This issue was fixed upstream by accident in c3cee924bd85 (\"arm64:\n  head: cover entire kernel image in initial ID map\") as part of a\n  large refactoring of the arm64 boot flow. This simple fix is therefore\n  preferred for -stable backporting ]\n\nOn a system that implements FEAT_EPAN, read/write access to the idmap\nis denied because UXN is not set on the swapper PTEs. As a result,\nidmap_kpti_install_ng_mappings panics the kernel when accessing\n__idmap_kpti_flag. Fix it by setting UXN on these PTEs.","publishedAt":"2025-06-18T11:04:06.716Z","updatedAt":"2026-05-11T19:15:19.620Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"18107f8a2df6bf1c6cac8d0713f757f866d5af51","status":"affected","lessThan":"9283e708a9b8529e7aafac9ab5c5c79a9fab8846","versionType":"git"},{"version":"18107f8a2df6bf1c6cac8d0713f757f866d5af51","status":"affected","lessThan":"c3cee924bd855184d15bc4aa6088dcf8e2c1394c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/kernel-pgtable.h","arch/arm64/kernel/head.S"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.19.1","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/kernel-pgtable.h","arch/arm64/kernel/head.S"]}],"references":["https://git.kernel.org/stable/c/9283e708a9b8529e7aafac9ab5c5c79a9fab8846","https://git.kernel.org/stable/c/c3cee924bd855184d15bc4aa6088dcf8e2c1394c"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50230.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50230","state":"PUBLISHED","datePublished":"2025-06-18T11:04:06.716Z","dateUpdated":"2026-05-11T19:15:19.620Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-06-18T10:57:27.432Z"},"containers":{"cna":{"title":"arm64: set UXN on swapper page tables","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\narm64: set UXN on swapper page tables\n\n[ This issue was fixed upstream by accident in c3cee924bd85 (\"arm64:\n  head: cover entire kernel image in initial ID map\") as part of a\n  large refactoring of the arm64 boot flow. This simple fix is therefore\n  preferred for -stable backporting ]\n\nOn a system that implements FEAT_EPAN, read/write access to the idmap\nis denied because UXN is not set on the swapper PTEs. As a result,\nidmap_kpti_install_ng_mappings panics the kernel when accessing\n__idmap_kpti_flag. Fix it by setting UXN on these PTEs."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"18107f8a2df6bf1c6cac8d0713f757f866d5af51","status":"affected","lessThan":"9283e708a9b8529e7aafac9ab5c5c79a9fab8846","versionType":"git"},{"version":"18107f8a2df6bf1c6cac8d0713f757f866d5af51","status":"affected","lessThan":"c3cee924bd855184d15bc4aa6088dcf8e2c1394c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/kernel-pgtable.h","arch/arm64/kernel/head.S"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.19.1","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/arm64/include/asm/kernel-pgtable.h","arch/arm64/kernel/head.S"]}],"references":[{"url":"https://git.kernel.org/stable/c/9283e708a9b8529e7aafac9ab5c5c79a9fab8846"},{"url":"https://git.kernel.org/stable/c/c3cee924bd855184d15bc4aa6088dcf8e2c1394c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:15:19.620Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.19.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}