Skip to content

Fix buffer overflow vulnerability in deflatePrime function (CVE-2018-25032)#396

Open
yannaingtun wants to merge 1 commit into
alibaba:masterfrom
yannaingtun:aapt-bugfix-deflatePrime-buffer-overflow
Open

Fix buffer overflow vulnerability in deflatePrime function (CVE-2018-25032)#396
yannaingtun wants to merge 1 commit into
alibaba:masterfrom
yannaingtun:aapt-bugfix-deflatePrime-buffer-overflow

Conversation

@yannaingtun

Copy link
Copy Markdown

Description
This PR addresses a buffer overflow vulnerability in the deflatePrime function within zlib code. The vulnerability could allow attackers to cause crashes or potentially execute arbitrary code when using Z_FIXED compression mode.
The fix changes the buffer check from using s->d_buf to s->sym_buf, which ensures the pending buffer cannot overwrite the symbol table during operation.

Reference
CVE-2018-25032
Original fix in zlib: madler/zlib@5c44459

@CLAassistant

CLAassistant commented Mar 11, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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