CVE-2026-9238
Public on 2026-07-29
Modified on 2026-07-29
Description
In QEMU's 9pfs (virtio-9p) implementation, the v9fs_readdir() function does not properly constrain the memory allocation size for Treaddir responses. A guest client can send a
Treaddir request with a large 'count' parameter, and while the negotiated 'msize' provides some limit, a malicious privileged guest could negotiate a large 'msize' but provide a
small reply buffer, causing QEMU to allocate host memory proportional to 'msize' before discovering the reply cannot fit. This can lead to excessive host memory allocation for
crafted large directories, resulting in the transport device being marked as "broken" (disconnecting guest communication) while the QEMU process continues running with a potentially
large unreleased host memory allocation, negatively impacting other services on the host. This vulnerability has existed since QEMU v5.2.0-rc0 and is fixed in v11.0.3 and v10.0.12.
Treaddir request with a large 'count' parameter, and while the negotiated 'msize' provides some limit, a malicious privileged guest could negotiate a large 'msize' but provide a
small reply buffer, causing QEMU to allocate host memory proportional to 'msize' before discovering the reply cannot fit. This can lead to excessive host memory allocation for
crafted large directories, resulting in the transport device being marked as "broken" (disconnecting guest communication) while the QEMU process continues running with a potentially
large unreleased host memory allocation, negatively impacting other services on the host. This vulnerability has existed since QEMU v5.2.0-rc0 and is fixed in v11.0.3 and v10.0.12.
Severity
See what this means
CVSS v3 Base Score
See breakdown
Affected Packages
| Platform | Package | Release Date | Advisory | Status |
|---|---|---|---|---|
| Amazon Linux 2 - Core | qemu | Not Affected | ||
| Amazon Linux 2023 | qemu | Not Affected | ||
| Amazon Linux 2 - Core | qemu-guest-agent | Not Affected | ||
| Amazon Linux 2 - Core | qemu-kvm | Not Affected |
CVSS Scores
| Score Type | Score | Vector | |
|---|---|---|---|
| Amazon Linux | CVSSv3 | 3.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L |