{"id":"CVE-2024-42265","published":"2024-08-17T08:54:21Z","modified":"2026-10-15T00:48:07Z","title":"protect the fetch of ->fd[fd] in do_dup2() from mispredictions","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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 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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00281,"percentile":0.21118,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/ed42e8ff509d2a61c6642d1825032072dab79f26","tags":[]},{"url":"https://git.kernel.org/stable/c/41a6c31df77bd8e050136b0a200b537da9e1084a","tags":[]},{"url":"https://git.kernel.org/stable/c/08775b3d6ed117cf4518754ec7300ee42b6a5368","tags":[]},{"url":"https://git.kernel.org/stable/c/3f480493550b6a23d3a65d095d6569d4a7f56a0f","tags":[]},{"url":"https://git.kernel.org/stable/c/5db999fff545b924b24c9afd368ef5c17279b176","tags":[]},{"url":"https://git.kernel.org/stable/c/da72e783afd27d9f487836b2e6738146c0edd149","tags":[]},{"url":"https://git.kernel.org/stable/c/1171ceccabfd596ca370c5d2cbb47d110c3f2fe1","tags":[]},{"url":"https://git.kernel.org/stable/c/8aa37bde1a7b645816cda8b80df4753ecf172bf1","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[]}],"priority":{"score":4.2,"factors":[{"name":"EPSS percentile","points":4.22}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8280d16172243702ed43432f826ca6130edb4086, < ed42e8ff509d2a61c6642d1825032072dab79f26",">= 8280d16172243702ed43432f826ca6130edb4086, < 41a6c31df77bd8e050136b0a200b537da9e1084a",">= 8280d16172243702ed43432f826ca6130edb4086, < 08775b3d6ed117cf4518754ec7300ee42b6a5368",">= 8280d16172243702ed43432f826ca6130edb4086, < 3f480493550b6a23d3a65d095d6569d4a7f56a0f",">= 8280d16172243702ed43432f826ca6130edb4086, < 5db999fff545b924b24c9afd368ef5c17279b176",">= 8280d16172243702ed43432f826ca6130edb4086, < da72e783afd27d9f487836b2e6738146c0edd149",">= 8280d16172243702ed43432f826ca6130edb4086, < 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1",">= 8280d16172243702ed43432f826ca6130edb4086, < 8aa37bde1a7b645816cda8b80df4753ecf172bf1"]},{"vendor":"Linux","product":"Linux","versions":["3.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:12:30.860612Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-39488","exploited":false,"provenance":"source"}}