[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025050205-CVE-2023-53049-10de@gregkh>
Date: Fri, 2 May 2025 17:55:14 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2023-53049: usb: ucsi: Fix NULL pointer deref in ucsi_connector_change()
From: Greg Kroah-Hartman <gregkh@...nel.org>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
usb: ucsi: Fix NULL pointer deref in ucsi_connector_change()
When ucsi_init() fails, ucsi->connector is NULL, yet in case of
ucsi_acpi we may still get events which cause the ucs_acpi code to call
ucsi_connector_change(), which then derefs the NULL ucsi->connector
pointer.
Fix this by not setting ucsi->ntfy inside ucsi_init() until ucsi_init()
has succeeded, so that ucsi_connector_change() ignores the events
because UCSI_ENABLE_NTFY_CONNECTOR_CHANGE is not set in the ntfy mask.
The Linux kernel CVE team has assigned CVE-2023-53049 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit bdc62f2bae8fb0e8e99574de5232f0a3c54a27df and fixed in 5.10.177 with commit a6adfe9bbd6ac11e398b54ccd99a0f8eea09f3c0
Issue introduced in 5.5 with commit bdc62f2bae8fb0e8e99574de5232f0a3c54a27df and fixed in 5.15.105 with commit 7dd27aed9c456670b3882877ef17a48195f21693
Issue introduced in 5.5 with commit bdc62f2bae8fb0e8e99574de5232f0a3c54a27df and fixed in 6.1.22 with commit 1c5abcb13491da8c049f20462189c12c753ba978
Issue introduced in 5.5 with commit bdc62f2bae8fb0e8e99574de5232f0a3c54a27df and fixed in 6.2.9 with commit 7ef0423e43f877a328454059d46763043ce3da44
Issue introduced in 5.5 with commit bdc62f2bae8fb0e8e99574de5232f0a3c54a27df and fixed in 6.3 with commit f87fb985452ab2083967103ac00bfd68fb182764
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-2023-53049
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.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/a6adfe9bbd6ac11e398b54ccd99a0f8eea09f3c0
https://git.kernel.org/stable/c/7dd27aed9c456670b3882877ef17a48195f21693
https://git.kernel.org/stable/c/1c5abcb13491da8c049f20462189c12c753ba978
https://git.kernel.org/stable/c/7ef0423e43f877a328454059d46763043ce3da44
https://git.kernel.org/stable/c/f87fb985452ab2083967103ac00bfd68fb182764
Powered by blists - more mailing lists