CVE-2024-56677
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
28/12/2024
Last modified:
28/12/2024
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
powerpc/fadump: Move fadump_cma_init to setup_arch() after initmem_init()<br />
<br />
During early init CMA_MIN_ALIGNMENT_BYTES can be PAGE_SIZE,<br />
since pageblock_order is still zero and it gets initialized<br />
later during initmem_init() e.g.<br />
setup_arch() -> initmem_init() -> sparse_init() -> set_pageblock_order()<br />
<br />
One such use case where this causes issue is -<br />
early_setup() -> early_init_devtree() -> fadump_reserve_mem() -> fadump_cma_init()<br />
<br />
This causes CMA memory alignment check to be bypassed in<br />
cma_init_reserved_mem(). Then later cma_activate_area() can hit<br />
a VM_BUG_ON_PAGE(pfn & ((1
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/05b94cae1c47f94588c3e7096963c1007c4d9c1d
- https://git.kernel.org/stable/c/7351c5a6507b4401aeecadb5959131410a339520
- https://git.kernel.org/stable/c/aabef6301dcf410dfd2b8759cd413b2a003c7e3f
- https://git.kernel.org/stable/c/c5c1d1ef70834013fc3bd12b6a0f4664c6d75a74
- https://git.kernel.org/stable/c/f551637fe9bf863386309e03f9d148d97f535ad1