Possible Null Pointer Dereference in TLSWrap::PskClientCallback
#56665
Labels
tls
Issues and PRs related to the tls subsystem.
TLSWrap::PskClientCallback
#56665
Version
20.18.0
Platform
Subsystem
crypto
What steps will reproduce the bug?
Problem around with part of code - https://github.com/nodejs/node/blob/da5f7aca6ac1fac2b7840dc11c0ef8e740cfc414/src/crypto/crypto_tls.cc#L1559C1-L1564C58
After creating
Utf8Value
object code checks its length, but not checks fornullptr
. After thisnullptr
can be dereferenced inmemcpy
callHow often does it reproduce? Is there a required condition?
Condition -
identity_buf
storesnullptr
What is the expected behavior? Why is that the expected behavior?
Return 0, for consistent API, for example
What do you see instead?
Additional information
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reporter: Burkov Egor ([email protected]).
Organization: R-Vision ([email protected]).
The text was updated successfully, but these errors were encountered: