1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
|
### GLIBC
{
glibc_regcomp
Memcheck:Leak
fun:*alloc
...
fun:regcomp
}
{
glibc_getaddrinfo_leak
Memcheck:Leak
fun:malloc
fun:make_request
fun:__check_pf
fun:getaddrinfo
fun:getai
fun:ssh_connect_host_nonblocking
}
{
glibc_dlopen_getdelim_selinux
Memcheck:Leak
fun:malloc
fun:getdelim
obj:/lib64/libselinux.so.1
fun:call_init
fun:_dl_init
obj:/lib64/ld-2.15.so
}
{
glibc_dlopen_alloc
Memcheck:Leak
fun:calloc
fun:_dlerror_run
fun:dlopen@@GLIBC_2.2.5
}
### VALGRIND
{
valgrind_exit_free_bug
Memcheck:Free
fun:free
fun:__libc_freeres
fun:_vgnU_freeres
fun:__run_exit_handlers
fun:exit
}
### OPENSSL
{
openssl_crypto_value8
Memcheck:Value8
fun:*
obj:/lib*/libcrypto.so*
}
{
openssl_crypto_value4
Memcheck:Value4
fun:*
obj:/lib*/libcrypto.so*
}
{
openssl_crypto_cond
Memcheck:Cond
fun:*
obj:/lib*/libcrypto.so*
}
{
openssl_BN_cond
Memcheck:Cond
fun:BN_*
}
{
openssl_bn_value8
Memcheck:Value8
fun:bn_*
}
{
openssl_bn_value4
Memcheck:Value4
fun:bn_*
}
{
openssl_AES_cond
Memcheck:Cond
fun:AES_*
}
{
openssl_DES_cond
Memcheck:Cond
fun:DES_*
}
{
openssl_DES_value8
Memcheck:Value8
fun:DES_*
}
{
openssl_DES_value4
Memcheck:Value4
fun:DES_*
}
{
openssl_BF_cond
Memcheck:Cond
fun:BF_*
}
{
openssl_SHA1_cond
Memcheck:Cond
fun:SHA1_*
}
{
openssl_CRYPTO_leak
Memcheck:Cond
fun:OPENSSL_cleanse
}
{
openssl_FIPS_dlopen_leak
Memcheck:Leak
match-leak-kinds: reachable
fun:calloc
fun:_dlerror_run
fun:dlopen*
obj:/lib64/libcrypto.so*
fun:FIPS_module_mode_set
fun:FIPS_mode_set
fun:OPENSSL_init_library
}
{
Threads + Failed PEM decoder do not play well openssl/openssl#29077
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:CRYPTO_malloc
fun:CRYPTO_zalloc
fun:ossl_rcu_read_lock
fun:module_find
fun:module_run
fun:CONF_modules_load
fun:CONF_modules_load_file_ex
fun:ossl_config_int
fun:ossl_config_int
fun:ossl_init_config
fun:ossl_init_config_ossl_
fun:__pthread_once_slow.isra.0
fun:pthread_once@@GLIBC_2.34
fun:CRYPTO_THREAD_run_once
fun:OPENSSL_init_crypto
fun:ossl_provider_doall_activated
fun:ossl_algorithm_do_all
fun:ossl_method_construct.constprop.0
fun:inner_evp_generic_fetch.constprop.0
fun:evp_generic_do_all
fun:EVP_KEYMGMT_do_all_provided
fun:ossl_decoder_ctx_setup_for_pkey
fun:OSSL_DECODER_CTX_new_for_pkey
fun:pem_read_bio_key_decoder
fun:pem_read_bio_key
fun:PEM_read_bio_PrivateKey_ex
fun:pki_private_key_from_base64
...
}
# Cmocka
{
This looks like leak from cmocka when the forked server is not properly terminated
Memcheck:Leak
match-leak-kinds: reachable
fun:calloc
...
fun:_cmocka_run_group_tests
fun:torture_run_tests
fun:main
}
## libgcrypt
{
Reachable allocations from libgcrypt
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:gcry_check_version
fun:ssh_crypto_init
fun:_ssh_init
fun:libssh_constructor
...
}
{
randomize in libgcrypt keeps some memory around
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:ssh_get_random
...
}
{
EC key operation allocs some reachable memory
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:gcry_pk_sign
...
}
{
EC key operation allocs some reachable memory
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:gcry_pk_verify
...
}
{
EC key generation allocs some reachable memory
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:gcry_pk_genkey
...
}
# NSS
{
Reachable memory from getaddrinfo
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:__nss_module_get_function
...
fun:getaddrinfo
...
fun:torture_*
...
fun:_cmocka_run_group_tests
fun:torture_run_tests
fun:main
}
## libkrb5
# krb5_mcc_generate_new allocates a hashtab on a static global variable
# It doesn't get freed.
{
Reachable memory from getaddrinfo
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
fun:malloc
fun:strdup
fun:_dl_load_cache_lookup
fun:_dl_map_object
fun:dl_open_worker_begin
fun:_dl_catch_exception
fun:dl_open_worker
fun:_dl_catch_exception
fun:_dl_open
fun:do_dlopen
fun:_dl_catch_exception
fun:_dl_catch_error
fun:dlerror_run
...
fun:getaddrinfo
...
fun:gss_init_sec_context
fun:ssh_gssapi_init_ctx
...
fun:ssh_userauth_gssapi
fun:torture_gssapi_auth_server_identity
...
fun:_cmocka_run_group_tests
fun:torture_run_tests
fun:main
}
{
Reachable memory from getaddrinfo
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
fun:UnknownInlinedFun
fun:_dl_new_object
fun:_dl_map_object_from_fd
fun:_dl_map_object
fun:dl_open_worker_begin
fun:_dl_catch_exception
fun:dl_open_worker
fun:_dl_catch_exception
fun:_dl_open
fun:do_dlopen
fun:_dl_catch_exception
fun:_dl_catch_error
fun:dlerror_run
...
fun:getaddrinfo
...
fun:gss_init_sec_context
fun:ssh_gssapi_init_ctx
...
fun:ssh_userauth_gssapi
fun:torture_gssapi_auth_server_identity
...
fun:_cmocka_run_group_tests
fun:torture_run_tests
fun:main
}
{
Reachable memory from libkrb5
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
fun:k5_hashtab_create
...
fun:krb5_mcc_generate_new*
}
{
Error string from acquire creds in krb5
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:krb5_gss_save_error_string
...
fun:acquire_cred_context.isra.0
fun:acquire_cred_from.isra.0
fun:gss_add_cred_from
fun:gss_acquire_cred_from
}
{
error string from gss init sec context
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:krb5_gss_save_error_string
...
fun:krb5_gss_init_sec_context_ext
fun:krb5_gss_init_sec_context
fun:gss_init_sec_context
}
## sk-dummy.so
# The sk-dummy.so enroll function allocates 1-byte memory for the signature, but marks the signature length as 0.
# Since, we use burn_free to free the signature, it skips the freeing because the size is 0, which results in a memory leak.
{
sk-dummy.so memory leak in sk_enroll
Memcheck:Leak
match-leak-kinds: definite
fun:calloc
fun:sk_enroll
fun:pki_sk_enroll_key
...
}
{
malloc inside expand_hostname
Memcheck:Leak
match-leak-kinds: reachable
fun:malloc
...
fun:expand_hostname
fun:canonicalize_princ
fun:krb5_sname_to_principal
fun:krb5_gss_import_name
fun:gssint_import_internal_name
fun:gss_init_sec_context
fun:ssh_gssapi_init_ctx
}
{
malloc in krb5_build_principal
Memcheck:Leak
match-leak-kinds: indirect
fun:malloc
...
fun:krb5_build_principal_alloc_va
fun:krb5_build_principal
...
fun:gss_add_cred_from
fun:gss_acquire_cred_from
fun:gss_acquire_cred
}
{
malloc in krb5_build_principal
Memcheck:Leak
match-leak-kinds: indirect,definite
fun:malloc
fun:krb5_build_principal_alloc_va
fun:krb5_build_principal
...
fun:gss_add_cred_from
fun:gss_acquire_cred_from
fun:gss_acquire_cred
}
{
calloc in krb5_build_principal
Memcheck:Leak
match-leak-kinds: indirect
fun:calloc
...
fun:krb5_build_principal_alloc_va
fun:krb5_build_principal
...
fun:gss_add_cred_from
fun:gss_acquire_cred_from
fun:gss_acquire_cred
}
|