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 201341EBA05 for ; Mon, 21 Oct 2024 20:11:57 +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=1729541517; cv=none; b=Y4tmHLw+ta91HaB4KrAmNGIxpQDGT7XrLxj9fWgYf7h5k3wi//8owY1s03ug+W77Jb7W46AFU9gneS6HSef/ALb7+iTnQ2t0e1XvaPsg5GZtBgETYjAiuWXp6vVJNZJCn8nH1iNC7f1QYvwWdnQV4PHndAroVHpVFH9LrgXEhus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541517; c=relaxed/simple; bh=jKM8bbRid0YLwGHFwdRb+0oQb4RhE8L391E1GGqN7BI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e/h902nDu0dbe+LQvX0Kr/E4mApe5nRM+77lpChR2CauEPa2aLRB0jy9rklL9HQHBgmYbpJY/DpXsKhdd0yaIDNHiKD7vHpD7MjVHqbMxgtBSfL61e6+M2aFS9EUjB46xhnCvGV6mAUG5YJL0JEZL0FKpW7tl+mgxqrb4yAxPfE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S0TvuTTA; 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="S0TvuTTA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 936CEC4CEC3; Mon, 21 Oct 2024 20:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541517; bh=jKM8bbRid0YLwGHFwdRb+0oQb4RhE8L391E1GGqN7BI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=S0TvuTTAtCrM5b+cwp5tN7exMf9Rc/sms/kwJhqhrJ6SLk4ZGb4bO+JUjnJnsacVh /0M3uLdz/mdmRQvVgjnjHDcBunZKw9nhqoJFv12LrZkmmTAO3dFiDwNIGVdOWnW+Rq /mmDgl/lK9wwEn9P6PAth1gT8laOKVI05k31VQnQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48955: net: thunderbolt: fix memory leak in tbnet_open() Date: Mon, 21 Oct 2024 22:05:47 +0200 Message-ID: <2024102141-CVE-2022-48955-d31e@gregkh> X-Mailer: git-send-email 2.47.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=2004; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jKM8bbRid0YLwGHFwdRb+0oQb4RhE8L391E1GGqN7BI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW8QeGN06vN1RxGlz3l5dncSzR89P3tan/llA91GRG 8uHVesKO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAid2wZ5iloubNd3r23YNvG 0hObuxu1vkpwf2GYzXrVyb9q285/Myr+Gc/Y9Cdw40m92wA= 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: thunderbolt: fix memory leak in tbnet_open() When tb_ring_alloc_rx() failed in tbnet_open(), ida that allocated in tb_xdomain_alloc_out_hopid() is not released. Add tb_xdomain_release_out_hopid() to the error path to release ida. The Linux kernel CVE team has assigned CVE-2022-48955 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 180b0689425c and fixed in 5.15.83 with commit b9274dbe3999 Issue introduced in 5.13 with commit 180b0689425c and fixed in 6.0.13 with commit ed6e955f3b7e Issue introduced in 5.13 with commit 180b0689425c and fixed in 6.1 with commit ed14e5903638 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-48955 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/thunderbolt.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/b9274dbe399952a8175db2e1ee148b7c9ba2b538 https://git.kernel.org/stable/c/ed6e955f3b7e0e622c080f4bcb5427a5e1af4c2a https://git.kernel.org/stable/c/ed14e5903638f6eb868e3e2b4e610985e6a6c876