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 D397EE567 for ; Thu, 1 May 2025 14:13:23 +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=1746108803; cv=none; b=R5NScsn434PTuZG/sP+CSMJIH09tdRZEP+axSa2U8JgdC0OOAesBK5q6FAvlOwo1Qxs+43iqI/ENCsQFt83moAaDBcR/Ka41M+hE6BPnbcvUosUQcjg3L36iW4v4vnF9iyAeIxCtMp7tyMULcNehuW5YRh4c02XwSQKlzWf0G4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108803; c=relaxed/simple; bh=Ki1812E8w6etmI5RZgpgRb1ES6cBbPZnGh0nhkBIXmI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qe9cPzWqCgIPrNFuq04WJYx3wIWxn2Ole+JGezbCvybYPBDplMDWeO7gOVS1Du/xfMJN2Fd1MuuM71i4JPrbwCsyY+RRAy4SXSyWZo46u3x4eUMfr8I6qnGPcAudQtqY9a1ysfV4aY5Z0n3/14VsvqXYdELye7IWLTqzecHGu7k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=09oGGwdf; 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="09oGGwdf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3950EC4CEE3; Thu, 1 May 2025 14:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108803; bh=Ki1812E8w6etmI5RZgpgRb1ES6cBbPZnGh0nhkBIXmI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=09oGGwdfkXmk1Sx19uIkmfMlc4+blAv6TZxApKeI4uJyu5AmQ/bFxFckErV9j+5OH hfTB0HVwFcPNPo87A42f1qSK++8sx8lZ+ia+wm1O6467ogmSOf7TXWDpghJm5UL8M4 tOiSNKK8aKK+k97Uwo6Wgo7jVXwZDgEs8SsY51tw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49817: net: mhi: Fix memory leak in mhi_net_dellink() Date: Thu, 1 May 2025 16:10:07 +0200 Message-ID: <2025050132-CVE-2022-49817-0a77@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=2242; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xG31kPAXVwhLbylJpJBZ9bQM2GHCNPuD3sSjHZNwWWA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDXM+BZ22irjCHsj31dpqDn/nuXzBZotVCdz/S0KDG lZ+CTvaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJ2sIw32mz2AZxBqXNvwUO R091ko/22jLpPcMs5gW2swwfeQunMmpwGj58d6PoT90xAA== 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: mhi: Fix memory leak in mhi_net_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 calls free_netdev() to fix it since netdev_priv is used after unregister. The Linux kernel CVE team has assigned CVE-2022-49817 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 13adac032982c61bb590669e8e87e51558917ca1 and fixed in 5.15.80 with commit 88da008e5e2f9753726ea5a51ef2eb144e9de927 Issue introduced in 5.14 with commit 13adac032982c61bb590669e8e87e51558917ca1 and fixed in 6.0.10 with commit 25a270343b0f16e1f6e65f541a15975a35e238ff Issue introduced in 5.14 with commit 13adac032982c61bb590669e8e87e51558917ca1 and fixed in 6.1 with commit f7c125bd79f50ec6094761090be81d02726ec6f4 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-49817 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/mhi_net.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/88da008e5e2f9753726ea5a51ef2eb144e9de927 https://git.kernel.org/stable/c/25a270343b0f16e1f6e65f541a15975a35e238ff https://git.kernel.org/stable/c/f7c125bd79f50ec6094761090be81d02726ec6f4