CVE-2024-27413

MEDIUM

Linux Kernel 4.14.13-4.14.99 - Integer Overflow via Incorrect Allocation Size in EFI Capsule Loader

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0024
EPSS Percentile 15.5%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

Status published
Products (31)
debian/debian_linux 10.0
linux/Kernel 4.15.0 - 4.19.309linux
linux/Kernel 4.20.0 - 5.4.271linux
linux/Kernel 5.11.0 - 5.15.151linux
linux/Kernel 5.16.0 - 6.1.81linux
linux/Kernel 5.5.0 - 5.10.212linux
linux/Kernel 6.2.0 - 6.6.21linux
linux/Kernel 6.7.0 - 6.7.9linux
Linux/Linux < 4.15
Linux/Linux 4.14.13 - 4.15
... and 21 more
Published May 17, 2024
Tracked Since Feb 18, 2026