# CVE-2024-56544: udmabuf: change folios array from kmalloc to kvmalloc

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-12-27T14:11:25.801Z
- **Modified:** 2026-10-21T13:17:51.777Z

## Who should check

- Anyone running Linux \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 2384a29db79bd2cfe0b7646ac0030cb355825e29; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 2acc6192aa8570661ed37868c02c03002b1dc290; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 85bb72397cb63649fe493c96e27e1d0e4ed2ff63; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 1c0844c6184e658064e14c4335885785ad3bf84b
- Anyone running Linux 4.20

## Description

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

udmabuf: change folios array from kmalloc to kvmalloc

When PAGE\_SIZE 4096, MAX\_PAGE\_ORDER 10, 64bit machine,
page\_alloc only support 4MB.
If above this, trigger this warn and return NULL.

udmabuf can change size limit, if change it to 3072(3GB), and then alloc
3GB udmabuf, will fail create.

\[ 4080.876581\] ------------\[ cut here \]------------
\[ 4080.876843\] WARNING: CPU: 3 PID: 2015 at mm/page\_alloc.c:4556 \_\_alloc\_pages+0x2c8/0x350
\[ 4080.878839\] RIP: 0010:\_\_alloc\_pages+0x2c8/0x350
\[ 4080.879470\] Call Trace:
\[ 4080.879473\]  \<TASK\>
\[ 4080.879473\]  ? \_\_alloc\_pages+0x2c8/0x350
\[ 4080.879475\]  ? \_\_warn.cold+0x8e/0xe8
\[ 4080.880647\]  ? \_\_alloc\_pages+0x2c8/0x350
\[ 4080.880909\]  ? report\_bug+0xff/0x140
\[ 4080.881175\]  ? handle\_bug+0x3c/0x80
\[ 4080.881556\]  ? exc\_invalid\_op+0x17/0x70
\[ 4080.881559\]  ? asm\_exc\_invalid\_op+0x1a/0x20
\[ 4080.882077\]  ? udmabuf\_create+0x131/0x400

Because MAX\_PAGE\_ORDER, kmalloc can max alloc 4096 \* (1 \<\< 10), 4MB
memory, each array entry is pointer(8byte), so can save 524288 pages(2GB).

Further more, costly order(order 3) may not be guaranteed that it can be
applied for, due to fragmentation.

This patch change udmabuf array use kvmalloc\_array, this can fallback
alloc into vmalloc, which can guarantee allocation for any size and does
not affect the performance of kmalloc allocations.

## Affected and fixed versions

- Linux: \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 2384a29db79bd2cfe0b7646ac0030cb355825e29; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 2acc6192aa8570661ed37868c02c03002b1dc290; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 85bb72397cb63649fe493c96e27e1d0e4ed2ff63; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 1c0844c6184e658064e14c4335885785ad3bf84b (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 1c0844c6184e658064e14c4335885785ad3bf84b 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-56544. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56544.md
Affected: Linux >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 2384a29db79bd2cfe0b7646ac0030cb355825e29; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 2acc6192aa8570661ed37868c02c03002b1dc290; >= fbb0de795078190a9834b3409e4b009cfb18a6d4, < 85bb72397cb63649fe493c96e27e1d0e4ed2ff63; >= fbb0de795078190a9834b34…
Fixed in: Linux 2384a29db79bd2cfe0b7646ac0030cb355825e29, Linux 2acc6192aa8570661ed37868c02c03002b1dc290, Linux 85bb72397cb63649fe493c96e27e1d0e4ed2ff63, Linux 1c0844c6184e658064e14c4335885785ad3bf84b

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-56544 being exploited?

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

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

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

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

Linux \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 2384a29db79bd2cfe0b7646ac0030cb355825e29; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 2acc6192aa8570661ed37868c02c03002b1dc290; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 85bb72397cb63649fe493c96e27e1d0e4ed2ff63; \>= fbb0de795078190a9834b3409e4b009cfb18a6d4, \< 1c0844c6184e658064e14c4335885785ad3bf84b; Linux 4.20.

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

Yes. Fixed in Linux 2384a29db79bd2cfe0b7646ac0030cb355825e29, Linux 2acc6192aa8570661ed37868c02c03002b1dc290, Linux 85bb72397cb63649fe493c96e27e1d0e4ed2ff63, Linux 1c0844c6184e658064e14c4335885785ad3bf84b. Upgrade Linux to 1c0844c6184e658064e14c4335885785ad3bf84b or later.

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

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/2acc6192aa8570661ed37868c02c03002b1dc290>
- patch: <https://git.kernel.org/stable/c/85bb72397cb63649fe493c96e27e1d0e4ed2ff63>
- patch: <https://git.kernel.org/stable/c/1c0844c6184e658064e14c4335885785ad3bf84b>
- other: <https://git.kernel.org/stable/c/2384a29db79bd2cfe0b7646ac0030cb355825e29>

## 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-56544>

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