title: Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Kernel Driver
description: The buffer obtained from kernel APIs such as cam_mem_get_cpu_buf() may be readable/writable in userspace after kernel accesses it. In other words, user mode may race and modify the packet header (e.g. header.count), causing checks (e.g. size checks) in kernel code to be invalid. This may lead to out-of-bounds read/write issues.
affected:
{
defaultStatus: unaffected
platforms: [Snapdragon Compute, Snapdragon Consumer IOT, Snapdragon Industrial IOT, Snapdragon Mobile, Snapdragon Wearables]
product: Snapdragon
vendor: Qualcomm, Inc.
versions:
status: affected, version: FastConnect 6800
status: affected, version: FastConnect 6900
status: affected, version: FastConnect 7800
status: affected, version: QCA6391
status: affected, version: QCA6426
status: affected, version: QCA6436
status: affected, version: QCN9074
status: affected, version: QCS410
status: affected, version: QCS610
status: affected, version: SD865 5G
status: affected, version: Snapdragon 8 Gen 1 Mobile Platform
status: affected, version: Snapdragon 865 5G Mobile Platform
status: affected, version: Snapdragon 865+ 5G Mobile Platform (SM8250-AB)
status: affected, version: Snapdragon 870 5G Mobile Platform (SM8250-AC)
status: affected, version: Snapdragon X55 5G Modem-RF System
status: affected, version: Snapdragon XR2 5G Platform
status: affected, version: SW5100
status: affected, version: SW5100P
status: affected, version: SXR2130
status: affected, version: WCD9341
status: affected, version: WCD9370
status: affected, version: WCD9380
status: affected, version: WCN3660B
status: affected, version: WCN3680B
status: affected, version: WCN3950
status: affected, version: WCN3980
status: affected, version: WCN3988
status: affected, version: WSA8810
status: affected, version: WSA8815
status: affected, version: WSA8830
status: affected, version: WSA8835
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: LOCAL
availabilityImpact: HIGH
baseScore: 6.4
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: HIGH
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
version: 3.1
]
format: CVSS
scenarios: GENERAL