iommu/virtio: Reset device before deleting virtqueues on probe failure
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: iommu/virtio: Reset device before deleting virtqueues on probe failure viommu_probe() marks the device DRIVER_OK before populating the event virtqueue and registering the IOMMU device in sysfs. viommu_fill_evtq() hands the device a set of device-writable buffers through virtqueue_add_inbuf(), so from that point on the device may write into them and into the rings. If either step fails, the error path deletes the virtqueues without resetting the device first. The event buffers are allocated with devm_kmalloc_array() and are released as probe unwinds, so the device can go on writing to memory that has been freed. Reset the device before deleting the virtqueues, the way viommu_remove() already does.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from edcd69ab9a323b7ac7a86e1c44b6c9c46598391f, before 5b1669ec2d6bd3d0958e81f212a7149a6fb042d9; from edcd69ab9a323b7ac7a86e1c44b6c9c46598391f, before ffcc07d4a69dd7cf2f50e7b8418145ec7596ff53; from edcd69ab9a323b7ac7a86e1c44b6c9c46598391f, before 0d809d701cd4bd789b6c1313ea08778bc8e5d6de; from edcd69ab9a323b7ac7a86e1c44b6c9c46598391f, before d16eda7b2832d23423d84fe6fa50908bd5d2a15d; from edcd69ab9a323b7ac7a86e1c44b6c9c46598391f, before e09d65fd554b78c7277f6379517c773ff36d55d1; from edcd69ab9a323b7ac7a86e1c44b6c9c46598391f, before e60e6db9d07b2ebaff2e055a086fa8e8d14f565c; and 2 more | 5b1669ec2d6bd3d0958e81f212a7149a6fb042d9; ffcc07d4a69dd7cf2f50e7b8418145ec7596ff53; 0d809d701cd4bd789b6c1313ea08778bc8e5d6de; d16eda7b2832d23423d84fe6fa50908bd5d2a15d |
| Linux Linux | Software | 5.3 | not recorded |
The 8.4 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 2.5 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.