r/linux • • 14d ago

Security KVM vulnerability: a VM read 127 GB of host RAM

https://opnf.sh/news/kvm-vulnerability-cve-2026-99312/?via=reddit

Terra Security's Oren Yomtov had root inside a DigitalOcean Droplet and used it to read about 127 GB of the host server's memory. On a shared host, that memory holds other customers' virtual machines. The KVM vulnerability behind it, CVE-2026-99312, only works on AMD hosts with nested virtualization switched on, which KVM's AMD module does by default.

723 Upvotes

52 comments sorted by

56

u/looncraz 14d ago

Does this bypass AMD's memory encryption technologies? I would imagine they could get to host RAM, but not see other VM content since each VM is encrypted by hardware with a different key and can't even be read by the hypervisor...

39

u/LibMike 14d ago

I don’t think most have memory encryption enabled, it’s more of a niche thing to offer, and requires extra automation to work. I assume it would also break live migrations, which most big companies rely on heavily for maintenance.

13

u/VexingRaven 13d ago

I assume it would also break live migrations, which most big companies rely on heavily for maintenance.

It does not, there are PSP commands to send the key to another system which hypervisors can use during the process of a live migration.

84

u/nertwork 14d ago

Yeah - stuff like this is why strict IOMMU isolation and keeping untrusted workloads off shared hypervisors matters so much ... curious if this ended up being a QEMU device emulation bug or an actual KVM MMU/page-table issue

38

u/monocasa 14d ago

It's a kvm issue.

26

u/nertwork 14d ago

oof kernel side kvm is way nastier time to patch hypervisors

13

u/Sea_Today8613 13d ago

And this is why everybody got pissed when AMD pulled TSME from consumer Ryzen.

4

u/GenericAntagonist 11d ago

Are we hosting critical vms that demand isolation on consumer grade ryzen? That sounds like a bad plan regardless of tsme...

2

u/Sea_Today8613 11d ago

Plenty of people do things like entry-level security research and malware testing on consumer-grade ryzen.

2

u/onlysubscribedtocats 8d ago

Hetzner and OVH in Europe chiefly host servers on consumer-grade hardware.

134

u/[deleted] 14d ago

Couldn't happen to a nicer company

94

u/SelectionDue4287 14d ago

This affects all virtual server providers using AMD hardware and exposing nested virtualisation (which is nice of them if they do, it's useful for users).
So overall - it sucks.

24

u/[deleted] 14d ago

I'm aware and you are right that it's bad for everyone. I just wanted to shit on DO

11

u/SelectionDue4287 14d ago

Got it, yeah, they can pound sand.

35

u/shadowndacorner 14d ago

Also curious what's wrong with DO, assuming this was sarcasm

69

u/[deleted] 14d ago

As another commenter said, it's joining omacom that backs omarchy and contributing $3M in total to it when that money could have been spent SO much better on any other project in the Linux space that genuinely deserves it.

63

u/0riginal-Syn 14d ago

...while ending support for other foss programs that needed it. Even the low cost ones.

-28

u/dacooljamaican 14d ago

Wait so you're mad at them because they're supporting one open source project instead of another you prefer? That's enough to despise them???

31

u/djfdhigkgfIaruflg 14d ago

That money is not going towards making a FOSS project better.

It's just way too exhausting to keep explaining who DHH is and all the horrid shit he does

33

u/OffsetXV 14d ago

Some people would rather the insane amount of money that Omarchy gets go to any of the many actually serious open source projects that exist and are used by millions of people and companies, instead of some racist asshat's vibe coded, vice signaling vanity project that nobody serious will ever touch.

25

u/[deleted] 14d ago

Yes, I do not like them throwing gazillion dollars at some white supremacist fuckface. 

Yes, that is enough to despise them.  

Objectively the vibecoded abomination he liquid defecated out and called "an opinionated Linux distro" that's used by 0,5 people on Earth doesn't deserve this kind of funding. Meanwhile there are tons of projects in the Linux/floss space who deserve it more, for example the mobile Linux projects such as Nura, which is becoming more and more popular.

24

u/Helmic 14d ago

It's not supporting FOSS, it's tech fascist money laundering.

-3

u/natermer 13d ago

This sort of social cancer why it is a terrible idea for any business to support any open source project ever.

8

u/[deleted] 13d ago

Yeah, terrible idea to throw obscene amounts of money at some racist dumbfuck whose vibecoded turd is worth nothing. Newsflash: people don't like favoritism

11

u/loozerr 14d ago

Why is that?

63

u/kirreip 14d ago edited 13d ago

Probably about the finnancing of Omarchy for many thousand instead of the previous 50$ flatpak.

Edit: for 3 millions not thousands.

16

u/ImNotABotScoutsHonor 13d ago

3 million. Not thousands. Millions.

10

u/loozerr 14d ago

Ah - disappointing. I used them for a while like a decade ago.

1

u/This_Proxy 10d ago

Never used their services, but we null route a good chunk of their CIDR ranges from constant abuse.

36

u/yawara25 14d ago

I'm not an expert, but isn't this somewhat irresponsible to do without coordinating with DO first?

50

u/AtlanticPortal 14d ago

You coordinate with who develops KVM, which is the Linux maintainers.

45

u/yawara25 14d ago

And test it on someone else's live infrastructure?

42

u/shroddy 14d ago

In the past: I only test on production

These days: I only test on someone else production

9

u/pixel_gaming579 13d ago

“The cloud is just someone else’s prod”

1

u/calinet6 11d ago

Cloud VPS providers are a dime a dozen, it means nothing special that it’s DO.

3

u/guillaje 13d ago

What are the use cases of nested virtualization ?

5

u/DandyPandy 13d ago

I once worked on the team that started the Trove OpenStack project. Devs needed to be able to run OpenStack Nova underneath Trove to spin up KVM VMs in order for Trove to do its thing. So devs had VMs on their local machines that would spin up VMs inside the VM. It ran like crap under VirtualBox, VMWare workstation was expensive, and the devs’ laptops were getting resource constrained. We worked for a hosting/cloud provider, so they told everyone to just spin up instances in our public cloud. The test VMs inside the cloud VMs performed significantly better because they didn’t have to go through an emulation layer.

8

u/lunar_blanket 13d ago edited 13d ago

You want /dev/kvm (in my case, for microvms) but you don't want to pay for the whole machine.

Vibecoding and shitty companies disregarding any risk associated with it (best if prompted by newly empowered business people) has completely changed the threat model, at least mine. These people prompt in ways that can make even the super safe (/s) Opus give your infra a free pentest.

4

u/PerspectiveMain6454 13d ago

If a company has rules and procedure for VM creation, and you need to mess with a couple of a VMs, it's sometimes easier to get a single VM made on the host and then nest.

It also gives you networking freedom.

4

u/Takeoded 13d ago

Bare metal is expensive. My bare metal server run several virtual servers, including experimental dev boxes. The dev boxes needs their own VMs occasionally for testing/development

3

u/natermer 13d ago

run VMs in VMs.

2

u/adoodle83 13d ago

in a prod scenario? not many that are well justified.

2

u/Literallyapig 13d ago

if you're renting and whatever you're doing isn't prod-grade, running microvms on a vps since it's cheaper than renting bare metal. but regardless, i don't think nested virtualization is stable enough for that lol.

2

u/papageek 11d ago

I use it for running podman on too of firecracker microvms

3

u/natermer 13d ago

Redhat's article on it is easier to consume: https://access.redhat.com/security/cve/cve-2026-99312

7

u/SoilMassive6850 14d ago

That sounds illegal.

7

u/yrro 13d ago

If the researcher read the contents of other VMs without permission from the data controllers who owned these VMs then it is illegal. If they did it without permission from DigitalOcean then it is also illegal.

If they arranged for DigitalOcean to set up a test hypervisor with some sample workloads to stand in for customer VMs for the purpose of demonstrating the exploit then it's all fine.

4

u/spyingwind 12d ago

Always get permission before penetrating.

7

u/GradeSalad 14d ago

they're researchers and this was disclosed when it was found. It's only become public as of the 18th. The fact this has a CVE means it wasn't illegal, this is how security research is done.

8

u/SoilMassive6850 13d ago

KVM devs != DO and the customers on the same host?