PT-2026-166596

CVE-2026-142873

·

تاريخ النشر

2026-12-03

·

تاريخ التحديث

2026-12-03

الوصف من

الدرجة
N/A
غير متوفر

لا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.

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.
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾