CVE-2021-38575: Buffer Overflow
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: https://bugzilla.tianocore.org/showbug.cgi?id=3356
Other sources
NetworkPkg/IScsiDxe has remotely exploitable buffer overflows.
— MITRE
Affected Software
Event History
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).