CVE-2026-142873

Not scored yetLast modified Dec 3, 2026

Description

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

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

qc_usb_audio_probe() overwrites the return value of qmi_handle_init() with that of qmi_add_server() without checking it. When qmi_handle_init() 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, qmi_handle_init() returns -EPROBE_DEFER and qmi->sock is ERR_PTR(-EAFNOSUPPORT), so qmi_add_server() passes it to kernel_sendmsg():

BUG: unable to handle page fault for address: ffffffffffffffb7 RIP: 0010:selinux_socket_sendmsg+0xa0/0x590 Call Trace: security_socket_sendmsg+0x29/0x50 __sock_sendmsg+0x43/0x150 kernel_sendmsg+0xd6/0x180 qmi_send_new_server+0x1b8/0x2b0 qmi_add_server+0x165/0x200 qc_usb_audio_probe+0xf4/0x2e0 really_probe+0x2b4/0x850

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

Return the error from qmi_handle_init(), so that -EPROBE_DEFER defers the probe, and check qmi_add_server() 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 x86_64 and arm64 allmodconfig (W=1, sparse): no new warnings. Run-tested on QEMU (x86_64, 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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 326bbc348298ab0946c5560defe024a5f6ef28bb, < a3eafb95da4a02ea656bf4d5ad735b953ae5626e; >= 326bbc348298ab0946c5560defe024a5f6ef28bb, < bcb37b8abc6d4a1e2a6e7983d86a24e25f7ab53a; >= 326bbc348298ab0946c5560defe024a5f6ef28bb, < a3cf5ebab5f1db9e6f751e2a08df05a84f37ea57
LinuxLinux6.16

References

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142874In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Reset DET of HUBPs without a plane before outstanding CVE-2026-142875In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: stop the schedulers before preparing the GPU reset amdgpu_CVE-2026-142876In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/userq: wait for GPU reset before mapping or unmapping queuesCVE-2026-142877In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: set the mmu_gather page size in zap_huge_pud() UnmappiCVE-2026-142878In the Linux kernel, the following vulnerability has been resolved: ocfs2: wait for filecheck kobject release after a failed add The filecCVE-2026-142879In the Linux kernel, the following vulnerability has been resolved: mm/migrate: snapshot the source nid before the misplaced migration A sCVE-2026-142883.1GitLab has remediated an issue in GitLab EE affecting all versions from 17.4 before 19.3.6, 19.4 before 19.4.3, and 19.5 before 19.5.1 that CVE-2026-142880In the Linux kernel, the following vulnerability has been resolved: mm/page_alloc: mark pages freed by __free_pages_core() as not tagged OCVE-2026-142881In the Linux kernel, the following vulnerability has been resolved: 9p: fix caches_show() out-of-bounds write The sysfs show handler for /CVE-2026-142882In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: clear stale request context after abort usb9pfs_clear_tx(CVE-2026-142883In the Linux kernel, the following vulnerability has been resolved: io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit io_CVE-2026-142884In the Linux kernel, the following vulnerability has been resolved: NFSD: Complete a cld upcall when the daemon closes the pipe Once nfsdc
CVE-2026-142873: Unscored | Vulnix