Open
fix(cve): 修复 CVE-2026-111166 在 libmikmod 中的漏洞 #51
fix(cve): 修复 CVE-2026-111166 在 libmikmod 中的漏洞 #51
Open
ljtianAdd on 2 days ago
ljtian
2 days ago

修复内容

回移植上游对 CVE-2026-111166(libmikmod IMF 加载器堆越界读)的修复到 openEuler-24.03-LTS-SP4(3.3.11.1)。

漏洞点

loaders/load_imf.c 中按音符 t 遍历的内层循环,在 UF_LINEAR(线性周期)分支里误用instrument 下标 u:

  • 修复前(本分支 3.3.11.1,loaders/load_imf.c:730-731):
    note=(int)d->samplenote[u]+noteindex[d->samplenumber[u]];
  • 修复后:
    note=(int)d->samplenote[t]+noteindex[d->samplenumber[t]];

改动

  • 新增 libmikmod-CVE-2026-111166.patch(上游 2 行修复,无其他改动)
  • libmikmod.spec:新增 Patch0005:、Release: 9 -> 10、%changelog 记录 CVE 编号

影响面(本仓 ref 自身证据)

ref 类型 tarball blob sha 关键行 结论
master(3.3.16-1) 分支头 60d857948f154625640fe07e1b2876cef6b6472d loaders/load_imf.c:707-708 已是 samplenote[t] 已修复(随 3.3.16 升级)
openEuler-24.03-LTS-Next(3.3.16-1) 分支头 60d857948f154625640fe07e1b2876cef6b6472d loaders/load_imf.c:707-708 已是 samplenote[t] 已修复(issue 声明“受影响”,实测为已修复)
openEuler-24.03-LTS-SP4(3.3.11.1-9) 分支头 055553b401cf18390968a887d18a84b80164c55a loaders/load_imf.c:730-731 仍是 samplenote[u] 受影响(本 PR 修复)
openEuler-24.03-LTS-SP3(3.3.11.1-9) 分支头 055553b401cf18390968a887d18a84b80164c55a 同上 受影响(需另开 PR)
openEuler-24.03-LTS-SP1(3.3.11.1-9) 分支头 055553b401cf18390968a887d18a84b80164c55a 同上 受影响(需另开 PR)
openEuler-22.03-LTS-SP4(3.3.11.1-9) 分支头 055553b401cf18390968a887d18a84b80164c55a 同上 受影响(需另开 PR)
openEuler-20.03-LTS-SP4(3.3.11.1-7) 分支头 055553b401cf18390968a887d18a84b80164c55a 同上 受影响(需另开 PR)
openEuler-24.03-LTS-SP4-release(3.3.11.1-8) 发布 tag 055553b401cf18390968a887d18a84b80164c55a 同上 受影响
openEuler-24.03-LTS-SP3-release / SP1-release / SP2-release / 24.03-LTS-release / 22.03-LTS-SP4-release / 20.03-LTS-SP3-release 发布 tag 055553b401cf18390968a887d18a84b80164c55a 同上 受影响

验证

  1. rpmbuild -bp 通过(--fuzz=0,补丁精确命中 loaders/load_imf.c:727)。
  2. rpmbuild -bb 通过,产出 libmikmod-3.3.11.1-10.uos25.x86_64.rpm / -devel / -debuginfo。
  3. 运行时复现(ASAN,构造 IMF 模块:insnum=256、flags&1、what[0]=0xff、跨instrument 样本计数):
    • 未打补丁的 3.3.11.1:AddressSanitizer: heap-buffer-overflow ... READ of size 4 ... in IMF_Load loaders/load_imf.c:730
    • 打补丁后:loaded: CVE-2026-111166 test (256 ins, 3 smp),无 ASAN 报告
    • 未做:完整 %check 测试套件(包内无 %check)。

门禁自检

项 结论 证据
身份 通过 tianlijun <tianlijun@uniontech.com>
补丁落仓 通过 Patch0005: + %autosetup 自动应用
changelog/Release 通过 Release: 10,changelog 含 CVE-2026-111166
构建验证 通过 rpmbuild -bp/-bb 日志
未关闭重开 通过 本包该 CVE 首次提交

Fixes: https://atomgit.com/src-openeuler/libmikmod/issues/9

likedislike
Merge blocked
Lljtian
2 days ago Created pull request, commit b48980e2
Lljtian
2 days ago Associated issue: CVE-2026-111166
openeuler-ci-botopeneuler-ci-botCollaborators
2 days ago Set small_leek,zhuchunyi,kaitiandu as approver
openeuler-ci-botopeneuler-ci-botCollaborators
2 days ago Added label: sig/Application
openeuler-ci-bot
openeuler-ci-botCollaborators
2 days ago Comments:

Welcome To openEuler Community

Hey @ljtian , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: Application ,
and any of the maintainers: @kaitiandu, @small_leek, @zhuchunyi ,
and any of the committers: @caodongxia, @starlet-dx, @wk333 .

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
2 days ago Comments:

当前仓库存在以下 保护分支 :

Protected Branch Version Release
master 3.3.16 1
openEuler-26.09 3.3.15 1
openEuler-20.03-LTS-SP4 3.3.11.1 7
openEuler-24.03-LTS-SP1 3.3.11.1 9
openEuler-22.03-LTS-SP4 3.3.11.1 9
openEuler-24.03-LTS-SP3 3.3.11.1 9
openEuler-24.03-LTS-SP4 3.3.11.1 9
openEuler-24.03-LTS-Next 3.3.16 1
openEuler-26.09-DevStation 3.3.15 1
openEuler1.0-base 3.3.11.1 5
openEuler1.0 3.3.11.1 5

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
2 days ago Added label: openeuler-cla/yes
openeuler-ci-bot
openeuler-ci-botCollaborators
2 days ago Comments:

CLA Signature Pass

ljtian, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
openeuler-bot
openeuler-botCollaborators
2 days ago Comments:

门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/src-openeuler/trigger/libmikmod/29

likedislike
openeuler-botopeneuler-botCollaborators
2 days ago Added label: ci_processing
openeuler-bot
openeuler-botCollaborators
2 days ago Comments:

x86_64架构构建及构建后检查:multiarch/src-openeuler/x86-64/libmikmod/29

likedislike
openeuler-bot
openeuler-botCollaborators
2 days ago Comments:

aarch64架构构建及构建后检查:multiarch/src-openeuler/aarch64/libmikmod/29

likedislike
openeuler-botopeneuler-botCollaborators
2 days ago Removed label: ci_processing
openeuler-bot
openeuler-botCollaborators
2 days ago Comments:
Check Name Build Result 详情 Build Details
check_binary_file ✅SUCCESS #29
check_lfsconfig ☑EXCLUDE
check_package_yaml_file ✅SUCCESS
check_repo_in_maintain ✅SUCCESS
check_consistency ✅SUCCESS
check_spec_file ✅SUCCESS
x86_64 check_build ✅SUCCESS #29
check_install ✅SUCCESS
check_license ✅SUCCESS
aarch64 check_build ✅SUCCESS #29
check_install ✅SUCCESS
check_license ✅SUCCESS
likedislike
openeuler-botopeneuler-botCollaborators
2 days ago Added label: ci_successful
openeuler-bot
openeuler-botCollaborators
2 days ago Comments:

如下为接口变更检查结果,目标分支为openEuler-24.03-LTS-SP4,请PR提交者check差异信息

Arch Name Check Items Rpm Name Check Result Build Details
compare_package(x86_64) add_rpms ✅SUCCESS #29
delete_rpms ✅SUCCESS
rpm_abi ✅SUCCESS
rpm_cmd ✅SUCCESS
rpm_files ✅SUCCESS
rpm_header ✅SUCCESS
rpm_lib ✅SUCCESS
rpm_provides ✅SUCCESS
rpm_requires ✅SUCCESS
rpm_symbol ✅SUCCESS
compare_package(aarch64) add_rpms ✅SUCCESS #29
delete_rpms ✅SUCCESS
rpm_abi ✅SUCCESS
rpm_cmd ✅SUCCESS
rpm_files ✅SUCCESS
rpm_header ✅SUCCESS
rpm_lib ✅SUCCESS
rpm_provides ✅SUCCESS
rpm_requires ✅SUCCESS
rpm_symbol ✅SUCCESS
likedislike
openeuler-bot
openeuler-botCollaborators
2 days ago Comments:
likedislike