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 7770B337EA0 for ; Wed, 17 Sep 2025 14:59:16 +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=1758121156; cv=none; b=KBb3CxdtdXecEHuKNHaMFEnzW6332PzSDNhK0c4eyqAsP1EJVZO8N9uH3KWYAiLihSgiPhEzvKb8EVdYAHwnNKMnSLlhRA9VFZXojOD9BBXwL9lC3J+bWEh+nVgW6IO4vq5NYK6m13uQCRQUWlCAAmQtxknCBO3xIu0nR91WrTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758121156; c=relaxed/simple; bh=80E42c4UBSuF7uCaSTg3JJz+YQUVz30wmY7AT5TJ1a0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k3MUlXctHKO6a/MZJn48cjvyVcSAGPEzsUJ9KZaPWTaTYF3N1wiqqkYK2TZ7W6IpgjqZ7wuXqQkZ2GYWTKKfnTKkO0DuFu6Bw/ZB613tO4F/3keynPrbY3UrE3SIboIhU9TgpZFSwJXwJFdFIfuS5RURs8QAbvmaU19sEeRH1NI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xmbtFxG5; 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="xmbtFxG5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA301C4CEF0; Wed, 17 Sep 2025 14:59:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758121156; bh=80E42c4UBSuF7uCaSTg3JJz+YQUVz30wmY7AT5TJ1a0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xmbtFxG52NcTI1sCrjg5RjT8Ml45LLbihi+N6LCJq0a6xAeIy0HSMEgL+uSSB1XAw ZwZ6zX9AwcMvZCiTu+vcuWgCd34e0K3hC7h+sFEIz4ZCoDvawPnSsZOtVvuM3yuncI Ch3vRPFIszpon8zSN9cRTvD6HAejfwdFweorXeGw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53356: usb: gadget: u_serial: Add null pointer check in gserial_suspend Date: Wed, 17 Sep 2025 16:56:55 +0200 Message-ID: <2025091721-CVE-2023-53356-5383@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=2833; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PBlw2bw7LbNQqLhhewvsUQ+PJSwZcZ7bIEOXlqPBUYI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmnzoiKXiu989WunGnudHazt81JT3lv7px9I7HngLLVM aNg5cnLOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAit/cxLNh95ZaGxxOdFypX 3PlunetefuP5/1CGeWZbnXeYKtQdarjhpWn64NwpFb+t1wE= 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_suspend Consider a case where gserial_disconnect has already cleared gser->ioport. And if gserial_suspend gets called afterwards, it will lead to accessing of gser->ioport and thus causing null pointer dereference. Avoid this by adding a null pointer check. Added a static spinlock to prevent gser->ioport from becoming null after the newly added null pointer check. The Linux kernel CVE team has assigned CVE-2023-53356 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 5.10.188 with commit 2788a3553f7497075653210b42e2aeb6ba95e28e Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 5.15.121 with commit a8ea7ed644cbf6314b5b0136b5398754b549fb8f Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 6.1.39 with commit e60a827ac074ce6bd58305fe5a86afab5fce6a04 Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 6.4.4 with commit 374447e3367767156405bedd230c5d391f4b7962 Issue introduced in 5.8 with commit aba3a8d01d623a5efef48ab8e78752d58d4c90c3 and fixed in 6.5 with commit 2f6ecb89fe8feb2b60a53325b0eeb9866d88909a 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-53356 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/2788a3553f7497075653210b42e2aeb6ba95e28e https://git.kernel.org/stable/c/a8ea7ed644cbf6314b5b0136b5398754b549fb8f https://git.kernel.org/stable/c/e60a827ac074ce6bd58305fe5a86afab5fce6a04 https://git.kernel.org/stable/c/374447e3367767156405bedd230c5d391f4b7962 https://git.kernel.org/stable/c/2f6ecb89fe8feb2b60a53325b0eeb9866d88909a