Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw/block/nvme: fix ns attachment out-of-bounds read
nvme_ns_attachment() does not verify the contents of the host-supplied 16 bit "Number of Identifiers" field in the command payload. Make sure the value is capped at 2047 and fix the out-of-bounds read. Fixes: 645ce1a ("hw/block/nvme: support namespace attachment command") Cc: Minwoo Im <[email protected]> Signed-off-by: Klaus Jensen <[email protected]> Reviewed-by: Minwoo Im <[email protected]>
- Loading branch information