CVE-2024-27413
Last modified
CVE-2024-27413 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.14.13, < 4.15 | — |
| Linux | Linux Kernel | >= 4.15.1, < 4.19.309 | — |
| Linux | Linux Kernel | >= 4.20, < 5.4.271 | — |
| Linux | Linux Kernel | >= 5.5, < 5.10.212 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.151 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.81 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.21 | — |
| Linux | Linux Kernel | >= 6.7, < 6.7.9 | — |
| Linux | Linux Kernel | 4.15 | — |
| Linux | Linux Kernel | 6.8 | Rc1 |
| Debian | Debian Linux | 10.0 | — |
References
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-27413?
How severe is CVE-2024-27413?
How do I fix CVE-2024-27413?
Are you affected by CVE-2024-27413?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
