CVE-2024-45028 mmc: mmc_test: Fix NULL dereference on allocation failure
A NULL pointer dereference in the Linux kernel MMC test module can cause a system crash if memory allocation fails.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-45028?
CVE-2024-45028 is a medium-severity vulnerability in Linux kernel, published on 11 Sep 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
mmc: mmc_test: Fix NULL dereference on allocation failure
If the "test->highmem = alloc_pages()" allocation fails then calling __free_pages(test->highmem) will result in a NULL dereference. Also change the error code to -ENOMEM instead of returning success.
Weakness: CWE-476
Which versions are affected by CVE-2024-45028?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-45028?
Apply the vendor's patch.
Is CVE-2024-45028 being exploited?
There is no known exploitation of CVE-2024-45028 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-49200, AZL-49215, BELL-CVE-2024-45028, DEBIAN-CVE-2024-45028, GHSA-4gw2-r6x4-xxxg, UBUNTU-CVE-2024-45028.