{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-42265","id":"CVE-2024-42265","title":"protect the fetch of ->fd[fd] in do_dup2() from mispredictions","description":"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\nsol","descriptionLong":"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.","published":"2024-08-17T08:54:21.636Z","updated":"2026-10-29T11:12:04.602931459Z","reserved":"2024-07-30T07:40:12.259Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"ed42e8ff509d2a61c6642d1825032072dab79f26","status":"affected","versionType":"git"},{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"41a6c31df77bd8e050136b0a200b537da9e1084a","status":"affected","versionType":"git"},{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"08775b3d6ed117cf4518754ec7300ee42b6a5368","status":"affected","versionType":"git"},{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"3f480493550b6a23d3a65d095d6569d4a7f56a0f","status":"affected","versionType":"git"},{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"5db999fff545b924b24c9afd368ef5c17279b176","status":"affected","versionType":"git"},{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"da72e783afd27d9f487836b2e6738146c0edd149","status":"affected","versionType":"git"},{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"1171ceccabfd596ca370c5d2cbb47d110c3f2fe1","status":"affected","versionType":"git"},{"version":"8280d16172243702ed43432f826ca6130edb4086","lessThan":"8aa37bde1a7b645816cda8b80df4753ecf172bf1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.7","status":"affected"},{"version":"0","lessThan":"3.7","status":"unaffected","versionType":"semver"},{"version":"4.19.320","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.282","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.224","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.165","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.104","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.45","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.10.4","lessThanOrEqual":"6.10.*","status":"unaffected","versionType":"semver"},{"version":"6.11","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/ed42e8ff509d2a61c6642d1825032072dab79f26","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/41a6c31df77bd8e050136b0a200b537da9e1084a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/08775b3d6ed117cf4518754ec7300ee42b6a5368","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3f480493550b6a23d3a65d095d6569d4a7f56a0f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5db999fff545b924b24c9afd368ef5c17279b176","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/da72e783afd27d9f487836b2e6738146c0edd149","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1171ceccabfd596ca370c5d2cbb47d110c3f2fe1","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8aa37bde1a7b645816cda8b80df4753ecf172bf1","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42265.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42265","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00281,"epssPercentile":0.20995,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-42265","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42265","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-42265","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-42265","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}