{"id":"CVE-2024-42265","aliases":["CVE-2024-42265"],"related":[],"kind":"vulnerability","state":"published","title":"protect the fetch of ->fd[fd] in do_dup2() from mispredictions","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: proteger la recuperación de -&gt;fd[fd] en do_dup2() de predicciones erróneas; ambos llamadores han verificado que fd no es mayor que -&gt;max_fds; sin embargo, una predicción errónea podría terminar con tofree = fdt-&gt;fd[fd]; siendo ejecutado especulativamente. Eso está mal por las mismas razones por las que está mal en close_fd()/file_close_fd_locked(); se aplica la misma solución: array_index_nospec(fd, fdt-&gt;max_fds) podría diferir de fd solo en caso de ejecución especulativa en una ruta mal prevista.","source":"nvd"}],"published":"2024-08-17T08:54:21.636Z","modified":"2026-10-15T01:18:44.810Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"ed42e8ff509d2a61c6642d1825032072dab79f26","status":"affected"},{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"41a6c31df77bd8e050136b0a200b537da9e1084a","status":"affected"},{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"08775b3d6ed117cf4518754ec7300ee42b6a5368","status":"affected"},{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"3f480493550b6a23d3a65d095d6569d4a7f56a0f","status":"affected"},{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"5db999fff545b924b24c9afd368ef5c17279b176","status":"affected"},{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"da72e783afd27d9f487836b2e6738146c0edd149","status":"affected"},{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"1171ceccabfd596ca370c5d2cbb47d110c3f2fe1","status":"affected"},{"type":"git","introduced":"8280d16172243702ed43432f826ca6130edb4086","fixed":"8aa37bde1a7b645816cda8b80df4753ecf172bf1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.7","status":"unaffected"},{"type":"semver","introduced":"4.19.320","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.282","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.224","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.165","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.104","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.45","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.10.4","lastAffected":"6.10.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.11","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.19.320"},{"status":"affected","introduced":"4.20","fixed":"5.4.282"},{"status":"affected","introduced":"5.5","fixed":"5.10.224"},{"status":"affected","introduced":"5.11","fixed":"5.15.165"},{"status":"affected","introduced":"5.16","fixed":"6.1.104"},{"status":"affected","introduced":"6.2","fixed":"6.6.45"},{"status":"affected","introduced":"6.7","fixed":"6.10.4"},{"status":"affected","version":"6.11"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ed42e8ff509d2a61c6642d1825032072dab79f26","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/41a6c31df77bd8e050136b0a200b537da9e1084a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08775b3d6ed117cf4518754ec7300ee42b6a5368","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f480493550b6a23d3a65d095d6569d4a7f56a0f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5db999fff545b924b24c9afd368ef5c17279b176","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da72e783afd27d9f487836b2e6738146c0edd149","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1171ceccabfd596ca370c5d2cbb47d110c3f2fe1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8aa37bde1a7b645816cda8b80df4753ecf172bf1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:12:30.860Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42265","url":"https://www.cve.org/CVERecord?id=CVE-2024-42265","licence":"CVE Terms of Use","modified":"2026-10-15T00:48:07.974Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42265","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42265","licence":"Public domain","modified":"2026-10-15T01:18:44.810Z"}],"updatedAt":"2026-11-25T22:58:44.455Z","epss":{"score":0.00281,"percentile":0.22155,"date":"2026-12-01T12:00:22.000Z"}}