8.1
CWE
119 124 252 680
Advisory Published
CVE Published
Updated

CVE-2021-38575: Buffer Overflow

First published: Mon May 03 2021(Updated: )

Function IscsiMisc.c:IScsiHexToBin() in NetworkPkg/IScsiDxe does not correctly check the sizes of the input and output buffers, allowing an attacker who can control the input buffer to cause a buffer overflow in the destination buffer. Function IScsiHexToBin is used to decode strings passed as part of iSCSI Challenge-Handshake Authentication Protocol(CHAP), before authentication takes place. Thus an attacker, who can either inject himself in the communication between edk2 and the iSCSI target or control the iSCSI target used by edk2, can trigger this flaw and potentially execute code in the edk2 firmware. Upstream bug: <a href="https://bugzilla.tianocore.org/show_bug.cgi?id=3356">https://bugzilla.tianocore.org/show_bug.cgi?id=3356</a>

Credit: infosec@edk2.groups.io infosec@edk2.groups.io infosec@edk2.groups.io

Affected SoftwareAffected VersionHow to fix
Tianocore EDK2<=202105
Insyde Kernel=5.0
Insyde Kernel=5.1
Insyde Kernel=5.2
Insyde Kernel=5.3
Insyde Kernel=5.4
Insyde Kernel=5.5
debian/edk2<=2020.11-2+deb11u2
2022.11-6+deb12u1
2024.11-5

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the vulnerability ID for this vulnerability?

    The vulnerability ID for this vulnerability is CVE-2021-38575.

  • What is the severity rating of CVE-2021-38575?

    CVE-2021-38575 has a severity rating of 8.1 (high).

  • What software is affected by CVE-2021-38575?

    The affected software includes Tianocore EDK2 versions up to and including May 2021, and Insyde Kernel versions 5.0, 5.1, 5.2, 5.3, 5.4, and 5.5.

  • Are there any fixes or patches available for CVE-2021-38575?

    Yes, there are fixes and patches available. Please refer to the references for more information.

  • What are the common weaknesses associated with CVE-2021-38575?

    The common weaknesses associated with CVE-2021-38575 are CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), CWE-124 (Buffer Underwrite), CWE-252 (Unchecked Return Value), and CWE-680 (Integer Overflow to Buffer Overflow).

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203