Virtio-net drivers immune to Nethammer?
Hi I'm a privacy distro maintainer investigating the implications of the newly published nethammer attack [0] on KVM guests particularly the virtio-net drivers. The summary of the paper is that rowhammer can be remotely triggered by feeding susceptible* network driver crafted traffic. This attack can do all kinds of nasty things such as modifying SSL certs on the victim system.
* Susceptible drivers are those relying on Intel CAT, uncached memory or the clflush instruction.
My question is, do virtio-net drivers do any of these things?
***
Quoted 11 lines · procmem
Hi I'm a privacy distro maintainer investigating the implications of the newly published nethammer attack [0] on KVM guests particularly the virtio-net drivers. The summary of the paper is that rowhammer can be remotely triggered by feeding susceptible* network driver crafted traffic. This attack can do all kinds of nasty things such as modifying SSL certs on the victim system.
* Susceptible drivers are those relying on Intel CAT, uncached memory or the clflush instruction.
My question is, do virtio-net drivers do any of these things?
I have CCed Michael Tsirkin and Jason Wang, the virtio maintainers.
Quoted 6 lines
***
Stefan Hajnoczi:
Quoted 8 lines · procmem
Quoted 7 lines
Hi I'm a privacy distro maintainer investigating the implications of the newly published nethammer attack [0] on KVM guests particularly the virtio-net drivers. The summary of the paper is that rowhammer can be remotely triggered by feeding susceptible* network driver crafted traffic. This attack can do all kinds of nasty things such as modifying SSL certs on the victim system.
Quoted 12 lines
Quoted 4 lines
* Susceptible drivers are those relying on Intel CAT, uncached memory or the clflush instruction.
My question is, do virtio-net drivers do any of these things?
I have CCed Michael Tsirkin and Jason Wang, the virtio maintainers.
Quoted 6 lines
***
Thanks :) I thought my message was forgotten
Quoted 17 lines · procmem
Stefan Hajnoczi:
Quoted 14 lines · procmem
Quoted 11 lines
Hi I'm a privacy distro maintainer investigating the implications of the newly published nethammer attack [0] on KVM guests particularly the virtio-net drivers. The summary of the paper is that rowhammer can be remotely triggered by feeding susceptible* network driver crafted traffic. This attack can do all kinds of nasty things such as modifying SSL certs on the victim system.
* Susceptible drivers are those relying on Intel CAT, uncached memory or the clflush instruction.
My question is, do virtio-net drivers do any of these things?
I have CCed Michael Tsirkin and Jason Wang, the virtio maintainers.
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
***
Thanks :) I thought my message was forgotten
I don't think virtio is using either of these.
Linux does support CAT AFAIK but it has nothing to do with virtio.
Signature · 1 line
MST
Quoted 25 lines · * Michael S. Tsirkin ([email protected]) wrote:
Quoted 24 lines · procmem
Stefan Hajnoczi:
Quoted 20 lines · procmem
Quoted 11 lines
Hi I'm a privacy distro maintainer investigating the implications of the newly published nethammer attack [0] on KVM guests particularly the virtio-net drivers. The summary of the paper is that rowhammer can be remotely triggered by feeding susceptible* network driver crafted traffic. This attack can do all kinds of nasty things such as modifying SSL certs on the victim system.
* Susceptible drivers are those relying on Intel CAT, uncached memory or the clflush instruction.
My question is, do virtio-net drivers do any of these things?
I have CCed Michael Tsirkin and Jason Wang, the virtio maintainers.
Quoted 6 lines
***
Quoted 6 lines
Quoted 1 line
Thanks :) I thought my message was forgotten
I don't think virtio is using either of these.
Linux does support CAT AFAIK but it has nothing to do with virtio.
Isn't the idea to misuse CAT to detect something about access patterns; so it's not about it actually being related?
Dave
Quoted 3 lines
Signature · 1 line
MST
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Dr. David Alan Gilbert:
Quoted 2 lines
Isn't the idea to misuse CAT to detect something about access patterns; so it's not about it actually being related?
AFAICT, CAT is directly responsible since the way it interacts with the cache allows it to introduce predictable bit flips that can wreak all kinds of havoc.
Michael S. Tsirkin:
Quoted 25 lines · procmem
Quoted 24 lines
Stefan Hajnoczi:
Quoted 20 lines · procmem
Quoted 11 lines
Hi I'm a privacy distro maintainer investigating the implications of the newly published nethammer attack [0] on KVM guests particularly the virtio-net drivers. The summary of the paper is that rowhammer can be remotely triggered by feeding susceptible* network driver crafted traffic. This attack can do all kinds of nasty things such as modifying SSL certs on the victim system.
* Susceptible drivers are those relying on Intel CAT, uncached memory or the clflush instruction.
My question is, do virtio-net drivers do any of these things?
I have CCed Michael Tsirkin and Jason Wang, the virtio maintainers.
Quoted 6 lines
***
Quoted 7 lines
Quoted 1 line
Thanks :) I thought my message was forgotten
I don't think virtio is using either of these.
Linux does support CAT AFAIK but it has nothing to do with virtio.
Thanks for confirming. This is good news indeed. I am considering posting about this to kernel-hardening so it's on the sec team's radar when considering upstream network drivers. What do you think?
Quoted 31 lines · procmem
Michael S. Tsirkin:
Quoted 28 lines · procmem
Quoted 25 lines
Stefan Hajnoczi:
Quoted 8 lines · procmem
Quoted 7 lines
Hi I'm a privacy distro maintainer investigating the implications of the newly published nethammer attack [0] on KVM guests particularly the virtio-net drivers. The summary of the paper is that rowhammer can be remotely triggered by feeding susceptible* network driver crafted traffic. This attack can do all kinds of nasty things such as modifying SSL certs on the victim system.
Quoted 12 lines
Quoted 4 lines
* Susceptible drivers are those relying on Intel CAT, uncached memory or the clflush instruction.
My question is, do virtio-net drivers do any of these things?
I have CCed Michael Tsirkin and Jason Wang, the virtio maintainers.
Quoted 6 lines
***
Thanks :) I thought my message was forgotten
Quoted 8 lines
Quoted 4 lines
I don't think virtio is using either of these.
Linux does support CAT AFAIK but it has nothing to do with virtio.
Thanks for confirming. This is good news indeed. I am considering posting about this to kernel-hardening so it's on the sec team's radar when considering upstream network drivers. What do you think?
It's up to you but the usefulness of reposting like that will be limited IMHO, unless you have something specific to add.
I think everyone saw the nethammer paper by now, and kernel hardening team doesn't review network driver patches.
Signature · 1 line
MST