Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #826

Merged
merged 1 commit into from
Aug 26, 2020
Merged

Update #826

merged 1 commit into from
Aug 26, 2020

Conversation

eustas
Copy link
Collaborator

@eustas eustas commented Aug 26, 2020

  • IMPORTANT: decoder: fix overflow when input chunk is >2GiB
  • simplify max Huffman table size calculation
  • eliminate symbol duplicates (static arrays in .h files)
  • minor combing in research/ code

@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

2 similar comments
@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@AppVeyorBot
Copy link

Build brotli 1.0.0#1502 failed (commit ed2a606f70 by @)

@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@AppVeyorBot
Copy link

Build brotli 1.0.0#1503 failed (commit 705e32652b by @)

@AppVeyorBot
Copy link

Build brotli 1.0.0#1504 failed (commit 1f1f91b8e4 by @)

@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@AppVeyorBot
Copy link

Build brotli 1.0.0#1505 failed (commit a1ecc6a04f by @)

@AppVeyorBot
Copy link

Build brotli 1.0.0#1506 completed (commit 153c21cde7 by @)

 * IMPORTANT: decoder: fix overflow when input chunk is >2GiB
 * simplify max Huffman table size calculation
 * eliminate symbol duplicates (static arrays in .h files)
 * minor combing in research/ code
@google-cla
Copy link

google-cla bot commented Aug 26, 2020

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@eustas eustas merged commit 223d80c into master Aug 26, 2020
@eustas eustas deleted the upd08a branch August 26, 2020 10:32
@rcsanchez97
Copy link

@eustas I am preparing an update for brotli in Debian (based on an older release, 0.5.2) to address CVE-2020-8927. Since the PR you merged included four distinct and separate changes in a single commit it is difficult for me to determine the minimum change needed to address CVE-2020-8927. My belief is that the specific change that I need to isolate is associated with the changelog entry `IMPORTANT: decoder: fix overflow when input chunk is >2GiB.

Though I attempted to isolate the part of the commit that was necessary I was unsure and so I consulted with another Debian developer. His assessment of my proposed patch was that it was perhaps too broad. Could you identify the specific hunks that are needed to address CVE-2020-8927? Also, is there any available information regarding a proof of concept of the vulnerability or a reproducer?

@deymo
Copy link

deymo commented Dec 1, 2020

Hi @rcsanchez97 , first of all sorry I didn't see the comment before. Due to the way we have set up the import/export changes like this one it didn't generate a small commit with just the CVE fix, sorry about that.

I discussed this with my colleagues here and we think the only change on top of 1.0.7 needed to fix that CVE-2020-8927 is the one attached here. I didn't verify if there were other changes that could affect this from 0.5.2 which is quite old, but given that the fix is a cap in the bit reader's BrotliGetRemainingBytes() function I don't expect other changes to affect it.

Let me know if you need any help and thanks for your maintainer work on brotli.

cve-2020-8927.patch.txt

@rcsanchez97
Copy link

@deymo No worries on the delay; the issue has been around for a while and as you pointed out I am dealing with a quite old version. Thanks for verifying the necessary components of the fix. I will get this updated in Debian. Your assistance is very much appreciated.

chylex pushed a commit to chylex/brotli that referenced this pull request Feb 19, 2021
 * IMPORTANT: decoder: fix potential overflow when input chunk is >2GiB
 * simplify max Huffman table size calculation
 * eliminate symbol duplicates (static arrays in .h files)
 * minor combing in research/ code
juj pushed a commit to Unity-Technologies/brotli that referenced this pull request May 13, 2023
 * IMPORTANT: decoder: fix potential overflow when input chunk is >2GiB
 * simplify max Huffman table size calculation
 * eliminate symbol duplicates (static arrays in .h files)
 * minor combing in research/ code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants