CVE-2026-142873: ALSA: usb-audio: qcom: Check the return value of qmi_handle_init()

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ALSA: usb-audio: qcom: Check the return value of qmihandleinit()

qcusbaudioprobe() overwrites the return value of qmihandleinit() with that of qmiaddserver() without checking it. When qmihandleinit() fails, it has already freed the receive buffer and destroyed the workqueue, and qmi->sock may hold an error pointer. If QRTR is not available, qmihandleinit() returns -EPROBEDEFER and qmi->sock is ERRPTR(-EAFNOSUPPORT), so qmiaddserver() passes it to kernelsendmsg():

BUG: unable to handle page fault for address: ffffffffffffffb7 RIP: 0010:selinuxsocketsendmsg+0xa0/0x590 Call Trace: securitysocketsendmsg+0x29/0x50 socksendmsg+0x43/0x150 kernelsendmsg+0xd6/0x180 qmisendnewserver+0x1b8/0x2b0 qmiaddserver+0x165/0x200 qcusbaudioprobe+0xf4/0x2e0 reallyprobe+0x2b4/0x850

Had the probe gone on, the error and remove paths would call qmihandlerelease() on the half-initialized handle, which destroys the workqueue and frees the receive buffer a second time.

Return the error from qmihandleinit(), so that -EPROBEDEFER defers the probe, and check qmiaddserver() as well.

The bug was found with kbound, a static analysis prototype for ownership mismatches at kernel interfaces, on v7.2.12; it is present in mainline.

Build-tested with x8664 and arm64 allmodconfig (W=1, sparse): no new warnings. Run-tested on QEMU (x8664, KVM) with KASAN and kmemleak, with the driver built in and a test module that registers the q6usb.qc-usb-audio-offload auxiliary device. Without QRTR, the probe crashes as above without this patch; with it the device is deferred and removing it again reports nothing. With QRTR the probe succeeds, and removal reports nothing either.

Affected Software

1 affected component
Linux Linux kernel=7.2.12

Event History

Dec 3, 2026
CVE Published
via MITRE·03:23 AM
Data Sourced
via MITRE·03:23 AM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203