{"id":"CVE-2023-52677","state":"PUBLISHED","title":"riscv: Check if the code to patch lies in the exit section","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Check if the code to patch lies in the exit section\n\nOtherwise we fall through to vmalloc_to_page() which panics since the\naddress does not lie in the vmalloc region.","publishedAt":"2024-05-17T14:24:42.051Z","updatedAt":"2026-05-11T19:31:32.233Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"938f70d14618ec72e10d6fcf8a546134136d7c13","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"890cfe5337e0aaf03ece1429db04d23c88da72e7","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"8db56df4a954b774bdc68917046a685a9fa2e4bc","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"1d7a03052846f34d624d0ab41a879adf5e85c85f","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"420370f3ae3d3b883813fd3051a38805160b2b9f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/include/asm/sections.h","arch/riscv/kernel/patch.c","arch/riscv/kernel/vmlinux-xip.lds.S","arch/riscv/kernel/vmlinux.lds.S"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"5.15.148","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.75","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.14","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.2","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/include/asm/sections.h","arch/riscv/kernel/patch.c","arch/riscv/kernel/vmlinux-xip.lds.S","arch/riscv/kernel/vmlinux.lds.S"]}],"references":["https://git.kernel.org/stable/c/938f70d14618ec72e10d6fcf8a546134136d7c13","https://git.kernel.org/stable/c/890cfe5337e0aaf03ece1429db04d23c88da72e7","https://git.kernel.org/stable/c/8db56df4a954b774bdc68917046a685a9fa2e4bc","https://git.kernel.org/stable/c/1d7a03052846f34d624d0ab41a879adf5e85c85f","https://git.kernel.org/stable/c/420370f3ae3d3b883813fd3051a38805160b2b9f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/52xxx/CVE-2023-52677.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-52677","state":"PUBLISHED","datePublished":"2024-05-17T14:24:42.051Z","dateUpdated":"2026-05-11T19:31:32.233Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-03-07T14:49:46.886Z"},"containers":{"cna":{"title":"riscv: Check if the code to patch lies in the exit section","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: Check if the code to patch lies in the exit section\n\nOtherwise we fall through to vmalloc_to_page() which panics since the\naddress does not lie in the vmalloc region."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"938f70d14618ec72e10d6fcf8a546134136d7c13","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"890cfe5337e0aaf03ece1429db04d23c88da72e7","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"8db56df4a954b774bdc68917046a685a9fa2e4bc","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"1d7a03052846f34d624d0ab41a879adf5e85c85f","versionType":"git"},{"version":"043cb41a85de1c0e944da61ad7a264960e22c865","status":"affected","lessThan":"420370f3ae3d3b883813fd3051a38805160b2b9f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/include/asm/sections.h","arch/riscv/kernel/patch.c","arch/riscv/kernel/vmlinux-xip.lds.S","arch/riscv/kernel/vmlinux.lds.S"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.7","versionType":"semver"},{"version":"5.15.148","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.75","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.14","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.2","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/riscv/include/asm/sections.h","arch/riscv/kernel/patch.c","arch/riscv/kernel/vmlinux-xip.lds.S","arch/riscv/kernel/vmlinux.lds.S"]}],"references":[{"url":"https://git.kernel.org/stable/c/938f70d14618ec72e10d6fcf8a546134136d7c13"},{"url":"https://git.kernel.org/stable/c/890cfe5337e0aaf03ece1429db04d23c88da72e7"},{"url":"https://git.kernel.org/stable/c/8db56df4a954b774bdc68917046a685a9fa2e4bc"},{"url":"https://git.kernel.org/stable/c/1d7a03052846f34d624d0ab41a879adf5e85c85f"},{"url":"https://git.kernel.org/stable/c/420370f3ae3d3b883813fd3051a38805160b2b9f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:31:32.233Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"5.15.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.1.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.6.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.7.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-52677","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-05-28T19:44:25.344129Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:23:22.322Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/938f70d14618ec72e10d6fcf8a546134136d7c13","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/890cfe5337e0aaf03ece1429db04d23c88da72e7","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/8db56df4a954b774bdc68917046a685a9fa2e4bc","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1d7a03052846f34d624d0ab41a879adf5e85c85f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/420370f3ae3d3b883813fd3051a38805160b2b9f","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T23:11:34.462Z"}}]}}}