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 B10ED166F23 for ; Wed, 18 Sep 2024 06:33:00 +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=1726641180; cv=none; b=omAa76O/zGLJ19uYhq79RozvcW6KBW86zu9LPyQ3IHqjPWXtpW80oD+Ft2vkBn0uWzU4Ho+YBexmOVF3dY4ppj7ymzocTXukrzAHdXJDoS+ZGulJEotjUB2M63f0+dXLRYHIiTxU2nKomZX0WBXyd8cDtfS5QHOFLKgHISH7Mw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726641180; c=relaxed/simple; bh=Z4N/AlQ3sXHdCW2J1SFly/zBle0407jYPg8txsTdKhc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hYPZToh0w9c0u2ur/l0qdGPS0FvPKCKFUMki+Ux4JPtNNvDrdHUXrEdMool/jk/zrDZDO5ux0js+jdvhzUsCOelsOwzmNs9XpC/PVX1GfuSem+bkzkxDXF0ae33iZZhDWAIrB/p8oRAWHotNiUjz19Lx/klA1blnynuM43MlUT0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oXuhNXvM; 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="oXuhNXvM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E00D6C4CECE; Wed, 18 Sep 2024 06:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726641180; bh=Z4N/AlQ3sXHdCW2J1SFly/zBle0407jYPg8txsTdKhc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oXuhNXvMGo05EHbw8BV9qJjcDRDJOsTLNcmA7iMuIs9C03qt+6i82XL2XJNxytfHZ LFCDzjPiCrt4+yoFq5ETdsqfIB00lkLOPSHHQkz5/L602qS36aQ7HO+qm8x37W8Cbz dH4uu2oT07f0mhrw9KR0VCWCQ+PjRoN1z0jBaRHk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46719: usb: typec: ucsi: Fix null pointer dereference in trace Date: Wed, 18 Sep 2024 08:32:36 +0200 Message-ID: <2024091834-CVE-2024-46719-4a53@gregkh> X-Mailer: git-send-email 2.46.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=2533; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Z4N/AlQ3sXHdCW2J1SFly/zBle0407jYPg8txsTdKhc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmvSphcvvbuWTVhvvHO701PK/hYI5xPsBn7SX8RuRJQ6 8ThcOxsRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkcSTD/KBfE03XXs7Q5mZx 2teaVivK+PWqBcOCa8tfPlRwOKXi+9p8//Jn1za2V75jBAA= 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: typec: ucsi: Fix null pointer dereference in trace ucsi_register_altmode checks IS_ERR for the alt pointer and treats NULL as valid. When CONFIG_TYPEC_DP_ALTMODE is not enabled, ucsi_register_displayport returns NULL which causes a NULL pointer dereference in trace. Rather than return NULL, call typec_port_register_altmode to register DisplayPort alternate mode as a non-controllable mode when CONFIG_TYPEC_DP_ALTMODE is not enabled. The Linux kernel CVE team has assigned CVE-2024-46719 to this issue. Affected and fixed versions =========================== Fixed in 5.4.284 with commit 8095bf0579ed Fixed in 5.10.226 with commit 7e64cabe81c3 Fixed in 5.15.167 with commit 3aa56313b0de Fixed in 6.1.109 with commit b4243c05d7e3 Fixed in 6.6.50 with commit 3b9f2d9301ae Fixed in 6.10.9 with commit 99331fe68a8e Fixed in 6.11 with commit 99516f76db48 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-46719 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/typec/ucsi/ucsi.h 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/8095bf0579ed4906a33f7bec675bfb29b6b16a3b https://git.kernel.org/stable/c/7e64cabe81c303bdf6fd26b6a09a3289b33bc870 https://git.kernel.org/stable/c/3aa56313b0de06ce1911950b2cc0c269614a87a9 https://git.kernel.org/stable/c/b4243c05d7e3db0bdbf9124e6fa59b4ca7c807ae https://git.kernel.org/stable/c/3b9f2d9301ae67070fe77a0c06758722fd7172b7 https://git.kernel.org/stable/c/99331fe68a8eaa4097143a33fb0c12d5e5e8e830 https://git.kernel.org/stable/c/99516f76db48e1a9d54cdfed63c1babcee4e71a5