Description
kvmtool through 39181fc allows an out-of-bounds write, related to virtio/balloon.c and virtio/pci.c. This allows a guest OS user to execute arbitrary code on the host machine.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | kvmtool | 0.20170904-1.1ubuntu0.1~esm2 | — |
| Ubuntu Pro 20.04 LTS | kvmtool | 0.20170904-1ubuntu0.20.04.1~esm1 | — |
| Ubuntu Pro 18.04 LTS | kvmtool | 0.20170904-1ubuntu0.18.04.1~esm1 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | kvmtool | 0.20151104-1ubuntu0.1~esm1 | — |
References
- https://cdn.discordapp.com/attachments/921419715170164776/921882173517230100/exploit.c
- https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git/log/
- https://www.kalmarunionen.dk/writeups/2021/hxp-2021/lkvm/
- https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git/commit/?id=39181fc6429f4e9e71473284940e35857b42772a