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 B6C0A149DE8 for ; Wed, 3 Apr 2024 14:58:19 +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=1712156299; cv=none; b=OP1wydahMFTd7Jsiqz2rERnDIhRXy2xLSqOPR1S64bV1Aw9hqtL3m5UHF3JVr9OkHhBsCMj+2fpiXsg+J5PJCfuUnBc40NgfO6jD81e6gE7bJcPUqXbqfcK0r5eR9T4yGWbmzGu9ETi3Ny5TBVHY4PohkQ8F1rwomJAe2F8BSeE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712156299; c=relaxed/simple; bh=lcIDSA2kPuxhoklGZIFr89jISsQW9z3Dsg63oOyEvgI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p8qCx+vEP3kBukRXT63n6HsiBJ6OSVa/z9Bkd4dJIiqOr/9OlT1CDyj3NTyLnqmkQNkJuEFgeyRGf5PvSUT3VJlsUHW6FopYpVZy//CXljQFiUueRKKNCdvGk2CUs4jsI0mIIFtHiu4FEdMXCdjqJ2UkG9QvZiCRYQnymc2BzEo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X/VVYRMq; 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="X/VVYRMq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26D40C43390; Wed, 3 Apr 2024 14:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712156299; bh=lcIDSA2kPuxhoklGZIFr89jISsQW9z3Dsg63oOyEvgI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=X/VVYRMqVVD4hoGsExnLWxKtQMMDE3cjL9ycKeJA68aC6VLwTQgBb44QkrwkE52iM ssbRCEVAxrePq5Qwbqwc3dytc0hkhAww8B/CxLqVLqmUSMnsz9Bi5QejWF7gsGA4Mg lvrPJl0bIPvNStb75Q545DSibMSyS9NUh+KYCxbw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26716: usb: core: Prevent null pointer dereference in update_port_device_state Date: Wed, 3 Apr 2024 16:56:07 +0200 Message-ID: <2024040343-CVE-2024-26716-74a8@gregkh> X-Mailer: git-send-email 2.44.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=2188; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lcIDSA2kPuxhoklGZIFr89jISsQW9z3Dsg63oOyEvgI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8ue/XXXpiIPDqw/1X+/4fUTQW7eqLvLzyu7rzzTd/t 6gvV/mb2RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATWZzLMN/9/aGFdlpPy2eZ heuvSwg77jb3+XGG+aFWrat+zXvLtzn0Gv/cEw/3h4mYBAAA 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: usb: core: Prevent null pointer dereference in update_port_device_state Currently, the function update_port_device_state gets the usb_hub from udev->parent by calling usb_hub_to_struct_hub. However, in case the actconfig or the maxchild is 0, the usb_hub would be NULL and upon further accessing to get port_dev would result in null pointer dereference. Fix this by introducing an if check after the usb_hub is populated. The Linux kernel CVE team has assigned CVE-2024-26716 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit 83cb2604f641 and fixed in 6.6.18 with commit ed85777c640c Issue introduced in 6.5 with commit 83cb2604f641 and fixed in 6.7.6 with commit 465b545d1d7e Issue introduced in 6.5 with commit 83cb2604f641 and fixed in 6.8 with commit 12783c0b9e2c 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-2024-26716 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/core/hub.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/ed85777c640cf9e6920bb1b60ed8cd48e1f4d873 https://git.kernel.org/stable/c/465b545d1d7ef282192ddd4439b08279bdb13f6f https://git.kernel.org/stable/c/12783c0b9e2c7915a50d5ec829630ff2da50472c