5.5medium
efi/capsule-loader: fix incorrect allocation size
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.25% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: efi/capsule-loader: fix incorrect allocation size gcc-14 notices that the allocation with sizeof(void) on 32-bit architectures is not enough for a 64-bit phys_addr_t: drivers/firmware/efi/capsule-loader.c: In function 'efi_capsule_open': drivers/firmware/efi/capsule-loader.c:295:24: error: allocation of insufficient size '4' for type 'phys_addr_t' {aka 'long long unsigned int'} with size '8' [-Werror=alloc-size] 295 | cap_info->phys = kzalloc(sizeof(void *), GFP_KERNEL); | ^ Use the correct type instead here.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from f24c4d478013d82bd1b943df566fff3561d52864 before 00cf21ac526011a29fc708f8912da446fac19f7b, from f24c4d478013d82bd1b943df566fff3561d52864 before 950d4d74d311a18baed6878dbfba8180d7e5dddd, from f24c4d478013d82bd1b943df566fff3561d52864 before 537e3f49dbe88881a6f0752beaa596942d9efd64, from f24c4d478013d82bd1b943df566fff3561d52864 before 4b73473c050a612fb4317831371073eda07c3050, from f24c4d478013d82bd1b943df566fff3561d52864 before ddc547dd05a46720866c32022300f7376c40119f, from f24c4d478013d82bd1b943df566fff3561d52864 before 11aabd7487857b8e7d768fefb092f66dfde68492, from f24c4d478013d82bd1b943df566fff3561d52864 before 62a5dcd9bd3097e9813de62fa6f22815e84a0172, from f24c4d478013d82bd1b943df566fff3561d52864 before fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e and 3 more Not affected: before 4.15, from 4.19.309 up to 4.19.*, from 5.4.271 up to 5.4.*, from 5.10.212 up to 5.10.*, from 5.15.151 up to 5.15.*, from 6.1.81 up to 6.1.* | CVE List |
| linux linux_kernel | from 4.14.13 before 4.15, from 4.15.1 before 4.19.309, from 4.20 before 5.4.271, from 5.5 before 5.10.212, from 5.11 before 5.15.151, from 5.16 before 6.1.81, from 6.2 before 6.6.21, from 6.7 before 6.7.9 and 2 more | NVD |
| debian debian_linux | 10.0 | NVD |
Classification
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: efi/capsule-loader: fix incorrect allocation size gcc-14 notices that the allocation with sizeof(void) on 32-bit architectures is not enough for a 64-bit phys_addr_t: drivers/firmware/efi/capsule-loader.c: In function 'efi_capsule_open': drivers/firmware/efi/capsule-loader.c:295:24: error: allocation of insufficient size '4' for type 'phys_addr_t' {aka 'long long unsigned int'} with size '8' [-Werror=alloc-size] 295 | cap_info->phys = kzalloc(sizeof(void *), GFP_KERNEL); | ^ Use the correct type instead here.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: efi/capsule-loader: corrige el tamaño de asignación incorrecto gcc-14 advierte que la asignación con sizeof(void) en arquitecturas de 32 bits no es suficiente para phys_addr_t: drivers de 64 bits /firmware/efi/capsule-loader.c: En función 'efi_capsule_open': drivers/firmware/efi/capsule-loader.c:295:24: error: asignación de tamaño '4' insuficiente para el tipo 'phys_addr_t' {alias ' long long unsigned int'} con tamaño '8' [-Werror=alloc-size] 295 | cap_info->phys = kzalloc(sizeof(void *), GFP_KERNEL); | ^ Utilice el tipo correcto aquí.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-27413 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2024-27413 changed 2026-06-17 | Public domain |