CVE-2024-45028
JSON

5.5medium

mmc: mmc_test: Fix NULL dereference on allocation failure

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 1 more
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.*
CVE List
linux linux_kernelfrom 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.11NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mmc: mmc_test: Se corrige la desreferencia NULL en caso de error de asignación. Si la asignación "test->highmem = alloc_pages()" falla, al llamar a __free_pages(test->highmem) se obtendrá una desreferencia NULL. Cambie también el código de error a -ENOMEM en lugar de devolver un resultado positivo.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-45028 changed 2026-05-11CVE Terms of Use
NVDCVE-2024-45028 changed 2026-06-17Public domain