CVE-2024-42265: protect the fetch of ->fd[fd] in do_dup2() from mispredictions

Published Aug 17, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

both callers have verified that fd is not greater than ->maxfds; 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 closefd()/fileclosefdlocked(); the same solution applies - arrayindexnospec(fd, fdt->maxfds) could differ from fd only in case of speculative execution on mispredicted path.

Other sources

Linux Kernel is vulnerable to a denial of service, caused by the failure to protect the fetch of ->fd[fd] in dodup2() from mispredictions. A local authenticated attacker could exploit this vulnerability to cause a denial of service.

IBM

Affected Software

14 affected componentsFixes available
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
debian/linux<=5.10.223-1
5.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1
Linux Linux kernel<4.19.320
Linux Linux kernel>=4.20<5.4.282
Linux Linux kernel>=5.5<5.10.224
Linux Linux kernel>=5.11<5.15.165
Linux Linux kernel>=5.16<6.1.104
Linux Linux kernel>=6.2<6.6.45
Linux Linux kernel>=6.7<6.10.4
Linux Linux kernel=6.11-rc1

Event History

Aug 17, 2024
CVE Published
via MITRE·08:54 AM
Data Sourced
via MITRE·08:54 AM
Description
Data Sourced
via NVD·09:15 AM
Description
Data Sourced
via NVD·09:15 AM
RemedySeverityAffected Software
Apr 27, 2025
Data Sourced
via Ubuntu·12:34 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-42265?

CVE-2024-42265 has a severity rating that indicates it could potentially lead to a denial of service or compromise of system integrity based on its exploitation.

2

How do I fix CVE-2024-42265?

To fix CVE-2024-42265, update your Linux kernel to version 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, 6.12.11-1, or the specific patched version provided by your distribution.

3

What systems are affected by CVE-2024-42265?

CVE-2024-42265 affects specific versions of the Linux kernel, particularly those below version 5.10.226-1 and certain 6.x series versions as listed.

4

What is the nature of the vulnerability CVE-2024-42265?

CVE-2024-42265 is a flaw in the Linux kernel specifically related to the handling of file descriptors in the do_dup2() function.

5

Is there a workaround for CVE-2024-42265 if I cannot apply the fix?

While a definitive workaround may not be available, it's generally advised to minimize exposure by implementing strict access controls and monitoring systems for unusual behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203