Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A49303CB911 for ; Mon, 10 Aug 2026 12:06:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363575; cv=none; b=P3xtCB8DGbvXwoLggHkG+bssCOmRzM17teuigZ6PJWDLo3gHC8YmrwKrxNJD4N2VGZkrSLeHAiN3QAI2U4HzG6FWMWHhZreWnJf99TtfcQ/2SoWm7qU5f+Tk6XXbxadTumNtUdBN9oW7uJBIkoU0zMU69AoEt1GVkgHLbnvK2is= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363575; c=relaxed/simple; bh=zjxCZwMGvr1i1LnElAzoOoyAgJ7fQVh0I35wBKug6O0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SGXJ9XC/kLIi4VP9HiZ2dVbU6YIwOpCdDKfWL/gEvtYMj4mxFb00IDuazUGBzQn7DNeMnIcgvhjBZXeLTbP8JTAVojK7hwrqIl3DD0CWb04gMHlhLOIkhnu+8zdmkxcjsif2FmZcuFhyVLIdSE6jOFSDXssdvOP7tnhp2+e0hu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OPdxx32n; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OPdxx32n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D00341F000E9; Mon, 10 Aug 2026 12:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363574; bh=xbOApn6h8yTcZdPcOnh2Hm/7DcI2kCDNYCTwG6KS9fc=; h=From:To:Cc:Subject:Date:Reply-To; b=OPdxx32n7G0G34AyKT2uOiggRqCCYKA2O6nPqRpcfqWDZTJpXF/AJPCQbMqG0vENn STsqwJALAVk+ylBDP9NZqeRe2g0DBMXwEzQ8MUrPVfVlzekfvlq5o18f2UTBZZy1i1 WHQBgFPmMblB1RGuWSJXH4f/f4FMJlzIbX2BgKsQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68217: media: pwc: Drain fill_buf on start_streaming() failure Date: Mon, 10 Aug 2026 13:58:54 +0200 Message-ID: <2026081014-CVE-2026-68217-5b1d@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3791; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/BX+WX3dJNHgs7xzJX01GqsALP5iJf/3XLHx/mAHCk0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe2Y5prgffpsoFvy8a8/W2FnrGx73XIkTs40LFDQ0Z +O7Un+yI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyLpBhnhn3ApVo7d3zQ/yn 59rneARsWt5ZwzBP/5ZEefSUaWnP4wL/tD27nJ7vdP0FAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: media: pwc: Drain fill_buf on start_streaming() failure pwc_isoc_init() submits its isochronous URBs with usb_submit_urb(.., GFP_KERNEL) in a loop. After the first URB is submitted, its completion handler pwc_isoc_handler() can run on another CPU before the loop finishes: start_streaming() pwc_isoc_init() usb_submit_urb(urbs[0], GFP_KERNEL) pwc_isoc_handler(urbs[0]) pdev->fill_buf = pwc_get_next_fill_buf(pdev) usb_submit_urb(urbs[i>0], ..) -> fails pwc_isoc_cleanup(pdev) /* kills URBs */ return ret; pwc_cleanup_queued_bufs(pdev, VB2_BUF_STATE_QUEUED) pwc_get_next_fill_buf() detaches a buffer from pdev->queued_bufs and stores it in pdev->fill_buf. The error path in start_streaming() only drains pdev->queued_bufs, so the buffer parked in pdev->fill_buf is leaked. vb2_start_streaming() then triggers WARN_ON(owned_by_drv_count). stop_streaming() already handles this since commit 80b0963e1698 ("[media] pwc: fix WARN_ON"), which added the fill_buf drain in the teardown path but not in the start_streaming() error path. Mirror that handling on failure so start_streaming() returns with no buffer owned by the driver. Issue identified by automated review of the INV-003 series at https://sashiko.dev/ The Linux kernel CVE team has assigned CVE-2026-68217 to this issue. Affected and fixed versions =========================== Issue introduced in 3.1 with commit 885fe18f5542fe283a17f70583383c6cadcba1c3 and fixed in 6.6.148 with commit a56e7641e09bd80b976e944ae759109b86fd5b38 Issue introduced in 3.1 with commit 885fe18f5542fe283a17f70583383c6cadcba1c3 and fixed in 6.12.101 with commit acc789b2173070638cad89c2b61d33ed338be0dd Issue introduced in 3.1 with commit 885fe18f5542fe283a17f70583383c6cadcba1c3 and fixed in 6.18.42 with commit 9afd605dcd96c7a45f338eded1de16679b30e1df Issue introduced in 3.1 with commit 885fe18f5542fe283a17f70583383c6cadcba1c3 and fixed in 7.1.6 with commit 5d4812668b03f823b5044789d6aa77fe56b42587 Issue introduced in 3.1 with commit 885fe18f5542fe283a17f70583383c6cadcba1c3 and fixed in 7.2-rc1 with commit 906e410dcffbbd99fb4081abab817a830033aa28 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-68217 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/media/usb/pwc/pwc-if.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a56e7641e09bd80b976e944ae759109b86fd5b38 https://git.kernel.org/stable/c/acc789b2173070638cad89c2b61d33ed338be0dd https://git.kernel.org/stable/c/9afd605dcd96c7a45f338eded1de16679b30e1df https://git.kernel.org/stable/c/5d4812668b03f823b5044789d6aa77fe56b42587 https://git.kernel.org/stable/c/906e410dcffbbd99fb4081abab817a830033aa28