Bug 2264896 (CVE-2024-26328) - CVE-2024-26328 QEMU: NVMe: out-of-bounds memory access in nvme_sriov_pre_write_ctrl()
Summary: CVE-2024-26328 QEMU: NVMe: out-of-bounds memory access in nvme_sriov_pre_writ...
Keywords:
Status: NEW
Alias: CVE-2024-26328
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2264898
Blocks: 2264850
TreeView+ depends on / blocked
 
Reported: 2024-02-19 15:24 UTC by Mauro Matteo Cascella
Modified: 2024-05-31 11:11 UTC (History)
12 users (show)

Fixed In Version: qemu-kvm 9.0.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the NVMe emulation support of QEMU. The register_vfs() function in hw/pci/pcie_sriov.c does not set NumVFs to PCI_SRIOV_TOTAL_VF, causing the interaction with hw/nvme/ctrl.c to be mishandled. This issue could lead to out-of-bounds memory access in hw/nvme. This flaw allows a malicious guest to crash QEMU and cause a denial of service condition.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2024-02-19 15:24:47 UTC
An issue was discovered in QEMU 7.1.0 through 8.2.1. The register_vfs() function in hw/pci/pcie_sriov.c does not set NumVFs to PCI_SRIOV_TOTAL_VF, and thus interaction with hw/nvme/ctrl.c is mishandled.

References:
https://lore.kernel.org/all/20240213055345-mutt-send-email-mst%40kernel.org/
https://lore.kernel.org/all/20240218-reuse-v5-1-e4fc1c19b5a9@daynix.com/

Comment 1 Mauro Matteo Cascella 2024-02-19 15:30:08 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 2264898]

Comment 3 Mauro Matteo Cascella 2024-05-31 11:11:56 UTC
Upstream commit:
https://gitlab.com/qemu-project/qemu/-/commit/91bb64a8d2014fda33a81fcf0fce37340f0d3b0c


Note You need to log in before you can comment on or make changes to this bug.