Code Monkey home page Code Monkey logo

Comments (5)

paragonie-scott avatar paragonie-scott commented on June 14, 2024 1

The whole system needs to be protected.

Exactly.

It looks like this was answered in the libsodium repository, so, I'm going to close this issue.

from halite.

paragonie-scott avatar paragonie-scott commented on June 14, 2024

On the surface it would see that the answer to this question is "probably no", however I wonder if the great effort that libsodium has go to, in order to protect memory space; that this library and other libsodium projects are immune or "not as vulnerable" to these types of attacks.

That would be a good answer for the libsodium repo but I think you're right that the answer is "probably no" since the problem exists much lower than a userspace library.

from halite.

jedisct1 avatar jedisct1 commented on June 14, 2024

"A tiny tiny tiny bit". libsodium, even in the stable branch, will try to use the retpoline trick if the compiler supports it (currently only clang, and if the flags to do so doesn't change), to provide some mitigation against CVE-2017-5715.

But this is clearly insufficient. The whole system needs to be protected.

from halite.

scrothers avatar scrothers commented on June 14, 2024

Good call @paragonie-scott, I just asked over in jedisct1/libsodium#659.

I expect all the information here is probably as complete as it can be with current information that's been made available on the internet, so I don't entirely expect any different of an answer.

I would love to see proof of concept code on these issues so we could actually do a real world test.

from halite.

jedisct1 avatar jedisct1 commented on June 14, 2024

Just a followup since I spent the weekend with people working on LLVM and Spectre mitigations.

What requires to be recompiled ia anything that allows untrusted users to execute arbitrary code, or rather, trigger speculative reads to arbitrary memory locations.

The kernel absolutely requires to be protected. Along with web browsers and anything embedding JITs and bytecode interpreters.

Everything else... not so much.

from halite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.