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 9237A1EFFA6 for ; Thu, 1 May 2025 14:18:04 +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=1746109084; cv=none; b=mp9tJCwi/BZu4LwkVzpAYI80CotIHP8W7OdIadl1qzympk0iyY+LL1AhPYWVX1Rga0eJaDGy917LYIohc8EEsKXvtC6DwI5oWM3ZuuxQMrksnU57j/OAMMrzLuFmViUrzSjlk+38aFyRkuwVu/gqp7BeKbnsPMblY+iWrbpz/Rs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109084; c=relaxed/simple; bh=lCl/RbL0wHzbhVBzCZq7jNRpo84nP2AzH7YBcedV/Yc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rJWnkQxXu4M8+X+ebTFGJ0oVKTJTdopvhJO6YdO38OoGGxo5c3x/wN0ds6qy9t8va+IMDIuKY3A+QFon5bksHSjcjONx9njG1p7BuALLTuyrhJF1Qm8kh0McDFlSzKIdUlDecg6HluMDA2OPPDWc8/8ord7nxi/EXiPGfORgC2k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eo1rEZG/; 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="eo1rEZG/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0589EC4CEE3; Thu, 1 May 2025 14:18:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109084; bh=lCl/RbL0wHzbhVBzCZq7jNRpo84nP2AzH7YBcedV/Yc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eo1rEZG/RYewX3pIvB8Idq7ZAddL3AVnb1MDb/w/SmCtxTKAwitDpERHdKcdbVPD8 ovnVzj5VQZg4jOevJOsRFcoxOPE5CuDtd6trjqoBeuzkHhElkW2fSQGX2Ln4lKG0sN OfcndrGldbdAKjl3K8G20I7uQ64nd+0pSr3iFKk8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49866: net: wwan: mhi: fix memory leak in mhi_mbim_dellink Date: Thu, 1 May 2025 16:10:56 +0200 Message-ID: <2025050149-CVE-2022-49866-3ac8@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=2338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+J2599ksiu8mIddS7CEw/L6d8x09iM+gaU+YmhJVL+M=; b=kA0DAAIRMUfUDdst+ykByyZiAGgTgK2gv3rioXzoc/owYmvE6ScjOfN8MAEsNDNfqeVJzNvGK ohdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmgTgK0ACgkQMUfUDdst+ynp5gCgpaow FAny1jBVFcjD8Jp/FiIaPDMAn3zO+bp/QbsBjo9lz2dSvG7BlvSo 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: mhi: fix memory leak in mhi_mbim_dellink MHI 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-49866 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit aa730a9905b7b079ef2fffdab7f15dbb842f5c7c and fixed in 5.15.79 with commit 2845bc9070cef0c651987487d84d4813d64675dd Issue introduced in 5.15 with commit aa730a9905b7b079ef2fffdab7f15dbb842f5c7c and fixed in 6.0.9 with commit 3cd3ffe952f78ec5dadf300cb58d4b38a0c0106d Issue introduced in 5.15 with commit aa730a9905b7b079ef2fffdab7f15dbb842f5c7c and fixed in 6.1 with commit 668205b9c9f94d5ed6ab00cce9a46a654c2b5d16 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-49866 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/mhi_wwan_mbim.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/2845bc9070cef0c651987487d84d4813d64675dd https://git.kernel.org/stable/c/3cd3ffe952f78ec5dadf300cb58d4b38a0c0106d https://git.kernel.org/stable/c/668205b9c9f94d5ed6ab00cce9a46a654c2b5d16