{"id":"CVE-2023-54167","state":"PUBLISHED","title":"m68k: mm: Move initrd phys_to_virt handling after paging_init()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nm68k: mm: Move initrd phys_to_virt handling after paging_init()\n\nWhen booting with an initial ramdisk on platforms where physical memory\ndoes not start at address zero (e.g. on Amiga):\n\n    initrd: 0ef0602c - 0f800000\n    Zone ranges:\n      DMA      [mem 0x0000000008000000-0x000000f7ffffffff]\n      Normal   empty\n    Movable zone start for each node\n    Early memory node ranges\n      node   0: [mem 0x0000000008000000-0x000000000f7fffff]\n    Initmem setup node 0 [mem 0x0000000008000000-0x000000000f7fffff]\n    Unable to handle kernel access at virtual address (ptrval)\n    Oops: 00000000\n    Modules linked in:\n    PC: [<00201d3c>] memcmp+0x28/0x56\n\nAs phys_to_virt() relies on m68k_memoffset and module_fixup(), it must\nnot be called before paging_init().  Hence postpone the phys_to_virt\nhandling for the initial ramdisk until after calling paging_init().\n\nWhile at it, reduce #ifdef clutter by using IS_ENABLED() instead.","publishedAt":"2025-12-30T12:08:42.705Z","updatedAt":"2026-05-11T19:56:44.783Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"376e3fdecb0dcae216c0ac559cff066f460bf47b","status":"affected","lessThan":"ceb089e2337f810d3594d310953d9af4783f660a","versionType":"git"},{"version":"376e3fdecb0dcae216c0ac559cff066f460bf47b","status":"affected","lessThan":"58662cfb459150b9c0c22d20cddaea439b3844bd","versionType":"git"},{"version":"376e3fdecb0dcae216c0ac559cff066f460bf47b","status":"affected","lessThan":"d4b97925e87eb133e400fe4a482d750c74ce392f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/m68k/kernel/setup_mm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.20","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.7","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/m68k/kernel/setup_mm.c"]}],"references":["https://git.kernel.org/stable/c/ceb089e2337f810d3594d310953d9af4783f660a","https://git.kernel.org/stable/c/58662cfb459150b9c0c22d20cddaea439b3844bd","https://git.kernel.org/stable/c/d4b97925e87eb133e400fe4a482d750c74ce392f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:42.242Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/54xxx/CVE-2023-54167.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54167","state":"PUBLISHED","datePublished":"2025-12-30T12:08:42.705Z","dateUpdated":"2026-05-11T19:56:44.783Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:44.495Z"},"containers":{"cna":{"title":"m68k: mm: Move initrd phys_to_virt handling after paging_init()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nm68k: mm: Move initrd phys_to_virt handling after paging_init()\n\nWhen booting with an initial ramdisk on platforms where physical memory\ndoes not start at address zero (e.g. on Amiga):\n\n    initrd: 0ef0602c - 0f800000\n    Zone ranges:\n      DMA      [mem 0x0000000008000000-0x000000f7ffffffff]\n      Normal   empty\n    Movable zone start for each node\n    Early memory node ranges\n      node   0: [mem 0x0000000008000000-0x000000000f7fffff]\n    Initmem setup node 0 [mem 0x0000000008000000-0x000000000f7fffff]\n    Unable to handle kernel access at virtual address (ptrval)\n    Oops: 00000000\n    Modules linked in:\n    PC: [<00201d3c>] memcmp+0x28/0x56\n\nAs phys_to_virt() relies on m68k_memoffset and module_fixup(), it must\nnot be called before paging_init().  Hence postpone the phys_to_virt\nhandling for the initial ramdisk until after calling paging_init().\n\nWhile at it, reduce #ifdef clutter by using IS_ENABLED() instead."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"376e3fdecb0dcae216c0ac559cff066f460bf47b","status":"affected","lessThan":"ceb089e2337f810d3594d310953d9af4783f660a","versionType":"git"},{"version":"376e3fdecb0dcae216c0ac559cff066f460bf47b","status":"affected","lessThan":"58662cfb459150b9c0c22d20cddaea439b3844bd","versionType":"git"},{"version":"376e3fdecb0dcae216c0ac559cff066f460bf47b","status":"affected","lessThan":"d4b97925e87eb133e400fe4a482d750c74ce392f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/m68k/kernel/setup_mm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.17","versionType":"semver"},{"version":"6.1.20","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.7","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/m68k/kernel/setup_mm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ceb089e2337f810d3594d310953d9af4783f660a"},{"url":"https://git.kernel.org/stable/c/58662cfb459150b9c0c22d20cddaea439b3844bd"},{"url":"https://git.kernel.org/stable/c/d4b97925e87eb133e400fe4a482d750c74ce392f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:56:44.783Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.1.20"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.17","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}