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