Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[CATENACYBER]: [CPP] CWE-476 Null Pointer Dereference : Another query to either missing or redundant NULL check #148
Comments
|
This follows #110 |
|
github/codeql#3921 got merged. What is next ? |
|
Your submission is now in status SecLab review. For information, the evaluation workflow is the following: |
|
Your submission is now in status SecLab finalize. For information, the evaluation workflow is the following: |
|
Hey @catenacyber can you please send me privately your email? Thanks |
|
Your submission is now in status Pay. For information, the evaluation workflow is the following: |
|
Created Hackerone report 974370 for bounty 243565 : [148] [CATENACYBER]: [CPP] CWE-476 Null Pointer Dereference : Another query to either missing or redundant NULL check |
|
Your submission is now in status Closed. For information, the evaluation workflow is the following: |


CVE ID(s)
List the CVE ID(s) associated with this vulnerability. GitHub will automatically link CVE IDs to the GitHub Advisory Database.
fixed by dovecot/core@8654412
Report
A potential NULL dereference (or redundant NULL check) may happen if a parameter is checked once against NULL in a function but not every time before it gets used.
This improvement to RedundantNullCheckSimple, in addition to finding the NULL dereference from CVE-2020-10957 also finds the redundant null checks from :
Pull Request is here :
github/codeql#3921
Result(s)
Provide at least one useful result found by your query, on some revision of a real project.
https://hackerone.com/bugs?report_id=908894&subject=user
One is in the following code
where
auth_argsgets dereferenced before checking its NULLnessAnd the other is here with the dereference in some path
https://github.com/dovecot/core/blob/81b5b188c478ec36bea8bda8fcad1e5f32ac612b/src/plugins/mail-crypt/mail-crypt-global-key.c#L91
And the check against NULL in another path
https://github.com/dovecot/core/blob/81b5b188c478ec36bea8bda8fcad1e5f32ac612b/src/plugins/mail-crypt/mail-crypt-global-key.c#L105