Newshot

有人在2026年9月报告了java4shell漏洞

Translation(model translation, not the source's own text)

文章标题:有人在 2026 年 9 月报告了 java4shell 漏洞

正文:

题图
题图

在 StubGenerator::generate_base64_decodeBlock()(x86_64 AVX-512 VBMI 路径)中,L_finalBit 使用一段带掩码的向量序列处理 1-63 个剩余字节,并计算 output_size = (len/4)*3。合法输入的长度始终是 4 的倍数,因此该缺陷只会在非法输入下触发:当长度 < 4 时(例如 "A".repeat(64)+"=" 在 L_process64Loop 之后剩下 1 个字节),output_size 从 0 开始,而填充路径会将其减到零以下,产生错误的 output_mask。该 stub 在返回 Java 之前就写入了超出逻辑输出长度的位置,破坏了堆内存。

建议的修复方案是:如果 length < 4,就提前返回 Java。

  • 我确认,本次贡献符合 OpenJDK Interim AI Policy。

Progress

  • 变更不得包含多余空白
  • 提交信息必须引用某个 issue
  • 变更必须经过适当评审(需要 2 个评审,其中至少 1 个 Reviewer、1 个 Author)

Integration blocker

⚠️ 无法获取 issue 8392044 的信息。请确认该 issue 存在且可访问。

Issue

  • ⚠️ 无法获取 issue 8392044 的信息。

Reviewing

在本地检出此 PR:$ git fetch https://git.openjdk.org/jdk.git pull/32781/head:pull/32781 $ git checkout pull/32781

更新 PR 的本地副本:$ git checkout pull/32781 $ git pull https://git.openjdk.org/jdk.git pull/32781/head

在本地检出此 PR:$ git pr checkout 32781

使用 GUI difftool 查看 PR:$ git pr show -t 32781

将此 PR 下载为 diff 文件:https://git.openjdk.org/jdk/pull/32781.diff

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗