# CVE-2024-45028: mmc: mmc_test: Fix NULL dereference on allocation failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-09-11T15:13:59.649Z
- Modified: 2026-06-17T07:53:27.117Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before e97be13a9f51284da450dd2a592e3fa87b49cdc9; from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before 2b507b03991f44dfb202fc2a82c9874d1b1f0c06; from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before 9b9ba386d7bfdbc38445932c90fa9444c0524bea; from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before e40515582141a9e7c84b269be699c05236a499a6; from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before 3b4e76ceae5b5a46c968bd952f551ce173809f63; from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before cac2815f49d343b2f0acc4973d2c14918ac3ab0c; from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before ecb15b8ca12c0cbdab81e307e9795214d8b90890; from 2661081f5ab9cb25359d27f88707a018cf4e68e9 before a1e627af32ed60713941cbfc8075d44cad07f6dd; 2.6.27 (not affected: before 2.6.27; from 4.19.321 up to 4.19.*; from 5.4.283 up to 5.4.*; from 5.10.225 up to 5.10.*; from 5.15.166 up to 5.15.*; from 6.1.107 up to 6.1.*; from 6.6.48 up to 6.6.*; from 6.10.7 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 2.6.27 before 4.19.321; from 4.20 before 5.4.283; from 5.5 before 5.10.225; from 5.11 before 5.15.166; from 5.16 before 6.1.107; from 6.2 before 6.6.48; from 6.7 before 6.10.7; 6.11

## References

- <https://git.kernel.org/stable/c/e97be13a9f51284da450dd2a592e3fa87b49cdc9> (patch)
- <https://git.kernel.org/stable/c/2b507b03991f44dfb202fc2a82c9874d1b1f0c06> (patch)
- <https://git.kernel.org/stable/c/9b9ba386d7bfdbc38445932c90fa9444c0524bea> (patch)
- <https://git.kernel.org/stable/c/e40515582141a9e7c84b269be699c05236a499a6> (patch)
- <https://git.kernel.org/stable/c/3b4e76ceae5b5a46c968bd952f551ce173809f63> (patch)
- <https://git.kernel.org/stable/c/cac2815f49d343b2f0acc4973d2c14918ac3ab0c> (patch)
- <https://git.kernel.org/stable/c/ecb15b8ca12c0cbdab81e307e9795214d8b90890> (patch)
- <https://git.kernel.org/stable/c/a1e627af32ed60713941cbfc8075d44cad07f6dd> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

- CVE List: [CVE-2024-45028](https://www.cve.org/CVERecord?id=CVE-2024-45028), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-45028](https://nvd.nist.gov/vuln/detail/CVE-2024-45028), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45028 · Whole record: https://cve.day/CVE-2024-45028.json · Rebuilt by cve.day 2026-11-25T22:58:45.315Z
