logoalt Hacker News

ievans • yesterday at 9:23 PM • 7 replies • view on HN

Super impressive work by Calif as usual.

The exploit conditions are very specific but there are still going to be a lot of hosts impacted. We at Semgrep published some free detection scripts here: https://github.com/semgrep/detection-scripts/tree/main/CVE-2...

They look for these five conditions:

  * HotSpot VM: any OpenJDK build, Oracle JDK, or GraalVM JDK. Only HotSpot generates the stub. OpenJ9 and GCJ are OK. Azul Prime (Zing), which replaces C2 with its own JIT, and any VM name not recognized as HotSpot are [?], never [!].
  * x86-64 JVM on an x86-64 host.
  * Version 17.0.6 or later, not at or above a version listed in FIXED_IN, and no newer than the newest releases checked (see below). Newer versions are [?]: they may carry the fix.
  * The JVM reports avx512_vbmi and avx512bw, and UseAVX >= 3.
  * Base64 intrinsics are on and C2/JVMCI can compile. These turn it off: -XX:-UseBASE64Intrinsics, -XX:DisableIntrinsic=_base64_decodeBlock, -Xint, -XX:TieredStopAtLevel below 4.

Replies

ktm5j • today at 3:19 PM

They mention GraalVM being affected, but it seems like it isn't when I run their PoC:

  kmiles@dora tmp.wdOJ2BRVwa % /opt/graalvm/bin/java Base64Trigger 
  runtime=21.0.5+9-LTS-jvmci-23.1-b48
  vm=Java HotSpot(TM) 64-Bit Server VM
  rejected=true changed=0 first=-1 last=-1
  NOT REPRODUCED
bikezen • yesterday at 10:40 PM

The write-up itself matches your version assumption, however it also says:

> According to Oracle, the following Oracle Java SE versions are vulnerable: 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3. We thank Oracle for providing this information ahead of publication time.

So according to Oracle at least, JRE8 versions are affected as well.

➕ show 1 reply
yburkov • today at 1:07 PM

one note: it means -XX:-UseBASE64Intrinsics OR XX:DisableIntrinsic=_base64_decodeBlock OR -Xint OR -XX:TieredStopAtLevel below 4 (-XX:TieredStopAtLevel=3 and so on)

testtestmetest • today at 12:38 AM

Calif is an OpenAI funded shop..

➕ show 2 replies
bonsai_spool • yesterday at 10:36 PM

This looks like Claudese - may be kind to write such things yourself if you intend for humans to read them. (For example, “ HotSpot VM: any OpenJDK build, Oracle JDK, or GraalVM JDK. Only HotSpot generates the stub. OpenJ9 and GCJ are OK. Azul Prime (Zing), which replaces C2 with its own JIT, and any VM name not recognized as HotSpot are [?], never [!].” — I tried parsing at least five times before realizing you’re asking me to decipher LLM talk)

➕ show 1 reply
cjbprime • yesterday at 10:36 PM

Wouldn't it be prudent for someone to patch even if they aren't running their code on an AVX512 system right this moment? They could be running on one.. next moment.

➕ show 1 reply
sgammon • today at 4:46 AM

Native Image is also unaffected without `-march=native` which is not a default.

➕ show 1 reply