1. Home
  2. Vulnerabilities
  3. CVE-2024-27413

CVE-2024-27413

In the Linux kernel, the following vulnerability has been resolved: efi/capsule-loader: fix incorrect…

Published 17 May 2024 · modified 17 Jun 2026 · Sources: NVD, EPSS (FIRST)

Low 26/100

Summary

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 products and versions

Debian (1 line(s))
Debian
ProductVersionsFixed inSource
Debian linux 10.0 — NVD
Linux (10 line(s))
Linux
ProductVersionsFixed inSource
Linux kernel from 4.14.13 (included) to 4.15 (excluded) — NVD
Linux kernel from 4.15.1 (included) to 4.19.309 (excluded) — NVD
Linux kernel from 4.20 (included) to 5.4.271 (excluded) — NVD
Linux kernel from 5.5 (included) to 5.10.212 (excluded) — NVD
Linux kernel from 5.11 (included) to 5.15.151 (excluded) — NVD
Linux kernel from 5.16 (included) to 6.1.81 (excluded) — NVD
Linux kernel from 6.2 (included) to 6.6.21 (excluded) — NVD
Linux kernel from 6.7 (included) to 6.7.9 (excluded) — NVD
Linux kernel 4.15 — NVD
Linux kernel 6.8 — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Weakness
NVD-CWE-noinfo · Non classé

How this data is obtained and calculated