CVE-2024-42265

MEDIUM

Linux Kernel - Speculative Execution Information Leak via Mispredicted fd in do_dup2()

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0028
EPSS Percentile 20.3%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

Status published
Products (27)
linux/Kernel 3.7.0 - 4.19.320linux
linux/Kernel 4.20.0 - 5.4.282linux
linux/Kernel 5.11.0 - 5.15.165linux
linux/Kernel 5.16.0 - 6.1.104linux
linux/Kernel 5.5.0 - 5.10.224linux
linux/Kernel 6.2.0 - 6.6.45linux
linux/Kernel 6.7.0 - 6.10.4linux
Linux/Linux < 3.7
Linux/Linux 3.7
Linux/Linux 4.19.320 - 4.19.*
... and 17 more
Published Aug 17, 2024
Tracked Since Feb 18, 2026