CVE-2024-42265 protect the fetch of ->fd[fd] in do_dup2() from mispredictions
Speculative execution in do_dup2() may leak kernel memory contents, requiring a patch to mitigate side-channel attacks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42265?
CVE-2024-42265 is a medium-severity vulnerability in Linux kernel, published on 17 Aug 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-42265?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42265?
Apply the vendor's patch.
Is CVE-2024-42265 being exploited?
There is no known exploitation of CVE-2024-42265 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-42265, DEBIAN-CVE-2024-42265, GHSA-9v94-8833-hv33, UBUNTU-CVE-2024-42265.