r/ProgrammerHumor • • 11d ago

Meme corporateJavaEneginnersBeLike

Post image
7.9k Upvotes

105 comments sorted by

View all comments

81

u/rang501 11d ago

probably nobody checked <17?

143

u/GreenFox1505 11d ago

With CVEs of almost any severity, root cause down to the commit that introduced it is studied. For something of this severity they need to know if the author of the bug might be malicious and might have been exploiting it the whole time. 

52

u/cutelittlebox 11d ago

if it's the one I saw earlier today it's specific to usage of AVX-512 instructions, which only even started to appear in consumer CPUs in 2018 and 2022. Java 16 was released in 2021 so 17 being the introduction of the bug is pretty believable.

5

u/LufyCZ 11d ago

Servers have had AVX512 for a bit back then though, wouldn't be surprising of Java supported it

13

u/DemonWav 11d ago

The issue isn't just general AVX512 support. It's specific to the AVX512 intrinsic implementation of Base64.devode(). You could say "well this issue may be present elsewhere" and that's true, but this is the only place where the issue has been found and the commit history tells you exactly when this code was added.

4

u/kreyul504 11d ago

Oh they did. I'm more surprised that java versions higher than 8 were checked.

1

u/geek-49 10d ago

The bug was found by an AI at Calif, which was likely probing everything it could get access to.

1

u/geek-49 10d ago

The bug was introduced in a commit during post-17.0 development, so there's no chance of it being in any earlier version. Also the failure path requires that the CPU (on which the JVM is running) support AVX-512, so it cannot exist in any version predating that specific support.

1

u/eXecute_bit 10d ago

Unless it was backported, which Oracle did on at least one specific performance version of their paid-for-support Java 8