Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 79EFB1C36 for ; Wed, 16 Apr 2025 14:14:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812894; cv=none; b=bXKVmvbk2rHBCrhniTrDQKITmRBSjne9Rtrd6rBmmaPOxPDWUJC92vEPP+eGCN+7ytDrCTJwVTiZG7mFPvQCG01+zgNHVp12witbsYCeqQn82GhF+pD23gog4r7DF4jy4PGcHZag9LwG1aNtNhnBqaBhLePOI8eDbPfoZtgx7rA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812894; c=relaxed/simple; bh=MdAZDRQRtwLILfHY3add9m4DwTwGONoMr1BhZvaYsD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t9SIhaiCfTbdf0lDDz5xW2mQ4XPRtG4Srq9xl1zT5cRW6iHqXHeJpGN6ajNKldu0GyKUMSzVR3JiG39UAzKjD5QgwmA0I2TDIFlduQsvoFWXHRVGI6FBJunIh+zdqb6htfecxdS5mjpz3Y80GhtDGULO2y6BexA1wsk82Kdwlys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NB3nbHvY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NB3nbHvY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02B96C4CEE2; Wed, 16 Apr 2025 14:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812894; bh=MdAZDRQRtwLILfHY3add9m4DwTwGONoMr1BhZvaYsD8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NB3nbHvYKbaoQrKzgR7XVcuhVcPvGH7O4BZi9MTCiUvYTCWlEkezz817b5rhIVpbG ITLRJsfME3WLGRLMOtst99Ch+E76iiVwR6Q0izuc71SGY0QpoyosziFYCWFR6dkAfS cN0rJvpyH9Ogq+oc6+fkRD7NwTCGHieBe3HL9lcE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22052: staging: gpib: Fix Oops after disconnect in ni_usb Date: Wed, 16 Apr 2025 16:12:23 +0200 Message-ID: <2025041603-CVE-2025-22052-54f5@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2480; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MdAZDRQRtwLILfHY3add9m4DwTwGONoMr1BhZvaYsD8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d21pXDNjjsKt6d92xOdu1Fq/hMHyQl7AERPZT+Ff7 G/77zwo3xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT2crPMJtFJYqH5d0V099L jyV+2/3Qg2HnpM8MC/at3nbF/ZqVw5UK7cf/Yu6Hv/9S9xQA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: staging: gpib: Fix Oops after disconnect in ni_usb If the usb dongle is disconnected subsequent calls to the driver cause a NULL dereference Oops as the bus_interface is set to NULL on disconnect. This problem was introduced by setting usb_dev from the bus_interface for dev_xxx messages. Previously bus_interface was checked for NULL only in the the functions directly calling usb_fill_bulk_urb or usb_control_msg. Check for valid bus_interface on all interface entry points and return -ENODEV if it is NULL. The Linux kernel CVE team has assigned CVE-2025-22052 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 4934b98bb24327c32ed55c96012f019932383da5 and fixed in 6.13.11 with commit b2d8d7959077c5d4b11d0dc6bd2167791fd1c72e Issue introduced in 6.13 with commit 4934b98bb24327c32ed55c96012f019932383da5 and fixed in 6.14.2 with commit 5dc98ba6f7304c188b267ef481281849638447bf Issue introduced in 6.13 with commit 4934b98bb24327c32ed55c96012f019932383da5 and fixed in 6.15-rc1 with commit a239c6e91b665f1837cf57b97fe638ef1baf2e78 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-2025-22052 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/staging/gpib/ni_usb/ni_usb_gpib.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/b2d8d7959077c5d4b11d0dc6bd2167791fd1c72e https://git.kernel.org/stable/c/5dc98ba6f7304c188b267ef481281849638447bf https://git.kernel.org/stable/c/a239c6e91b665f1837cf57b97fe638ef1baf2e78