logoalt Hacker News

ghm2199 • today at 4:17 PM • 2 replies • view on HN

Perhaps its time to eclipse JIT + heap based complex memory allocation algorithm runtimes like java? Now that AI can port code to other safer/better systems like rust. The "simpler" the memory management system is the easier it is to harden against such attacks.

This attack is pretty insane to me for a couple of reasons. That intrinsic implementation is compiler/runtime dependent. There are many implementations of JVMs out there that could be vulnerable.

The other scary thing is that there are likely other intrinsic implementations which hide vulnerabilities that are hard to know without further research.


Replies

samus • today at 5:07 PM

This has nothing to do with having a managed runtime. It is a built-in library with hand-written assembly in a performance-critical section and therefore this could have happened to any other language with battery included as well. And indeed we should closely scrutinize other instances of hand-written assembly code. However, this specific bug us restricted to OpenJDK-derived JVMs that run on AVX512-capable CPUs.

quatrevingts • today at 5:23 PM

But this is a vulnerability in native hand-written assembly. It's no different than using "unsafe" in Rust.