{"id":"CVE-2024-27413","published":"2024-05-17T11:50:53Z","modified":"2026-05-23T15:42:38Z","title":"efi/capsule-loader: fix incorrect allocation size","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nefi/capsule-loader: fix incorrect allocation size\n\ngcc-14 notices that the allocation with sizeof(void) on 32-bit architectures\nis not enough for a 64-bit phys_addr_t:\n\ndrivers/firmware/efi/capsule-loader.c: In function 'efi_capsule_open':\ndrivers/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]\n  295 |         cap_info->phys = kzalloc(sizeof(void *), GFP_KERNEL);\n      |                        ^\n\nUse the correct type instead here.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00246,"percentile":0.1617,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/00cf21ac526011a29fc708f8912da446fac19f7b","tags":[]},{"url":"https://git.kernel.org/stable/c/950d4d74d311a18baed6878dbfba8180d7e5dddd","tags":[]},{"url":"https://git.kernel.org/stable/c/537e3f49dbe88881a6f0752beaa596942d9efd64","tags":[]},{"url":"https://git.kernel.org/stable/c/4b73473c050a612fb4317831371073eda07c3050","tags":[]},{"url":"https://git.kernel.org/stable/c/ddc547dd05a46720866c32022300f7376c40119f","tags":[]},{"url":"https://git.kernel.org/stable/c/11aabd7487857b8e7d768fefb092f66dfde68492","tags":[]},{"url":"https://git.kernel.org/stable/c/62a5dcd9bd3097e9813de62fa6f22815e84a0172","tags":[]},{"url":"https://git.kernel.org/stable/c/fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["x_transferred"]}],"priority":{"score":3.2,"factors":[{"name":"EPSS percentile","points":3.23}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f24c4d478013d82bd1b943df566fff3561d52864, < 00cf21ac526011a29fc708f8912da446fac19f7b",">= f24c4d478013d82bd1b943df566fff3561d52864, < 950d4d74d311a18baed6878dbfba8180d7e5dddd",">= f24c4d478013d82bd1b943df566fff3561d52864, < 537e3f49dbe88881a6f0752beaa596942d9efd64",">= f24c4d478013d82bd1b943df566fff3561d52864, < 4b73473c050a612fb4317831371073eda07c3050",">= f24c4d478013d82bd1b943df566fff3561d52864, < ddc547dd05a46720866c32022300f7376c40119f",">= f24c4d478013d82bd1b943df566fff3561d52864, < 11aabd7487857b8e7d768fefb092f66dfde68492",">= f24c4d478013d82bd1b943df566fff3561d52864, < 62a5dcd9bd3097e9813de62fa6f22815e84a0172",">= f24c4d478013d82bd1b943df566fff3561d52864, < fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e","95a362c9a6892085f714eb6e31eea6a0e3aa93bf",">= 4.14.13, < 4.15"]},{"vendor":"Linux","product":"Linux","versions":["4.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-17T17:39:33.014498Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-24617","exploited":false,"provenance":"source"}}