summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2026-10-17 00:44:42 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-22 00:53:42 +0300
commit7250fc9e3941e2899ab72ee7f30267c78615c7d3 (patch)
tree6d7ef4471c4f80b1f5029b069ee7123c4443bc0d /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c
parent19bca85619073be97bf8c29f4511e6a78c7ed388 (diff)
downloadedk2-7250fc9e3941e2899ab72ee7f30267c78615c7d3.tar.xz
MdeModulePkg/UsbBusDxe: Guard descriptor on SS retry
UsbEnumerateNewDev() frees DevDesc before resetting the port for an enumeration retry. UsbRootHubResetPort() scans that device during the reset and previously dereferenced DevDesc without checking it. For a SuperSpeed-capable device running below SuperSpeed, IsSSDev and Speed still satisfy the scan's preceding conditions after DevDesc is cleared. The DeviceClass access can therefore cause a null-pointer exception. Add descriptor checks before those dereferences and clear IsSSDev when freeing the descriptor. The unsafe reset dereference was introduced by PR #12714: https://github.com/tianocore/edk2/pull/12714 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c')
0 files changed, 0 insertions, 0 deletions