Bug 2264844 (CVE-2024-26327) - CVE-2024-26327 QEMU: SR-IOV: improper validation of NumVFs leads to buffer overflow
Summary: CVE-2024-26327 QEMU: SR-IOV: improper validation of NumVFs leads to buffer ov...
Keywords:
Status: NEW
Alias: CVE-2024-26327
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2264845
Blocks: 2264850
TreeView+ depends on / blocked
 
Reported: 2024-02-19 09:26 UTC by Mauro Matteo Cascella
Modified: 2024-05-31 11:14 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 SR/IOV emulation support of QEMU. The register_vfs() function in hw/pci/pcie_sriov.c mishandled the situation where a guest writes NumVFs greater than TotalVFs, leading to a buffer overflow in VF (Virtual Function) implementations. 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 09:26:28 UTC
An issue was discovered in QEMU 7.1.0 through 8.2.1. The register_vfs() function in hw/pci/pcie_sriov.c mishandles the situation where a guest writes NumVFs greater than TotalVFs, leading to a buffer overflow in VF implementations.

Reference:
https://lore.kernel.org/all/20240214-reuse-v4-5-89ad093a07f4@daynix.com/

Comment 1 Mauro Matteo Cascella 2024-02-19 09:37:11 UTC
Created qemu tracking bugs for this issue:

Affects: fedora-all [bug 2264845]

Comment 3 Mauro Matteo Cascella 2024-05-31 11:14:10 UTC
Upstream commit:
https://gitlab.com/qemu-project/qemu/-/commit/6081b4243cd64dff1b2cf5b0c215c71e9d7e753b


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