_dfs_Add() uses a strange way to realloc the jn->referral_list array. There's a temporary read of unrelated or non-existing memory, but we directly overwrite the wrong initialized values again. This was reported by Arjun Basnet with Securin Labs.
This bug was referenced in samba master: 3b7730b3702875d92b5dc0e90410ae26c7355138
Created attachment 19140 [details] Patch for v4-24-test
Created attachment 19141 [details] Patch for v4-23-test
This bug was referenced in samba v4-24-test: 0fa4d138772f11343b284ce4741f56fc7c2b013e
This bug was referenced in samba v4-23-test: b4273914a022965f79c40856db7752b080e6cd84
This bug was referenced in samba v4-23-stable (Release samba-4.23.11): b4273914a022965f79c40856db7752b080e6cd84
This bug was referenced in samba v4-24-stable (Release samba-4.24.6): 0fa4d138772f11343b284ce4741f56fc7c2b013e