Skip to content

fix: fix CVE-2026-2921 RIFF palette integer overflow vulnerability#6

Closed
Zeno-sole wants to merge 1 commit intodeepin-community:masterfrom
Zeno-sole:master
Closed

fix: fix CVE-2026-2921 RIFF palette integer overflow vulnerability#6
Zeno-sole wants to merge 1 commit intodeepin-community:masterfrom
Zeno-sole:master

Conversation

@Zeno-sole
Copy link
Copy Markdown

Add proper validation for palette data size in RIFF media handling. The vulnerability exists because num_colors * 4 could overflow and result in out-of-bounds reads/writes when processing AVI palette data.

Use g_size_checked_mul() to check for integer overflow before comparing palette buffer size against expected size.

This fixes:

Log: Fix CVE-2026-2921 RIFF palette integer overflow vulnerability

Influence:

  1. Verify AVI files with palette data are processed correctly
  2. Test malformed AVI files with oversized palette values
  3. Ensure no regression on normal AVI playback
  4. Check security boundary is properly enforced

fix: 修复 CVE-2026-2921 RIFF 调色板整数溢出漏洞

在 RIFF 媒体处理中添加调色板数据大小的正确验证。
该漏洞存在是因为 num_colors * 4 可能溢出,导致处理 AVI 调色板数据时
出现越界读写。

使用 g_size_checked_mul() 在比较调色板缓冲区大小与预期大小之前
检查整数溢出。

修复了:

Log: 修复 CVE-2026-2921 RIFF 调色板整数溢出漏洞

Influence:

  1. 验证带有调色板数据的 AVI 文件能正确处理
  2. 测试带有超大调色板值的畸形 AVI 文件
  3. 确保正常 AVI 播放没有回归
  4. 检查安全边界是否被正确执行

repo: gst-plugins-base1.0 #master

Add proper validation for palette data size in RIFF media handling.
The vulnerability exists because num_colors * 4 could overflow and
result in out-of-bounds reads/writes when processing AVI palette data.

Use g_size_checked_mul() to check for integer overflow before comparing
palette buffer size against expected size.

This fixes:
- GST-SA-2026-0004
- ZDI-CAN-28854
- CVE-2026-2921

Log: Fix CVE-2026-2921 RIFF palette integer overflow vulnerability

Influence:
1. Verify AVI files with palette data are processed correctly
2. Test malformed AVI files with oversized palette values
3. Ensure no regression on normal AVI playback
4. Check security boundary is properly enforced

fix: 修复 CVE-2026-2921 RIFF 调色板整数溢出漏洞

在 RIFF 媒体处理中添加调色板数据大小的正确验证。
该漏洞存在是因为 num_colors * 4 可能溢出,导致处理 AVI 调色板数据时
出现越界读写。

使用 g_size_checked_mul() 在比较调色板缓冲区大小与预期大小之前
检查整数溢出。

修复了:
- GST-SA-2026-0004
- ZDI-CAN-28854
- CVE-2026-2921

Log: 修复 CVE-2026-2921 RIFF 调色板整数溢出漏洞

Influence:
1. 验证带有调色板数据的 AVI 文件能正确处理
2. 测试带有超大调色板值的畸形 AVI 文件
3. 确保正常 AVI 播放没有回归
4. 检查安全边界是否被正确执行

repo: gst-plugins-base1.0 #master
@github-actions
Copy link
Copy Markdown

TAG Bot

TAG: 1.24.6-1deepin1
EXISTED: no
DISTRIBUTION: unstable

@deepin-ci-robot deepin-ci-robot requested a review from myml March 24, 2026 06:37
@deepin-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from zeno-sole. 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
Author

/integrate

@github-actions
Copy link
Copy Markdown

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

@Zeno-sole Zeno-sole closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants