CVE-2024-42265
protect the fetch of ->fd[fd] in do_dup2() from mispredictions
Check your servers for CVE-2024-42265
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-42265 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:
protect the fetch of ->fd[fd] in do_dup2() from mispredictions
both callers have verified that fd is not greater than ->max_fds; however, misprediction might end up with tofree = fdt->fd[fd]; being speculatively executed. That's wrong for the same reasons why it's wrong in close_fd()/file_close_fd_locked(); the same solution applies - array_index_nospec(fd, fdt->max_fds) could differ from fd only in case of speculative execution on mispredicted path.
Exploitation
EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 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 8280d16172243702ed43432f826ca6130edb4086, before ed42e8ff509d2a61c6642d1825032072dab79f26 affected from 8280d16172243702ed43432f826ca6130edb4086, before 41a6c31df77bd8e050136b0a200b537da9e1084a affected from 8280d16172243702ed43432f826ca6130edb4086, before 08775b3d6ed117cf4518754ec7300ee42b6a5368 affected from 8280d16172243702ed43432f826ca6130edb4086, before 3f480493550b6a23d3a65d095d6569d4a7f56a0f affected from 8280d16172243702ed43432f826ca6130edb4086, before 5db999fff545b924b24c9afd368ef5c17279b176 affected from 8280d16172243702ed43432f826ca6130edb4086, before da72e783afd27d9f487836b2e6738146c0edd149 affected from 8280d16172243702ed43432f826ca6130edb4086, before 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1 affected from 8280d16172243702ed43432f826ca6130edb4086, before 8aa37bde1a7b645816cda8b80df4753ecf172bf1
Other versions: unaffected
|
| Linux |
affected 3.7 unaffected before 3.7 unaffected from 4.19.320 up to and including 4.19.* unaffected from 5.4.282 up to and including 5.4.* unaffected from 5.10.224 up to and including 5.10.* unaffected from 5.15.165 up to and including 5.15.* unaffected from 6.1.104 up to and including 6.1.* unaffected from 6.6.45 up to and including 6.6.* unaffected from 6.10.4 up to and including 6.10.* unaffected 6.11 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-42265 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42265
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-42265
trivy image --scanners vuln IMAGE | grep CVE-2024-42265
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/ed42e8ff509d2a61c6642d1825032072dab79f26 git.kernel.org
- https://git.kernel.org/stable/c/41a6c31df77bd8e050136b0a200b537da9e1084a git.kernel.org
- https://git.kernel.org/stable/c/08775b3d6ed117cf4518754ec7300ee42b6a5368 git.kernel.org
- https://git.kernel.org/stable/c/3f480493550b6a23d3a65d095d6569d4a7f56a0f git.kernel.org
- https://git.kernel.org/stable/c/5db999fff545b924b24c9afd368ef5c17279b176 git.kernel.org
- https://git.kernel.org/stable/c/da72e783afd27d9f487836b2e6738146c0edd149 git.kernel.org
- https://git.kernel.org/stable/c/1171ceccabfd596ca370c5d2cbb47d110c3f2fe1 git.kernel.org
- https://git.kernel.org/stable/c/8aa37bde1a7b645816cda8b80df4753ecf172bf1 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
Source: the record CVE-2024-42265 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