summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2026-10-17 00:45:03 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-10-22 00:53:42 +0300
commitbf25b6e4017b120decd2bb97384a8f319ba4303e (patch)
tree284b1ce311b57c5e769404351ec00332b543894a /MdeModulePkg/Library/PiDxeS3BootScriptLib/InternalBootScriptLib.h
parent7250fc9e3941e2899ab72ee7f30267c78615c7d3 (diff)
downloadedk2-bf25b6e4017b120decd2bb97384a8f319ba4303e.tar.xz
MdeModulePkg/UsbBusDxe: Bound BOS capability parsing
UsbIsSSDevice() trusts device-reported NumDeviceCaps and capability Length fields without bounding reads to the BOS buffer. Malformed values can cause out-of-bounds reads and an exception during device enumeration. Validate the BOS header and total length. Before reading each capability, check that its header and declared length fit in the remaining bytes. Reject malformed or truncated descriptors and recognize SuperSpeed only after validating the complete capability list. The unbounded parser 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/InternalBootScriptLib.h')
0 files changed, 0 insertions, 0 deletions