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

Published Dec 27, 2024
·
Updated

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

udmabuf: change folios array from kmalloc to kvmalloc

When PAGESIZE 4096, MAXPAGEORDER 10, 64bit machine, pagealloc 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/pagealloc.c:4556 allocpages+0x2c8/0x350 [ 4080.878839] RIP: 0010:allocpages+0x2c8/0x350 [ 4080.879470] Call Trace: [ 4080.879473] <TASK> [ 4080.879473] ? allocpages+0x2c8/0x350 [ 4080.879475] ? warn.cold+0x8e/0xe8 [ 4080.880647] ? allocpages+0x2c8/0x350 [ 4080.880909] ? reportbug+0xff/0x140 [ 4080.881175] ? handlebug+0x3c/0x80 [ 4080.881556] ? excinvalidop+0x17/0x70 [ 4080.881559] ? asmexcinvalidop+0x1a/0x20 [ 4080.882077] ? udmabufcreate+0x131/0x400

Because MAXPAGEORDER, 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 kvmallocarray, this can fallback alloc into vmalloc, which can guarantee allocation for any size and does not affect the performance of kmalloc allocations.

Affected Software

4 affected componentsFixes available
Linux Foundation Linux Kernel
Linux Linux kernel>=4.20<6.11.11
Linux Linux kernel>=6.12<6.12.2
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.25-1

Event History

Dec 27, 2024
CVE Published
via MITRE·02:11 PM
Data Sourced
via MITRE·02:11 PM
Description
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 7, 2025
Data Sourced
via Ubuntu·01:14 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-56544?

The severity of CVE-2024-56544 is currently classified as moderate.

2

How do I fix CVE-2024-56544?

To resolve CVE-2024-56544, it is recommended to update the Linux kernel to version 6.12.3 or later.

3

What systems are affected by CVE-2024-56544?

CVE-2024-56544 affects Linux kernel versions between 4.20 and 6.12.2.

4

What type of vulnerability is CVE-2024-56544?

CVE-2024-56544 is a memory management vulnerability in the Linux kernel.

5

When was CVE-2024-56544 published?

CVE-2024-56544 was published on October 1, 2024.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203