CVE-2024-27413
efi/capsule-loader: fix incorrect allocation size
Check your servers for CVE-2024-27413
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-27413 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 17 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f24c4d478013d82bd1b943df566fff3561d52864, before 00cf21ac526011a29fc708f8912da446fac19f7b affected from f24c4d478013d82bd1b943df566fff3561d52864, before 950d4d74d311a18baed6878dbfba8180d7e5dddd affected from f24c4d478013d82bd1b943df566fff3561d52864, before 537e3f49dbe88881a6f0752beaa596942d9efd64 affected from f24c4d478013d82bd1b943df566fff3561d52864, before 4b73473c050a612fb4317831371073eda07c3050 affected from f24c4d478013d82bd1b943df566fff3561d52864, before ddc547dd05a46720866c32022300f7376c40119f affected from f24c4d478013d82bd1b943df566fff3561d52864, before 11aabd7487857b8e7d768fefb092f66dfde68492 affected from f24c4d478013d82bd1b943df566fff3561d52864, before 62a5dcd9bd3097e9813de62fa6f22815e84a0172 affected from f24c4d478013d82bd1b943df566fff3561d52864, before fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e affected 95a362c9a6892085f714eb6e31eea6a0e3aa93bf affected from 4.14.13, before 4.15
Other versions: unaffected
|
| Linux |
affected 4.15 unaffected before 4.15 unaffected from 4.19.309 up to and including 4.19.* unaffected from 5.4.271 up to and including 5.4.* unaffected from 5.10.212 up to and including 5.10.* unaffected from 5.15.151 up to and including 5.15.* unaffected from 6.1.81 up to and including 6.1.* unaffected from 6.6.21 up to and including 6.6.* unaffected from 6.7.9 up to and including 6.7.* unaffected 6.8 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-27413 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-27413
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-27413
trivy image --scanners vuln IMAGE | grep CVE-2024-27413
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/00cf21ac526011a29fc708f8912da446fac19f7b git.kernel.org
- https://git.kernel.org/stable/c/950d4d74d311a18baed6878dbfba8180d7e5dddd git.kernel.org
- https://git.kernel.org/stable/c/537e3f49dbe88881a6f0752beaa596942d9efd64 git.kernel.org
- https://git.kernel.org/stable/c/4b73473c050a612fb4317831371073eda07c3050 git.kernel.org
- https://git.kernel.org/stable/c/ddc547dd05a46720866c32022300f7376c40119f git.kernel.org
- https://git.kernel.org/stable/c/11aabd7487857b8e7d768fefb092f66dfde68492 git.kernel.org
- https://git.kernel.org/stable/c/62a5dcd9bd3097e9813de62fa6f22815e84a0172 git.kernel.org
- https://git.kernel.org/stable/c/fccfa646ef3628097d59f7d9c1a3e84d4b6bb45e git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html lists.debian.org
Source: the record CVE-2024-27413 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse