CVE-2023-42467

NameCVE-2023-42467
DescriptionQEMU through 8.0.0 could trigger a division by zero in scsi_disk_reset in hw/scsi/scsi-disk.c because scsi_disk_emulate_mode_select does not prevent s->qdev.blocksize from being 256. This stops QEMU and the guest immediately.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1051899

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
qemu (PTS)bullseye1:5.2+dfsg-11+deb11u3fixed
bullseye (security)1:5.2+dfsg-11+deb11u2fixed
bookworm1:7.2+dfsg-7+deb12u7fixed
sid, trixie1:9.1.0+ds-8fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
qemusourcebuster(not affected)
qemusourcebullseye(not affected)
qemusourcebookworm1:7.2+dfsg-7+deb12u3
qemusource(unstable)1:8.1.1+ds-11051899

Notes

[bullseye] - qemu <not-affected> (Vulnerable code introduced later)
[buster] - qemu <not-affected> (Vulnerable code introduced later)
https://gitlab.com/qemu-project/qemu/-/issues/1813
Introduced by: https://gitlab.com/qemu-project/qemu/-/commit/356c4c441ec01910314c5867c680bef80d1dd373 (v7.1.0-rc0)
Introduced by: https://gitlab.com/qemu-project/qemu/-/commit/55794c904df723109b228da28b5db778e0df3110 (v7.1.0-rc2)
Fixed by: https://gitlab.com/qemu-project/qemu/-/commit/7cfcc79b0ab800959716738aff9419f53fc68c9c (v8.2.0-rc0)

Search for package or bug name: Reporting problems