# CVE-2024-27413: efi/capsule-loader: fix incorrect allocation size

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-17T11:50:53.780Z
- Modified: 2026-06-17T07:19:51.630Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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; 95a362c9a6892085f714eb6e31eea6a0e3aa93bf; from 4.14.13 before 4.15; 4.15 (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.*; from 6.6.21 up to 6.6.*; from 6.7.9 up to 6.7.*; from 6.8 up to *)
- 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; 4.15; 6.8
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/00cf21ac526011a29fc708f8912da446fac19f7b> (patch)
- <https://git.kernel.org/stable/c/950d4d74d311a18baed6878dbfba8180d7e5dddd> (patch)
- <https://git.kernel.org/stable/c/537e3f49dbe88881a6f0752beaa596942d9efd64> (patch)
- <https://git.kernel.org/stable/c/4b73473c050a612fb4317831371073eda07c3050> (patch)
- <https://git.kernel.org/stable/c/ddc547dd05a46720866c32022300f7376c40119f> (patch)
- <https://git.kernel.org/stable/c/11aabd7487857b8e7d768fefb092f66dfde68492> (patch)
- <https://git.kernel.org/stable/c/62a5dcd9bd3097e9813de62fa6f22815e84a0172> (patch)
- <https://git.kernel.org/stable/c/fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-27413](https://www.cve.org/CVERecord?id=CVE-2024-27413), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-27413](https://nvd.nist.gov/vuln/detail/CVE-2024-27413), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27413 · Whole record: https://cve.day/CVE-2024-27413.json · Rebuilt by cve.day 2026-11-25T22:58:40.494Z
