In all android releases (Android for MSM, Firefox OS for MSM, QRD Android) from CAF using the linux kernel, a race condition while accessing num of clients in DIAG services can lead to out of boundary access.
support.blackberry.com/kb/articleDetail?articleNumber=000051163
source.android.com/security/bulletin/pixel/2018-08-01#qualcomm-components
source.codeaurora.org/quic/la/kernel/msm-4.4/commit/?id=6eb2f4f6fde1b210712d6ac66b40b9e7684d77db
www.codeaurora.org/security-bulletin/2018/09/04/september-2018-code-aurora-security-bulletin