Always version-match every open port separately — Lame reports two different Samba version bands on 139 vs 445, each pointing to a different CVE.
CVE-2007–2447 (usermap_script) exploits a flaw in Samba's username map script config option, injecting shell metacharacters into the login username — no authentication required, and it drops straight into a root shell since smbd ran as root here.
vsftpd 2.3.4’s known backdoor (CVE-2011–2523) is a classic “check it even if it looks unlikely” — it didn’t pay off this time, which is a normal outcome, not a dead end worth dwelling on.
A fast root like this is typical of older/legacy boxes — worth noting technique over difficulty for your own review later.