CVE-2024-27413

efi/capsule-loader: fix incorrect allocation size

MEDIUM
5.5
CVSS Score
Published: May 17, 2024 at 11:50 AM UTC
Updated: June 17, 2026 at 07:19 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 4.14.134.14.13 ≤ v < 4.154.15 ≤ v < 4.19.3094.15 ≤ v < 5.10.2124.15 ≤ v < 5.15.1514.15 ≤ v < 5.4.2714.15 ≤ v < 6.1.814.15 ≤ v < 6.6.214.15 ≤ v < 6.7.94.15 ≤ v < 6.84.15.1 ≤ v < 4.19.3094.20 ≤ v < 5.4.2715.11 ≤ v < 5.15.1515.16 ≤ v < 6.1.815.5 ≤ v < 5.10.2126.2 ≤ v < 6.6.216.7 ≤ v < 6.7.94.14.134.154.15 rc74.15 rc84.15 rc96.8 rc16.8 rc26.8 rc36.8 rc46.8 rc56.8 rc695a362c9a6892085f714eb6e31eea6a0e3aa93bff24c4d478013d82bd1b943df566fff3561d52864
Vendor states this is fixed in 00cf21ac526011a29fc708f8912da446fac19f7b (fixed)
Vendor states this is fixed in 11aabd7487857b8e7d768fefb092f66dfde68492 (fixed)
Vendor states this is fixed in 4b73473c050a612fb4317831371073eda07c3050 (fixed)
Vendor states this is fixed in 537e3f49dbe88881a6f0752beaa596942d9efd64 (fixed)
Vendor states this is fixed in 62a5dcd9bd3097e9813de62fa6f22815e84a0172 (fixed)
Vendor states this is fixed in 950d4d74d311a18baed6878dbfba8180d7e5dddd (fixed)
Vendor states this is fixed in ddc547dd05a46720866c32022300f7376c40119f (fixed)
Vendor states this is fixed in fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e (fixed)
Vendor states this is fixed in 4.15 (unaffected)
Vendor states this is fixed in 4.19.309 (unaffected)
Vendor states this is fixed in 5.10.212 (unaffected)
Vendor states this is fixed in 5.15.151 (unaffected)
Vendor states this is fixed in 5.4.271 (unaffected)
Vendor states this is fixed in 6.1.81 (unaffected)
Vendor states this is fixed in 6.6.21 (unaffected)
Vendor states this is fixed in 6.7.9 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/00cf21ac526011a29fc708f8912da446fac19f7b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/11aabd7487857b8e7d768fefb092f66dfde68492
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4b73473c050a612fb4317831371073eda07c3050
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/537e3f49dbe88881a6f0752beaa596942d9efd64
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/62a5dcd9bd3097e9813de62fa6f22815e84a0172
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/950d4d74d311a18baed6878dbfba8180d7e5dddd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ddc547dd05a46720866c32022300f7376c40119f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card