{"id":"CVE-2024-27413","aliases":["CVE-2024-27413"],"related":[],"kind":"vulnerability","state":"published","title":"efi/capsule-loader: fix incorrect allocation size","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: efi/capsule-loader: corrige el tamaño de asignación incorrecto gcc-14 advierte que la asignación con sizeof(void) en arquitecturas de 32 bits no es suficiente para phys_addr_t: drivers de 64 bits /firmware/efi/capsule-loader.c: En función 'efi_capsule_open': drivers/firmware/efi/capsule-loader.c:295:24: error: asignación de tamaño '4' insuficiente para el tipo 'phys_addr_t' {alias ' long long unsigned int'} con tamaño '8' [-Werror=alloc-size] 295 | cap_info-&gt;phys = kzalloc(sizeof(void *), GFP_KERNEL); | ^ Utilice el tipo correcto aquí.","source":"nvd"}],"published":"2024-05-17T11:50:53.780Z","modified":"2026-06-17T07:19:51.630Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"00cf21ac526011a29fc708f8912da446fac19f7b","status":"affected"},{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"950d4d74d311a18baed6878dbfba8180d7e5dddd","status":"affected"},{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"537e3f49dbe88881a6f0752beaa596942d9efd64","status":"affected"},{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"4b73473c050a612fb4317831371073eda07c3050","status":"affected"},{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"ddc547dd05a46720866c32022300f7376c40119f","status":"affected"},{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"11aabd7487857b8e7d768fefb092f66dfde68492","status":"affected"},{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"62a5dcd9bd3097e9813de62fa6f22815e84a0172","status":"affected"},{"type":"git","introduced":"f24c4d478013d82bd1b943df566fff3561d52864","fixed":"fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e","status":"affected"},{"type":"git","version":"95a362c9a6892085f714eb6e31eea6a0e3aa93bf","status":"affected"},{"type":"semver","introduced":"4.14.13","fixed":"4.15","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"4.19.309","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.271","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.212","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.151","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.81","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.21","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.7.9","lastAffected":"6.7.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.8","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.14.13","fixed":"4.15"},{"status":"affected","introduced":"4.15.1","fixed":"4.19.309"},{"status":"affected","introduced":"4.20","fixed":"5.4.271"},{"status":"affected","introduced":"5.5","fixed":"5.10.212"},{"status":"affected","introduced":"5.11","fixed":"5.15.151"},{"status":"affected","introduced":"5.16","fixed":"6.1.81"},{"status":"affected","introduced":"6.2","fixed":"6.6.21"},{"status":"affected","introduced":"6.7","fixed":"6.7.9"},{"status":"affected","version":"4.15"},{"status":"affected","version":"4.15"},{"status":"affected","version":"4.15"},{"status":"affected","version":"4.15"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"},{"status":"affected","version":"6.8"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/00cf21ac526011a29fc708f8912da446fac19f7b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/950d4d74d311a18baed6878dbfba8180d7e5dddd","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/537e3f49dbe88881a6f0752beaa596942d9efd64","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b73473c050a612fb4317831371073eda07c3050","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ddc547dd05a46720866c32022300f7376c40119f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/11aabd7487857b8e7d768fefb092f66dfde68492","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62a5dcd9bd3097e9813de62fa6f22815e84a0172","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-17T17:39:33.014Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-27413","url":"https://www.cve.org/CVERecord?id=CVE-2024-27413","licence":"CVE Terms of Use","modified":"2026-05-23T15:42:38.950Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-27413","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27413","licence":"Public domain","modified":"2026-06-17T07:19:51.630Z"}],"updatedAt":"2026-11-25T22:58:40.494Z","epss":{"score":0.00246,"percentile":0.1697,"date":"2026-12-01T12:00:22.000Z"}}