Skip to content

Curl_failf may cause NULL access crash #15485

Description

@wxiaoguang

steps

Curl_failf does: if(data->set.verbose || data->set.errorbuffer)

There is a call path to pass NULL data to it:

Curl_socketpair -> Curl_rand(NULL) -> Curl_rand_bytes(NULL) -> randit(NULL) -> Curl_ssl_random(NULL) -> mbedtls_random(NULL) -> failf(NULL)

(if anything error happens in mbedtls_random)

curl/libcurl version

many versions including master branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions