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 5FDAB15A853 for ; Mon, 29 Jul 2024 15:54:03 +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=1722268443; cv=none; b=P8ogJfD6gu5x/2rKFRiu0KhtjifW48IMqJDBL5N876t1vPIrQvDNRxVkdSAdX85HoI3uMDGdhlY26lw6d4VtRmA1dR+iXsxvHm2YPi8ai9RPUYegkycNL5aVi12kp3jAqLxPUrQICcViqdk52/4SIQGyJw1PyVkmlBgAVhmguL8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722268443; c=relaxed/simple; bh=chHhgkjmUlDz+ztGXl7kqxAGUkke5YGnzB3c7ZvOzHo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FjOeKOi3riggP9YRGEJVHjl4oURJr+X4DCw2dribxpAsACiCqIEUgZ6jdxhGGIBSyaizocFe254w3q8kUc5woEjAcBZxP9cIOowPzslUijO6a0UTswIWibRhXX/YpCCaXPiJ71DovJqzzy50Ip6u7kIRU4Z4YzHGzAkezg2kSo0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NCmnaTj9; 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="NCmnaTj9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1E96C4AF0A; Mon, 29 Jul 2024 15:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722268443; bh=chHhgkjmUlDz+ztGXl7kqxAGUkke5YGnzB3c7ZvOzHo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NCmnaTj9F/vjV6CUxcufa5Vhh9KpfkWlvwebkN0pcBjPmSxtc2OD/iTF6cFT/2ZB7 ft8u6hkeJ8ETiS/N3WHRqnw74nDypQLjyVdGpy8L9L2T9Ge9CtpMtPu3Cx55JyMvL0 zDfw/g3rB8aXL4MNfJu24ZSlSVcFLLqQHFEa49PI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42069: net: mana: Fix possible double free in error handling path Date: Mon, 29 Jul 2024 17:52:58 +0200 Message-ID: <2024072952-CVE-2024-42069-a6b7@gregkh> X-Mailer: git-send-email 2.45.2 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=2066; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=chHhgkjmUlDz+ztGXl7kqxAGUkke5YGnzB3c7ZvOzHo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnLd12RXz/7tNe1M/d7p95dmnah9Oz/N+ZJLN8eXjt6K yp1N9PhaR2xLAyCTAyyYoosX7bxHN1fcUjRy9D2NMwcViaQIQxcnAIwke1HGOYnfWVg/LW9xXL1 Wj/3k5KZC31vxJgzzGadH8UXwJF7bsaGtdHhF6+f1f4kqggA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: mana: Fix possible double free in error handling path When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL. The Linux kernel CVE team has assigned CVE-2024-42069 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit a69839d4327d and fixed in 6.6.37 with commit 3243e64eb4d8 Issue introduced in 6.2 with commit a69839d4327d and fixed in 6.9.8 with commit ed45c0a0b662 Issue introduced in 6.2 with commit a69839d4327d and fixed in 6.10 with commit 1864b8224195 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-2024-42069 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/ethernet/microsoft/mana/mana_en.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/3243e64eb4d897c3eeb48b2a7221ab5a95e1282a https://git.kernel.org/stable/c/ed45c0a0b662079d4c0e518014cc148c753979b4 https://git.kernel.org/stable/c/1864b8224195d0e43ddb92a8151f54f6562090cc