Skip to content

fix(cve): CVE-2026-125203 - 兼容性适配修改 - #61

Merged
lzwind merged 4 commits into
masterfrom
fix-cve/CVE-2026-125203
Nov 24, 2026
Merged

lzwind merged 4 commits into
masterfrom
fix-cve/CVE-2026-125203

Conversation

@deepin-ci-robot

@deepin-ci-robot deepin-ci-robot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

CVE: CVE-2026-125203 - 兼容性适配:上游 3e09f5e2 的检查引用了 total_channels 变量,但该变量在 6.1 分支(libavcodec 60)中不存在(上游更新版本由子包循环另行维护该计数)。改为在 cook_decode_init 中声明 int total_channels = 0 并在子包解析循环内累加 q->subpacket[s].num_channels,使 channel_mask 覆盖校验与上游语义等价。

Co-authored-by: hudeng hudeng@deepin.org
Generated-By: deepseek-v4-flash


CVE: CVE-2026-125267 (high) - APAC 解码器中 bitstream 缓冲区大小计算存在整数溢出,可导致内存耗尽(OOM)及越界访问
Upstream: FFmpeg/FFmpeg@63958ce2b5dd1b22f534fc968c86329cbbceef07,https://github.com/FFmpeg/FFmpeg/commit/e15ddb7f9a2f9b3ab8ac305efb6f94ddc18463d0

Co-authored-by: hudeng hudeng@deepin.org
Generated-By: deepseek-v4-flash


CVE: CVE-2026-125228 (medium) - FFmpeg 8.1.3 之前版本及 9.x 9.0.2 之前的 libavcodec/vorbisenc.c 的 put_vector() 存在越界读取漏洞:当输入含 NaN 浮点样本时,codebook 条目保持为 -1,导致数组前的堆内存读取,可使应用崩溃或将相邻堆内存泄漏到输出中。
Upstream: FFmpeg/FFmpeg@e33548a

Co-authored-by: hudeng hudeng@deepin.org
Generated-By: deepseek-v4-flash


Rebase onto current master

Rebased onto master (b82a695); the branch had drifted a long way behind and conflicted in debian/changelog and debian/patches/series.

  • debian/changelog: master's 7:6.1.5-0deepin15 entry is kept, and the three CVE entries are collected in a new 7:6.1.5-0deepin16 entry. The previous head reused deepin13, which is already tagged.
  • debian/patches/series: master's ordering is preserved and the three new patches are appended after Add-slice-param-of-vaapi-hevc.patch.

Diff against master is limited to the three CVE patches, debian/patches/series and debian/changelog; no unrelated master changes are reverted.

Verification

  • quilt push -a applies the whole series cleanly (CVE-2026-125203 second hunk applies with a 7-line offset).
  • Full build of the patched tree succeeds (configure --disable-x86asm due to missing nasm locally, then make -j16).
  • OBS deepin_develop x86_64 and aarch64 builds both pass for 7:6.1.5-0deepin16; the generated source package matches the git debian/ tree.

The PR remains on /hold per deepin-community/infra-settings#134 and still needs an approver.

@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

/hold
因为该quilt包的上游版本号变更,详情见: deepin-community/infra-settings#134

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

TAG Bot

TAG: 7%6.1.5-0deepin16
EXISTED: no
DISTRIBUTION: unstable

@Zeno-sole

Copy link
Copy Markdown
Contributor

@hudeng-go pr 存在冲突,需要 rebase

@hudeng-go

Copy link
Copy Markdown
Contributor

收到:rebase ffmpeg PR #61 并解决冲突。

deepin-ci-robot and others added 4 commits November 23, 2026 14:09
… cover every subpacket channel

CVE: CVE-2026-125203 (high) - libavcodec/cook: the channel mask was not checked against the number of subpacket channels, so a crafted Cook multichannel stream could describe more channels than the channel mask covers, leading to an out of array write. Require av_popcount(channel_mask) to equal total_channels, otherwise reject the stream with AVERROR_INVALIDDATA.
Upstream: FFmpeg/FFmpeg@3e09f5e

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: deepseek-v4-flash
CVE: CVE-2026-125203 - 兼容性适配:上游 3e09f5e2 的检查引用了 total_channels 变量,但该变量在 6.1 分支(libavcodec 60)中不存在(上游更新版本由子包循环另行维护该计数)。改为在 cook_decode_init 中声明 int total_channels = 0 并在子包解析循环内累加 q->subpacket[s].num_channels,使 channel_mask 覆盖校验与上游语义等价。

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: deepseek-v4-flash
…id integer overflow

CVE: CVE-2026-125267 (high) - APAC 解码器中 bitstream 缓冲区大小计算存在整数溢出,可导致内存耗尽(OOM)及越界访问
Upstream: FFmpeg/FFmpeg@63958ce2b5dd1b22f534fc968c86329cbbceef07,https://github.com/FFmpeg/FFmpeg/commit/e15ddb7f9a2f9b3ab8ac305efb6f94ddc18463d0

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: deepseek-v4-flash
…ite input

CVE: CVE-2026-125228 (medium) - FFmpeg 8.1.3 之前版本及 9.x 9.0.2 之前的 libavcodec/vorbisenc.c 的 put_vector() 存在越界读取漏洞:当输入含 NaN 浮点样本时,codebook 条目保持为 -1,导致数组前的堆内存读取,可使应用崩溃或将相邻堆内存泄漏到输出中。
Upstream: FFmpeg/FFmpeg@e33548a

Co-authored-by: hudeng <hudeng@deepin.org>
Generated-By: deepseek-v4-flash
@hudeng-go
hudeng-go force-pushed the fix-cve/CVE-2026-125203 branch from 67e51d7 to e8fca40 Compare November 23, 2026 06:16
@hudeng-go

Copy link
Copy Markdown
Contributor

已 rebase 并解决冲突,PR 可评审:#61 现为新 head e8fca40,冲突集中在 debian/changelog(三个 CVE 条目移入新的 7:6.1.5-0deepin16,保留 master 的 deepin15 条目)和 debian/patches/series(保留 master 的 122 个补丁顺序,追加三个新补丁)。

验证:quilt push -a 全部 135 个补丁干净应用;本地完整构建通过;OBS deepin_develop x86_64 与 aarch64 均已构建成功,mergeState 已从 CONFLICTING 变为 MERGEABLE。sync-to-gitlab/sync-to-gitcode 仍失败,与 master 自身 head 表现一致,属基础设施问题。

仍需人工合并:PR 上还有 CI 的 do-not-merge/hold 标签(quilt 上游版本校验,infra-settings#134),且 tide 需要 OWNERS 审批。

@lzwind
lzwind merged commit 3708a70 into master Nov 24, 2026
7 of 10 checks passed
@deepin-ci-robot

Copy link
Copy Markdown
Contributor Author

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lzwind
Once this PR has been reviewed and has the lgtm label, please assign liujianqiang-niu for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Zeno-sole

Copy link
Copy Markdown
Contributor

/integrate

@github-actions

Copy link
Copy Markdown

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#4769
PrNumber: 4769
PrBranch: auto-integration-45387453456

@hudeng-go
hudeng-go deleted the fix-cve/CVE-2026-125203 branch November 24, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants