# CVE-2024-56677: powerpc/fadump: Move fadump\_cma\_init to setup\_arch() after initmem\_init()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-12-28T09:46:06.497Z
- **Modified:** 2026-08-05T11:46:01.649Z

## Who should check

- Anyone running Linux \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< aabef6301dcf410dfd2b8759cd413b2a003c7e3f; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< c5c1d1ef70834013fc3bd12b6a0f4664c6d75a74; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< f551637fe9bf863386309e03f9d148d97f535ad1; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< 7351c5a6507b4401aeecadb5959131410a339520; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< 05b94cae1c47f94588c3e7096963c1007c4d9c1d
- Anyone running Linux 5.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

powerpc/fadump: Move fadump\_cma\_init to setup\_arch() after initmem\_init()

During early init CMA\_MIN\_ALIGNMENT\_BYTES can be PAGE\_SIZE,
since pageblock\_order is still zero and it gets initialized
later during initmem\_init() e.g.
setup\_arch() -\> initmem\_init() -\> sparse\_init() -\> set\_pageblock\_order()

One such use case where this causes issue is -
early\_setup() -\> early\_init\_devtree() -\> fadump\_reserve\_mem() -\> fadump\_cma\_init()

This causes CMA memory alignment check to be bypassed in
cma\_init\_reserved\_mem(). Then later cma\_activate\_area() can hit
a VM\_BUG\_ON\_PAGE(pfn & ((1 \<\< order) - 1)) if the reserved memory
area was not pageblock\_order aligned.

Fix it by moving the fadump\_cma\_init() after initmem\_init(),
where other such cma reservations also gets called.

\<stack trace\>
==============
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10010
flags: 0x13ffff800000000(node=1\|zone=0\|lastcpupid=0x7ffff) CMA
raw: 013ffff800000000 5deadbeef0000100 5deadbeef0000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: VM\_BUG\_ON\_PAGE(pfn & ((1 \<\< order) - 1))
------------\[ cut here \]------------
kernel BUG at mm/page\_alloc.c:778!

Call Trace:
\_\_free\_one\_page+0x57c/0x7b0 (unreliable)
free\_pcppages\_bulk+0x1a8/0x2c8
free\_unref\_page\_commit+0x3d4/0x4e4
free\_unref\_page+0x458/0x6d0
init\_cma\_reserved\_pageblock+0x114/0x198
cma\_init\_reserved\_areas+0x270/0x3e0
do\_one\_initcall+0x80/0x2f8
kernel\_init\_freeable+0x33c/0x530
kernel\_init+0x34/0x26c
ret\_from\_kernel\_user\_thread+0x14/0x1c

## Affected and fixed versions

- Linux: \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< aabef6301dcf410dfd2b8759cd413b2a003c7e3f; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< c5c1d1ef70834013fc3bd12b6a0f4664c6d75a74; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< f551637fe9bf863386309e03f9d148d97f535ad1; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< 7351c5a6507b4401aeecadb5959131410a339520; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< 05b94cae1c47f94588c3e7096963c1007c4d9c1d (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 05b94cae1c47f94588c3e7096963c1007c4d9c1d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56677. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56677.md
Affected: Linux >= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, < aabef6301dcf410dfd2b8759cd413b2a003c7e3f; >= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, < c5c1d1ef70834013fc3bd12b6a0f4664c6d75a74; >= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, < f551637fe9bf863386309e03f9d148d97f535ad1; >= 11ac3e87ce09c27f4587a8c…
Fixed in: Linux 7351c5a6507b4401aeecadb5959131410a339520, Linux 05b94cae1c47f94588c3e7096963c1007c4d9c1d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56677 being exploited?

There is no confirmed exploitation: CVE-2024-56677 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56677?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-56677?

Linux \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< aabef6301dcf410dfd2b8759cd413b2a003c7e3f; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< c5c1d1ef70834013fc3bd12b6a0f4664c6d75a74; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< f551637fe9bf863386309e03f9d148d97f535ad1; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< 7351c5a6507b4401aeecadb5959131410a339520; \>= 11ac3e87ce09c27f4587a8c4fe0829d814021a82, \< 05b94cae1c47f94588c3e7096963c1007c4d9c1d; Linux 5.19.

### Is there a fix for CVE-2024-56677?

Yes. Fixed in Linux 7351c5a6507b4401aeecadb5959131410a339520, Linux 05b94cae1c47f94588c3e7096963c1007c4d9c1d. Upgrade Linux to 05b94cae1c47f94588c3e7096963c1007c4d9c1d or later.

### How do I check if I'm affected by CVE-2024-56677?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/aabef6301dcf410dfd2b8759cd413b2a003c7e3f>
- patch: <https://git.kernel.org/stable/c/c5c1d1ef70834013fc3bd12b6a0f4664c6d75a74>
- patch: <https://git.kernel.org/stable/c/f551637fe9bf863386309e03f9d148d97f535ad1>
- patch: <https://git.kernel.org/stable/c/7351c5a6507b4401aeecadb5959131410a339520>
- patch: <https://git.kernel.org/stable/c/05b94cae1c47f94588c3e7096963c1007c4d9c1d>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56677>

HTML: <https://flawdb.com/CVE-2024-56677> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56677>
