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 B8D6428750A for ; Wed, 18 Jun 2025 11:02:43 +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=1750244563; cv=none; b=gdxLFh01yoGQuIRTIRU61R/YmBHfgcVLFddY/8bqHOJd6Ztcm9402s9mglIK+GiEWRXXLP4sq88MMwuR8DO6+tH5mE0/hdX8+B/wb+YPax1BW9sccXq/kO+r+U8oa8YdWkK9ArmMwI/fLtNqCZQVgKvyY4BbHjeH2mjL8sQ1Dsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244563; c=relaxed/simple; bh=Git7qVP59iXBl5Zj/Tycvg/M5VVDBXvnjK2uZzGOsIc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UHcii0PBFuIttdjAUFRAcE10oDhAkhdgB43wyMhBh/+PY3ujLwiqgy63ckQYf30AyeqV2FnWl+q5+8lueDacdj4qIpwqlqG8toqFOxFuBaNWIVPjcGM2t5eDh8X35yqXYuxgJ0wr9e+ALVQavuJj5Zm5BNdFbVrFSnFxywLZ/To= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Gyu1+FUT; 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="Gyu1+FUT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F2C2C4CEE7; Wed, 18 Jun 2025 11:02:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244563; bh=Git7qVP59iXBl5Zj/Tycvg/M5VVDBXvnjK2uZzGOsIc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Gyu1+FUTGNp2YGk/dSc4AN7gAAbZolXgdMkqfPjLEunSHbLpAz1hlKJ5sevE3hGXm IK/g3SxZ0zdYcAiAAiUc7Gw/qr8kd1W3sQsNWIqT6dhHLkKPqyoA7xVI6VrRBZ86gs bRnhL0/HqYjHsK/c1Rs3VVy1BeS/zFu7C7pYGWdI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49962: xhci: Fix null pointer dereference in remove if xHC has only one roothub Date: Wed, 18 Jun 2025 13:00:27 +0200 Message-ID: <2025061814-CVE-2022-49962-aced@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=2057; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Hs7oHuxPR92b5ZGfdaCG/d3CWMyXZvEpVqFCROlD6DU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc+xu3lwmI/reO0PnQ16BqMIfK4uAncfr1h/ayPr68 Lt/YmwiHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARnliG+R5OV922b4gIvmob xWO8I1VBMeXSQoYFB7TiXH5sqVxxvSHTrbNSYuG9CXaNAA== 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: xhci: Fix null pointer dereference in remove if xHC has only one roothub The remove path in xhci platform driver tries to remove and put both main and shared hcds even if only a main hcd exists (one roothub) This causes a null pointer dereference in reboot for those controllers. Check that the shared_hcd exists before trying to remove it. The Linux kernel CVE team has assigned CVE-2022-49962 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit e0fe986972f5b6b12086c73569206dd29c520be9 and fixed in 5.19.8 with commit 7081b2f34ff291ada012bd6abacaf7d51c4cf73f Issue introduced in 5.19 with commit e0fe986972f5b6b12086c73569206dd29c520be9 and fixed in 6.0 with commit 4a593a62a9e3a25ab4bc37f612e4edec144f7f43 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-2022-49962 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/usb/host/xhci-plat.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/7081b2f34ff291ada012bd6abacaf7d51c4cf73f https://git.kernel.org/stable/c/4a593a62a9e3a25ab4bc37f612e4edec144f7f43