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 3763A3C9EDF for ; Fri, 1 May 2026 14:21:42 +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=1777645302; cv=none; b=FC1H0BPDc0aeXlBtmsag+xmKIjBBWdg+E/1q+OrxUoqlvckvAQk9M+hNFlDwWTkEurCpuTu0qiYOno+o3jaM3wNvPENS89OiPYN6xUTRRaj+nYRYeY+z1Ew2OnDDxaYljhsfidPrWnJ/WJyMs9aqvaVTbhfyexGROjGovUV4h/o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645302; c=relaxed/simple; bh=0eYswGeGH6gYVYpnNDk9VMT9qzRkX9IiWi/Rb7wDyyU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qyk0BYCtADD4ei2c6TaU/mjCgNh2rc37h0CuTDci598ibMbAxP3dm/28/s7D34Cm4O1uXAVq+tJDK40hXvXAZFr6VNoMVmtSChGEeOtAYiSOWMbSxIYIlLZgj10KAOChF5axDN6eDkhJC0cZPjwaat/LEhpnaodjuYS8GzhP+1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QMj22xbI; 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="QMj22xbI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF357C2BCB4; Fri, 1 May 2026 14:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645302; bh=0eYswGeGH6gYVYpnNDk9VMT9qzRkX9IiWi/Rb7wDyyU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QMj22xbIwyX7XIiSMerWgithC2J1Me14wdqLYQW5kA482QpolZ/CbqQ9l2pebtYeB ThMDaVcfKywm77nysqVUePsuTM5glWCf8c0rSGapnrY/fBzJefx9B+1wINsExPiSd8 6dY0dPwOLbzpwFHU7+XVTTQ50+jkFG5BqPnOm7WQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43056: net: mana: fix use-after-free in add_adev() error path Date: Fri, 1 May 2026 16:16:29 +0200 Message-ID: <2026050108-CVE-2026-43056-fefd@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3020; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YKpxHOPoxYRmYRhLKbppkUmvRUZcnPJLWb67NjNtD5E=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftuYcCD2wavZWgZhDZ49z7mwLzM+Qq63Tq3+67PUS1 doZd4oaOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAit5oZFhzSEKwMNlvTeTU7 5abP0tt7V7/IPsWwYPaH+h3aDGoXFs9IzM72m3g1TZH9AwA= 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: mana: fix use-after-free in add_adev() error path If auxiliary_device_add() fails, add_adev() jumps to add_fail and calls auxiliary_device_uninit(adev). The auxiliary device has its release callback set to adev_release(), which frees the containing struct mana_adev. Since adev is embedded in struct mana_adev, the subsequent fall-through to init_fail and access to adev->id may result in a use-after-free. Fix this by saving the allocated auxiliary device id in a local variable before calling auxiliary_device_add(), and use that saved id in the cleanup path after auxiliary_device_uninit(). The Linux kernel CVE team has assigned CVE-2026-43056 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit a69839d4327d053b18d8e1b0e7ddeee78db78f4f and fixed in 6.6.134 with commit d88541ffd56d62a61e77209080001eddd4d69815 Issue introduced in 6.2 with commit a69839d4327d053b18d8e1b0e7ddeee78db78f4f and fixed in 6.12.81 with commit 43f5b19fd190fea20d052bc84741b28031d5baa9 Issue introduced in 6.2 with commit a69839d4327d053b18d8e1b0e7ddeee78db78f4f and fixed in 6.18.22 with commit 5f4061f8225d18695e5afe9bbf1cb7bd673d7872 Issue introduced in 6.2 with commit a69839d4327d053b18d8e1b0e7ddeee78db78f4f and fixed in 6.19.12 with commit e5a75bf026c686b91a7dc6f9c5caf5016745d1fe Issue introduced in 6.2 with commit a69839d4327d053b18d8e1b0e7ddeee78db78f4f and fixed in 7.0 with commit c4ea7d8907cf72b259bf70bd8c2e791e1c4ff70f 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-2026-43056 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/d88541ffd56d62a61e77209080001eddd4d69815 https://git.kernel.org/stable/c/43f5b19fd190fea20d052bc84741b28031d5baa9 https://git.kernel.org/stable/c/5f4061f8225d18695e5afe9bbf1cb7bd673d7872 https://git.kernel.org/stable/c/e5a75bf026c686b91a7dc6f9c5caf5016745d1fe https://git.kernel.org/stable/c/c4ea7d8907cf72b259bf70bd8c2e791e1c4ff70f