Lobsters | 📄 原文链接 | 2026-10-23 收录

musl 的 regcomp 整数溢出:被正则表达式本身撑爆的堆写

来源:openwall.com — 2026-10-21

📋 概述

Rich Felker 在 oss-security 公布 CVE-2026-107891:musl libc 的 regcomp 存在多处整数溢出,会导致分配尺寸算错,进而可能越界写堆。触发条件取决于传给 regcomp 的正则表达式的大小与复杂度,而不是被匹配的数据——也就是说,只要应用用 libc 的 regcomp 处理来自不可信来源的正则,就中招。问题从 0.5.0 一直存在到 1.2.6,最低影响是可预测的崩溃,视应用情况也可能被利用执行任意代码。

🔑 核心要点

💡 金句

The conditions for overflow are triggered by the size and complexity of the regular expression passed to regcomp, not the data to be matched.
← 返回 Lobsters 首页