{"id":"CVE-2024-42265","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nprotect the fetch of ->fd[fd] in do_dup2() from mispredictions\n\nboth callers have verified that fd is not greater than ->max_fds;\nhowever, misprediction might end up wi…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nprotect the fetch of ->fd[fd] in do_dup2() from mispredictions\n\nboth callers have verified that fd is not greater than ->max_fds;\nhowever, misprediction might end up wi…","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","vendor":"linux","product":"linux_kernel","affected":["linux_kernel < 4.19.320","linux_kernel >= 4.20, < 5.4.282","linux_kernel >= 5.5, < 5.10.224","linux_kernel >= 5.11, < 5.15.165","linux_kernel >= 5.16, < 6.1.104","linux_kernel >= 6.2, < 6.6.45","linux_kernel >= 6.7, < 6.10.4","linux_kernel = 6.11"],"patched":["linux_kernel 6.10.4"],"published":"2024-08-17","updated":"2026-10-15","sourceUpdated":"2026-10-15T01:18:44.810","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-42265","references":[{"url":"https://git.kernel.org/stable/c/08775b3d6ed117cf4518754ec7300ee42b6a5368","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/1171ceccabfd596ca370c5d2cbb47d110c3f2fe1","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/3f480493550b6a23d3a65d095d6569d4a7f56a0f","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/41a6c31df77bd8e050136b0a200b537da9e1084a","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5db999fff545b924b24c9afd368ef5c17279b176","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8aa37bde1a7b645816cda8b80df4753ecf172bf1","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/da72e783afd27d9f487836b2e6738146c0edd149","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ed42e8ff509d2a61c6642d1825032072dab79f26","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd","cve.org"],"epss":0.00279,"epssPercentile":0.20234,"ingestedAt":"2026-10-15T03:30:12.731Z","ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:12:30.860612Z"},"slug":"CVE-2024-42265","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nprotect the fetch of ->fd[fd] in do_dup2() from mispredictions\n\nboth callers have verified that fd is not greater than ->max_fds;\nhowever, misprediction might end up with\n        tofree = fdt->fd[fd];\nbeing speculatively executed.  That's wrong for the same reasons\nwhy it's wrong in close_fd()/file_close_fd_locked(); the same\nsolution applies - array_index_nospec(fd, fdt->max_fds) could differ\nfrom fd only in case of speculative execution on mispredicted path.\n\n## Affected\n\n- `linux_kernel < 4.19.320`\n- `linux_kernel >= 4.20, < 5.4.282`\n- `linux_kernel >= 5.5, < 5.10.224`\n- `linux_kernel >= 5.11, < 5.15.165`\n- `linux_kernel >= 5.16, < 6.1.104`\n- `linux_kernel >= 6.2, < 6.6.45`\n- `linux_kernel >= 6.7, < 6.10.4`\n- `linux_kernel = 6.11`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 6.10.4`","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}