CVEvulnerability

CVE-2024-27413

5.5 MEDIUM Published 2024-05-17 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2024-05-17
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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 configurations

• linux linux kernel (>= 4.14.13 < 4.15) • linux linux kernel (>= 4.15.1 < 4.19.309) • linux linux kernel (>= 4.20 < 5.4.271) • linux linux kernel (>= 5.5 < 5.10.212) • linux linux kernel (>= 5.11 < 5.15.151) • linux linux kernel (>= 5.16 < 6.1.81) • linux linux kernel (>= 6.2 < 6.6.21) • linux linux kernel (>= 6.7 < 6.7.9) • linux linux kernel 4.15 • linux linux kernel 6.8 • debian debian linux 10.0

References