From mboxrd@z Thu Jan 1 00:00:00 1970 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 4518E1EB1BB for ; Thu, 1 May 2025 14:16:29 +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=1746108989; cv=none; b=COhRv9WN87dD/uAGWeSTfq4stzPf6F7k5sV/C0meHzLLjz5OllGRPDjNA7ICvwpF6L+TrZse6nfdgkq8OzmGOBb3VX9RloXGTGTn+CQppyft9kPdXEvQpGsewfjCi6wWR7MAVfsGDH0TPO4VitrtfPjvCR3yqUsz5COr/7Irqkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108989; c=relaxed/simple; bh=K75xTCLvItTkEgcylVeC1xiaJbaMmkM7QkerCql6Ijc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YYcIbt5dzSubQEKUN/NLe6e/cAUsqOPn3Y7Kv1XkqMtHBPF32qS2lQjcKhrLYq5fTxj32WL3F35vT6tbN2LIhgryBNSyPIJRxG2NF623viH2T3kIkKoH+skYL+uibropMD6JEJrhd4+UpA0zSxnKJOaiCZW/0zEhfvA2qW6vvnw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pTlYhFhp; 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="pTlYhFhp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0027C4CEE3; Thu, 1 May 2025 14:16:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108989; bh=K75xTCLvItTkEgcylVeC1xiaJbaMmkM7QkerCql6Ijc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pTlYhFhp97mnfdL2nY0bJyUjJuJM6+Bt1j4qLYSax85mVDbJb35N10rVijLR+FAo2 C56TJhvRHFx9C64C9L8Ws1SVMUStOl0T2pOrLX4DdXy2W+KIwtBus6Q3D4tjp9Jdat cYphtzOALoyhaXZPPsx2SWWFPdKQp++sYhGiasFE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49867: net: wwan: iosm: fix memory leak in ipc_wwan_dellink Date: Thu, 1 May 2025 16:10:57 +0200 Message-ID: <2025050149-CVE-2022-49867-e420@gregkh> X-Mailer: git-send-email 2.49.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=2345; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=srijMZj3GlEVXu0Td3HrHUMONgkCmLlG1fKHdrJiVgE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDWsbJfNEpofxKB01jS0RSHY8rJsXc37b/MfvGd8c3 vpSYUVSRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkfSfD/LAVdZUWsvfa1+v4 HHhWephJXv3JZYb5AcY+zVr+y8JlJD/KaLFwv9fbqRkFAA== 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 memory leak in ipc_wwan_dellink IOSM driver registers network device without setting the needs_free_netdev flag, and does NOT call free_netdev() when unregisters network device, which causes a memory leak. This patch sets needs_free_netdev to true when registers network device, which makes netdev subsystem call free_netdev() automatically after unregister_netdevice(). The Linux kernel CVE team has assigned CVE-2022-49867 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 2a54f2c7793409736f2e5ea101e050b3f1997088 and fixed in 5.15.79 with commit 2ce2348c2858d723f7fe389dead9b43b08e0944e Issue introduced in 5.14 with commit 2a54f2c7793409736f2e5ea101e050b3f1997088 and fixed in 6.0.9 with commit 128514b51a5ba2c82f9e4a106f1c10423907618a Issue introduced in 5.14 with commit 2a54f2c7793409736f2e5ea101e050b3f1997088 and fixed in 6.1 with commit f25caaca424703d5a0607310f0452f978f1f78d9 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-2022-49867 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_wwan.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/2ce2348c2858d723f7fe389dead9b43b08e0944e https://git.kernel.org/stable/c/128514b51a5ba2c82f9e4a106f1c10423907618a https://git.kernel.org/stable/c/f25caaca424703d5a0607310f0452f978f1f78d9