Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-42265

MEDIUM 5.5EPSS 23%

protect the fetch of ->fd[fd] in do_dup2() from mispredictions

Mitigation

  • Upgrade Linux to 8aa37bde1a7b645816cda8b80df4753ecf172bf1 or later.

Who should check

  • Anyone running Linux >= 8280d16172243702ed43432f826ca6130edb4086, < ed42e8ff509d2a61c6642d1825032072dab79f26; >= 8280d16172243702ed43432f826ca6130edb4086, < 41a6c31df77bd8e050136b0a200b537da9e1084a; >= 8280d16172243702ed43432f826ca6130edb4086, < 08775b3d6ed117cf4518754ec7300ee42b6a5368; >= 8280d16172243702ed43432f826ca6130edb4086, < 3f480493550b6a23d3a65d095d6569d4a7f56a0f; >= 8280d16172243702ed43432f826ca6130edb4086, < 5db999fff545b924b24c9afd368ef5c17279b176; >= 8280d16172243702ed43432f826ca6130edb4086, < da72e783afd27d9f487836b2e6738146c0edd149; >= 8280d16172243702ed43432f826ca6130edb4086, < 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1; >= 8280d16172243702ed43432f826ca6130edb4086, < 8aa37bde1a7b645816cda8b80df4753ecf172bf1
  • Anyone running Linux 3.7

Vulnerability facts

Affected
Linux >= 8280d16172243702ed43432f826ca6130edb4086, < ed42e8ff509d2a61c6642d1825032072dab79f26; >= 8280d16172243702ed43432f826ca6130edb4086, < 41a6c31df77bd8e050136b0a200b537da9e1084a; >= 8280d16172243702ed43432f826ca6130edb4086, < 08775b3d6ed117cf4518754ec7300ee42b6a5368; >= 8280d16172243702ed43432f826ca6130edb4086, < 3f480493550b6a23d3a65d095d6569d4a7f56a0f; >= 8280d16172243702ed43432f826ca6130edb4086, < 5db999fff545b924b24c9afd368ef5c17279b176; >= 8280d16172243702ed43432f826ca6130edb4086, < da72e783afd27d9f487836b2e6738146c0edd149; >= 8280d16172243702ed43432f826ca6130edb4086, < 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1; >= 8280d16172243702ed43432f826ca6130edb4086, < 8aa37bde1a7b645816cda8b80df4753ecf172bf1; Linux 3.7
Fixed in
Linux 41a6c31df77bd8e050136b0a200b537da9e1084a, Linux 08775b3d6ed117cf4518754ec7300ee42b6a5368, Linux 3f480493550b6a23d3a65d095d6569d4a7f56a0f, Linux 5db999fff545b924b24c9afd368ef5c17279b176, Linux 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1, Linux 8aa37bde1a7b645816cda8b80df4753ecf172bf1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.36% chance of exploitation in 30 days (percentile 23, 2026-11-26)
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 8280d16172243702ed43432f826ca6130edb4086, < ed42e8ff509d2a61c6642d1825032072dab79f26; >= 8280d16172243702ed43432f826ca6130edb4086, < 41a6c31df77bd8e050136b0a200b537da9e1084a; >= 8280d16172243702ed43432f826ca6130edb4086, < 08775b3d6ed117cf4518754ec7300ee42b6a5368; >= 8280d16172243702ed43432f826ca6130edb4086, < 3f480493550b6a23d3a65d095d6569d4a7f56a0f; >= 8280d16172243702ed43432f826ca6130edb4086, < 5db999fff545b924b24c9afd368ef5c17279b176; >= 8280d16172243702ed43432f826ca6130edb4086, < da72e783afd27d9f487836b2e6738146c0edd149; >= 8280d16172243702ed43432f826ca6130edb4086, < 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1; >= 8280d16172243702ed43432f826ca6130edb4086, < 8aa37bde1a7b645816cda8b80df4753ecf172bf1—cvelist
Linux3.7—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-42265. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42265.md
Affected: Linux >= 8280d16172243702ed43432f826ca6130edb4086, < ed42e8ff509d2a61c6642d1825032072dab79f26; >= 8280d16172243702ed43432f826ca6130edb4086, < 41a6c31df77bd8e050136b0a200b537da9e1084a; >= 8280d16172243702ed43432f826ca6130edb4086, < 08775b3d6ed117cf4518754ec7300ee42b6a5368; >= 8280d16172243702ed43432…
Fixed in: Linux 41a6c31df77bd8e050136b0a200b537da9e1084a, Linux 08775b3d6ed117cf4518754ec7300ee42b6a5368, Linux 3f480493550b6a23d3a65d095d6569d4a7f56a0f, Linux 5db999fff545b924b24c9afd368ef5c17279b176, Linux 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1, Linux 8aa37bde1a7b645816cda8b80df4753ecf172bf1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-42265 being exploited?

There is no confirmed exploitation: CVE-2024-42265 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.36% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-42265?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-42265?

Linux >= 8280d16172243702ed43432f826ca6130edb4086, < ed42e8ff509d2a61c6642d1825032072dab79f26; >= 8280d16172243702ed43432f826ca6130edb4086, < 41a6c31df77bd8e050136b0a200b537da9e1084a; >= 8280d16172243702ed43432f826ca6130edb4086, < 08775b3d6ed117cf4518754ec7300ee42b6a5368; >= 8280d16172243702ed43432f826ca6130edb4086, < 3f480493550b6a23d3a65d095d6569d4a7f56a0f; >= 8280d16172243702ed43432f826ca6130edb4086, < 5db999fff545b924b24c9afd368ef5c17279b176; >= 8280d16172243702ed43432f826ca6130edb4086, < da72e783afd27d9f487836b2e6738146c0edd149; >= 8280d16172243702ed43432f826ca6130edb4086, < 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1; >= 8280d16172243702ed43432f826ca6130edb4086, < 8aa37bde1a7b645816cda8b80df4753ecf172bf1; Linux 3.7.

Is there a fix for CVE-2024-42265?

Yes. Fixed in Linux 41a6c31df77bd8e050136b0a200b537da9e1084a, Linux 08775b3d6ed117cf4518754ec7300ee42b6a5368, Linux 3f480493550b6a23d3a65d095d6569d4a7f56a0f, Linux 5db999fff545b924b24c9afd368ef5c17279b176, Linux 1171ceccabfd596ca370c5d2cbb47d110c3f2fe1, Linux 8aa37bde1a7b645816cda8b80df4753ecf172bf1. Upgrade Linux to 8aa37bde1a7b645816cda8b80df4753ecf172bf1 or later.

How do I check if I'm affected by CVE-2024-42265?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors