If an application encounters a fatal protocol error and then calls SSL_shutdown() twice (once to send a close_notify, and once to receive one) then OpenSSL can respond differently to the calling application if a 0 byte record is received with invalid padding compared to if a 0 byte record is received with an invalid MAC. If the application then behaves differently based on that in a way that is detectable to the remote peer, then this amounts to a padding oracle that could be used to decrypt data. In order for this to be exploitable "non-stitched" ciphersuites must be in use. Stitched ciphersuites are optimised implementations of certain commonly used ciphersuites. Also the application must call SSL_shutdown() twice even if a protocol error has occurred (applications should not do this but some do anyway). Fixed in OpenSSL 1.0.2r (Affected 1.0.2-1.0.2q).
https://www.tenable.com/security/tns-2019-03
https://www.tenable.com/security/tns-2019-02
https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html
https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
https://www.oracle.com/security-alerts/cpujan2021.html
https://www.oracle.com/security-alerts/cpujan2020.html
https://www.debian.org/security/2019/dsa-4400
https://usn.ubuntu.com/4376-2/
https://usn.ubuntu.com/3899-1/
https://support.f5.com/csp/article/K18549143
https://security.netapp.com/advisory/ntap-20190423-0002/
https://security.netapp.com/advisory/ntap-20190301-0001/
https://security.gentoo.org/glsa/201903-10
https://lists.debian.org/debian-lts-announce/2019/03/msg00003.html
https://kc.mcafee.com/corporate/index?page=content&id=SB10282
https://access.redhat.com/errata/RHSA-2019:3931
https://access.redhat.com/errata/RHSA-2019:3929
https://access.redhat.com/errata/RHSA-2019:2471
https://access.redhat.com/errata/RHSA-2019:2439
https://access.redhat.com/errata/RHSA-2019:2437
https://access.redhat.com/errata/RHSA-2019:2304
http://www.securityfocus.com/bid/107174