Skip to content

Clam 1648 Fix benign heap over-read when loading some LDB signatures using byte-compare feature#583

Merged
val-ms merged 1 commit intoCisco-Talos:mainfrom
ragusaa:CLAM-1648-FixIndex
May 28, 2022
Merged

Clam 1648 Fix benign heap over-read when loading some LDB signatures using byte-compare feature#583
val-ms merged 1 commit intoCisco-Talos:mainfrom
ragusaa:CLAM-1648-FixIndex

Conversation

@ragusaa
Copy link
Contributor

@ragusaa ragusaa commented May 13, 2022

Previously 2 was hardcoded as as upper bound for loop in
cli_bcomp_freemeta. Change to comp_count to avoid going
past the end.

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43816

@ragusaa ragusaa force-pushed the CLAM-1648-FixIndex branch from f21b8fc to 0c16380 Compare May 17, 2022 00:39
Previously 2 was hardcoded as as upper bound for loop in
cli_bcomp_freemeta.  Change to comp_count to avoid going
past the end.
@val-ms val-ms force-pushed the CLAM-1648-FixIndex branch from 0c16380 to 8a1d7f4 Compare May 27, 2022 22:41
@val-ms
Copy link
Contributor

val-ms commented May 27, 2022

Rebased this because it was failing the fuzz regression test from the latest fuzz fix, and wasn't completing the entire pipeline.

@val-ms val-ms changed the title Use correct comp_count Clam 1648 Fix heap over-read when loading some LDB signatures using byte-compare feature May 28, 2022
@val-ms val-ms changed the title Clam 1648 Fix heap over-read when loading some LDB signatures using byte-compare feature Clam 1648 Fix benign heap over-read when loading some LDB signatures using byte-compare feature May 28, 2022
@val-ms
Copy link
Contributor

val-ms commented May 28, 2022

Testing all looks good here. I got a bit hung up on debugging a failure in the private fuzz corpus until I realized a PoC landed there before a fix, and that it didn't mean this was introducing a new bug or anything 😅. All good. Will merge.

@val-ms val-ms merged commit d6d7f18 into Cisco-Talos:main May 28, 2022
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