Patch "PKCS#7: fix certificate chain verification" has been added to the 4.9-stable tree