Bug 2140567 (CVE-2022-3872) - CVE-2022-3872 QEMU: sdhci: buffer data port register off-by-one read/write
Summary: CVE-2022-3872 QEMU: sdhci: buffer data port register off-by-one read/write
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2022-3872
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
: 2083064 (view as bug list)
Depends On: 2140584 2140585
Blocks: 2087158
TreeView+ depends on / blocked
 
Reported: 2022-11-07 09:33 UTC by Mauro Matteo Cascella
Modified: 2023-01-02 11:29 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
An off-by-one read/write issue was found in the SDHCI device of QEMU. It occurs when reading/writing the Buffer Data Port Register in sdhci_read_dataport and sdhci_write_dataport, respectively, if data_count == block_size. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service condition.
Clone Of:
Environment:
Last Closed: 2022-12-04 09:02:54 UTC


Attachments (Terms of Use)

Description Mauro Matteo Cascella 2022-11-07 09:33:47 UTC
An off-by-one read/write issue was found in the SDHCI device of QEMU. It occurs when reading/writing the Buffer Data Port Register in sdhci_read_dataport and sdhci_write_dataport, respectively, if data_count == block_size. A malicious guest could use this flaw to crash the QEMU process on the host, resulting in a denial of service condition.

Comment 1 Mauro Matteo Cascella 2022-11-07 10:16:32 UTC
Created qemu tracking bugs for this issue:

Affects: epel-all [bug 2140585]
Affects: fedora-all [bug 2140584]

Comment 2 Mauro Matteo Cascella 2022-11-07 11:16:16 UTC
*** Bug 2083064 has been marked as a duplicate of this bug. ***

Comment 3 Mauro Matteo Cascella 2022-11-07 11:18:31 UTC
Proposed patch:
https://lists.nongnu.org/archive/html/qemu-devel/2022-11/msg01068.html

Comment 4 Mauro Matteo Cascella 2022-11-08 09:19:16 UTC
(better) patch by Philippe Mathieu-Daudé:
https://lists.nongnu.org/archive/html/qemu-devel/2022-11/msg01161.html

Comment 5 Product Security DevOps Team 2022-12-04 09:02:52 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2022-3872

Comment 6 Mauro Matteo Cascella 2023-01-02 11:29:36 UTC
Not yet merged upstream due to a CI failure:
https://lists.nongnu.org/archive/html/qemu-devel/2022-11/msg01504.html


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