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 338B926E6F6 for ; Sat, 4 Oct 2025 15:18:26 +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=1759591106; cv=none; b=JvT7uEjG2cLyiW6vgIVbYKSZ9caLwWtQzA83Mqzn1tBpNmV3ZyjD3fi8OtsIQ/Loo8hE0d35lgkTS/ahexJnE2uG/BfQHvoQR3SU7Mft2ukkJMkniev6hJ1v0zmGF6j1BkFWY5nMQRWUnQcEgzvbCxysr5ExLS237vrnrWLpDPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591106; c=relaxed/simple; bh=kw87ARelKHqcy5IN6EQWG1bx7qH1/A/OMuQFIGv4+BY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mwuzxqOR60hcf9VEGmUucKTf5pn66sbQo72IWU4iwm1PyTfAXwU7C3sQu5aIR33nmZ5/zuVj3OXGhXxdIHyiXt4H4mMpqiNx011N1pUS57rBWjWAqXzp/Vbw04x4QFlL4khymKVWQ7TLjXOo/jb7sG/HkP6DP3HoHJSJXqphZdQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IGg/laO0; 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="IGg/laO0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8BE7C4CEF1; Sat, 4 Oct 2025 15:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591106; bh=kw87ARelKHqcy5IN6EQWG1bx7qH1/A/OMuQFIGv4+BY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IGg/laO03wnZoIdUgz1YU5qEGgGdYlyBVrY5U5QfuK9r/DuX8hnxi2RWoDoBIQsG/ oHIzciZVslCrYd9qI97IJVxnW1q8GzrZHKY9AQtZUGf9c6Hp0au+G5Fqx9gRY/sEzF ppVXHhVH1KLbenv2PocxOpCjaqNKYY9OMf7i8m3I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53551: usb: gadget: u_serial: Add null pointer check in gserial_resume Date: Sat, 4 Oct 2025 17:17:05 +0200 Message-ID: <2025100447-CVE-2023-53551-4afc@gregkh> X-Mailer: git-send-email 2.51.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=2847; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=r3LDPhyRrlAYXADZCR3M0z0KC4cJnLTVA5LxCAPf8nw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPreK37Op9n/1pTlh0judZed778qvOHDSTi1Gs/2wXw tj+9mFiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkcjXDgv1OLRZKK+3e80t3 Vp4ITDVqLeGewjA/vuXl3K9tLSdbVXbJbb1wvmbbmoW9AA== 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: usb: gadget: u_serial: Add null pointer check in gserial_resume Consider a case where gserial_disconnect has already cleared gser->ioport. And if a wakeup interrupt triggers afterwards, gserial_resume gets called, which will lead to accessing of gser->ioport and thus causing null pointer dereference.Add a null pointer check to prevent this. Added a static spinlock to prevent gser->ioport from becoming null after the newly added check. The Linux kernel CVE team has assigned CVE-2023-53551 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 5.10.171 with commit c5360eec648bd506afa304ae4a71f82e13d41897 Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 5.15.97 with commit 3b24c980dc07be4550a9d1450ed7057f882530e5 Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 6.1.15 with commit ec357cd3e8af614855d286dd378725cdc7264df6 Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 6.2.2 with commit 44e004f757a7ae13dfebaadbcfdb1a6f98c10377 Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 6.3 with commit 5ec63fdbca604568890c577753c6f66c5b3ef0b5 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-53551 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/gadget/function/u_serial.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/c5360eec648bd506afa304ae4a71f82e13d41897 https://git.kernel.org/stable/c/3b24c980dc07be4550a9d1450ed7057f882530e5 https://git.kernel.org/stable/c/ec357cd3e8af614855d286dd378725cdc7264df6 https://git.kernel.org/stable/c/44e004f757a7ae13dfebaadbcfdb1a6f98c10377 https://git.kernel.org/stable/c/5ec63fdbca604568890c577753c6f66c5b3ef0b5