1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/nsswitch
Andreas Schneider 36fb8a3d65 nsswitch:krb5_plugin: Avoid a possible double free
Found by Covscan.

"Error: USE_AFTER_FREE (CWE-416):
samba-4.20.0rc2/nsswitch/krb5_plugin/winbind_krb5_localauth.c:122: freed_arg: ""wbcFreeMemory"" frees ""pwd"".
samba-4.20.0rc2/nsswitch/krb5_plugin/winbind_krb5_localauth.c:144: pass_freed_arg: Passing freed pointer ""pwd"" as an argument to ""wbcFreeMemory"".
  142|   		break;
  143|   	}
  144|-> 	wbcFreeMemory(pwd);
  145|   	if (code != 0) {
  146|   		goto out;"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
2024-06-24 06:14:35 +00:00
..
krb5_plugin nsswitch:krb5_plugin: Avoid a possible double free 2024-06-24 06:14:35 +00:00
libwbclient wbclient: Fix a typo 2024-06-04 07:11:35 +00:00
tests tests: Add a test for "all_groups=no" to test_idmap_ad.sh 2024-04-02 13:25:39 +00:00
b15464-testcase.c nsswitch: add test for pthread_key_delete missuse (bug 15464) 2023-09-14 17:56:30 +00:00
nsstest.c CVE-2020-25717: nsswitch/nsstest.c: Lower 'non existent uid' to make room for new accounts 2021-11-15 18:10:28 +00:00
nsstest.h nsswitch: Fix checking for config.h #define in nsstest.h 2018-12-16 21:04:10 +01:00
pam_winbind.c nsswitch: Fix getting data out of pam_get_data() 2023-02-06 22:51:31 +00:00
pam_winbind.h pam_winbind: add new pwd_change_prompt option (defaults to off). 2021-12-16 03:05:30 +00:00
stress-nss-libwbclient.c nsswitch: Fix CID 1518966 Resource leaks (RESOURCE_LEAK) 2023-03-03 01:07:36 +00:00
wb_common.c nsswitch/wb_common.c: fix socket fd and memory leaks of global state 2023-09-14 18:53:07 +00:00
wb_reqtrans.c
wb_reqtrans.h
wbinfo.c spelling fixes for 4.18 (errror implemenation proces Controler) 2023-01-26 20:46:11 +00:00
winbind_client.h nsswitch: move winbindd_free_response() as inline function to winbind_struct_protocol.h 2021-11-30 15:53:34 +00:00
winbind_nss_aix.c nsswitch: Fix code spelling 2023-06-23 13:44:31 +00:00
winbind_nss_config.h
winbind_nss_freebsd.c nsswitch: explicitly mark nss_module_register() _PUBLIC_ on FreeBSD 2021-11-30 15:53:34 +00:00
winbind_nss_hpux.h
winbind_nss_linux.c nsswitch: Fix code spelling 2023-06-23 13:44:31 +00:00
winbind_nss_linux.h nsswitch: explicitly mark NSS_STATUS _nss_winbind_* symbols as _PUBLIC_ on Linux 2021-11-30 15:53:34 +00:00
winbind_nss_netbsd.c winbind_nss_netbsd: fix missing semicolon 2023-12-29 12:49:34 +00:00
winbind_nss_netbsd.h
winbind_nss_solaris.c nsswitch: Fix code spelling 2023-06-23 13:44:31 +00:00
winbind_nss_solaris.h nsswitch: maintain prototypes for the linux based functions only once 2018-04-03 16:41:09 +02:00
winbind_nss.h nsswitch: Fix checking for config.h #define in winbind_nss.h 2018-12-16 21:04:10 +01:00
winbind_struct_protocol.h s3:winbind: Convert InitConnection from struct based to NDR based 2022-05-19 17:51:33 +00:00
wins_freebsd.c nsswitch: explicitly mark nss_module_register() _PUBLIC_ on FreeBSD 2021-11-30 15:53:34 +00:00
wins.c nsswitch/wins: Define NETDB_* for other libc's 2022-08-08 06:33:38 +00:00
wscript_build buildtools: Remove useless ‘keep_underscore’ parameter 2023-12-11 01:08:37 +00:00
wscript_configure nss/waf: check for secmethod_table.method_{attrlist,version} for aix >= 5.2 2018-12-22 06:22:22 +01:00