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 211FD26E6F6 for ; Sat, 4 Oct 2025 15:19:55 +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=1759591195; cv=none; b=oVVxs9E/7rw35El5fym4J8op85dO0ipf7+6AO24gpyXexQ+LFb+yJUUYmQmTTQ+Mu/BNrwt+PqawF03kgwVWk2KJMjN7tNNP2lNshAUupx0rubTAqUkU9dqypFzBujtFrhPUtBNBIHnENtiSG7FwQOi+pa+9Lva6kioU+WcDxxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759591195; c=relaxed/simple; bh=9DKae0RtoYbJpsDDxjeQSVg2jU/fAJL8SDvQb3Cy21c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nZtKvVvyPFvPoed56nA8n6uTO5qyaM0XzzQclDdLEYgdGFpgb8mMS183Cou24YPL/0FrUJgc47i1Skgg5/ktHKsTlvGaIRe1hFyFp9MzME4AMejDfogQjiIgifnep3466gOaaaroMR9zZm7WTikkdrHqDW5RBzJ3FJ1zEEDn2tQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oFyZbubh; 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="oFyZbubh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96FFAC4CEF1; Sat, 4 Oct 2025 15:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759591195; bh=9DKae0RtoYbJpsDDxjeQSVg2jU/fAJL8SDvQb3Cy21c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oFyZbubh506LTQZQZJMjhGpMmB7PTkE52vktaZQSaf0uRPd79+QH11gjGJYJX8aDH 7Q5MFkSfa94/95pho+0anEcNgzM26MsWRKTaTJ3a3K65e0nYeGRnCiJ+1zchCuI+ES qXt0B/1/5/H2dgOVUOrqrYrJneSM+0PeG7+NyhNQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53561: net: wwan: iosm: fix NULL pointer dereference when removing device Date: Sat, 4 Oct 2025 17:17:15 +0200 Message-ID: <2025100450-CVE-2023-53561-75a1@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=2858; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QmKAOc2mg1t13jmNzRytmtq5HwZ3+HCFr+NF4CzuaNU=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkPrZKuB/0RDrZ48eNMwtXDPqt0ztpeazLMmfvO1anNM 8mNR0ywI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZiYcUwV+jAtInG+k8jW25d WpTuX+oacSRZn2GuvLBxmslD+8Iba8NS7pZ4/vm/KZwNAA== 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: net: wwan: iosm: fix NULL pointer dereference when removing device In suspend and resume cycle, the removal and rescan of device ends up in NULL pointer dereference. During driver initialization, if the ipc_imem_wwan_channel_init() fails to get the valid device capabilities it returns an error and further no resource (wwan struct) will be allocated. Now in this situation if driver removal procedure is initiated it would result in NULL pointer exception since unallocated wwan struct is dereferenced inside ipc_wwan_deinit(). ipc_imem_run_state_worker() to handle the called functions return value and to release the resource in failure case. It also reports the link down event in failure cases. The user space application can handle this event to do a device reset for restoring the device communication. The Linux kernel CVE team has assigned CVE-2023-53561 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 3670970dd8c661c10c10c300d726f59428eaad32 and fixed in 6.1.30 with commit ee44bacf462db3ec6e4f0dcfa7931e768670d77c Issue introduced in 5.14 with commit 3670970dd8c661c10c10c300d726f59428eaad32 and fixed in 6.3.4 with commit 862c6e3e26735247d8a4df41fa2421909c3f4d63 Issue introduced in 5.14 with commit 3670970dd8c661c10c10c300d726f59428eaad32 and fixed in 6.4 with commit 60829145f1e2650b31ebe6a0ec70a9725b38fa2c 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-53561 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/net/wwan/iosm/iosm_ipc_imem.c drivers/net/wwan/iosm/iosm_ipc_imem_ops.c drivers/net/wwan/iosm/iosm_ipc_imem_ops.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/ee44bacf462db3ec6e4f0dcfa7931e768670d77c https://git.kernel.org/stable/c/862c6e3e26735247d8a4df41fa2421909c3f4d63 https://git.kernel.org/stable/c/60829145f1e2650b31ebe6a0ec70a9725b38fa2c