vhost: fix used ring index wrap in vhost_add_used_n_in_order
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: vhost: fix used ring index wrap in vhost_add_used_n_in_order vhost_add_used_n_in_order() advances start by nheads[i] but wraps it with a single subtraction. If start + nheads[i] >= 2 * vq->num, start can remain outside the ring. With used-ring logging enabled, start > vq->num makes (vq->num - start) underflow. log_write() then sets bits beyond the dirty-log bitmap, potentially corrupting adjacent userspace memory. This is reachable on the vhost-net TX path with VIRTIO_F_IN_ORDER: done_idx can reach VHOST_NET_BATCH (64), triggering the issue with a 32-entry ring. Wrap start with a mask to keep it within the ring. VHOST_SET_VRING_NUM enforces a nonzero power-of-two ring size, allowing start to be wrapped using & (vq->num - 1).
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 67a873df0c410915275f735fedb401b9637d6faf, before ebdc350cfb1740b6411420482e58a35cc4761628; from 67a873df0c410915275f735fedb401b9637d6faf, before 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0; from 67a873df0c410915275f735fedb401b9637d6faf, before e244725e86be02cd85cb878b3ed8570eba2e4be1 | ebdc350cfb1740b6411420482e58a35cc4761628; 308e148cf771ed36ad8cd7ef0e9bee2f7ec478d0; e244725e86be02cd85cb878b3ed8570eba2e4be1 |
| Linux Linux | Software | 6.17 | not recorded |
The 7.8 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 | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Changed | The attacker can get beyond the vulnerable program and affect other parts of the system. |
| 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 | 1.1 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 6.0 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 3 sources for this flaw, none tagged as a vendor patch.