CVE-2024-42265
protect the fetch of ->fd[fd] in do_dup2() from mispredictions
Reported by linux · Published August 17, 2024
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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 8280d16172243702ed43432f826ca6130edb4086, 8280d16172243702ed43432f826ca6130edb4086, 8280d16172243702ed43432f826ca6130edb4086 |
| Linux | Linux | 3.7, 0, 4.19.320 |
| linux | linux_kernel | 3.7, 3.7, 3.7 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| Linux | Linux | 5.4.282, 5.15.165, 6.1.104 |
Timeline
- Aug 17, 2024 CVE Published
- Aug 18, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (16 in total, the first dated here)
- Jan 6, 2025 CVE Updated
- Dec 2, 2025 PoC Published (3 in total, the first dated here)
- Jan 6, 2026 Security Advisory (152 in total, the first dated here)
- Mar 30, 2026 Distribution Patch (138 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-42265
vulnetix vdb fixes CVE-2024-42265
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-42265/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart