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 93F8821B18A for ; Wed, 26 Feb 2025 02:25: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=1740536704; cv=none; b=RlaYMEWwIPFlII8+V0EKX8t2rYuGiVsHQMYB0EAZLteVHzUo34qiw1WAg8IWUqEtifTIUy4DJOd+c+UGq+s6zs2gYceJLmNIuV0bUqekSrjoq+fQbb21zuzriYMxlgDsoq3ctuHkr03ApI2gb5Vw3LL2OppP5VxOgdmzVhzAD9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536704; c=relaxed/simple; bh=RimdNq34A0MQ57IP4eiEumblgwyMT6ThextjzU0xwdU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DWV6fO1zOE8RN+Lwm2aKP0aCOvsStoPwgp6bbVEOLgLJnITWZPTmG+n8KysWeFZp3fr091H+gTWJ3n18Vs///ZeglGbKkvL9v6LIuRoPTjScPxuAkAeuWcdNU0TtTD1kUpSCid3GAvlcS53nTvCJurwJ02sCj6eMDWKWL6mm8m0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bZo+Kd8p; 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="bZo+Kd8p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60D77C4CEDD; Wed, 26 Feb 2025 02:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536704; bh=RimdNq34A0MQ57IP4eiEumblgwyMT6ThextjzU0xwdU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bZo+Kd8p4npmOVTitjHff+V89GPuRL5RQVUxtdBDt1r3D2lW2d4eL1G56gH/QUvRJ odSiQa69N375mlKXmFOZ9rKuCwyiKUYVK6NYfu5ySDVAhwb8XnMwt3FNZ95NCGPwff xEnp4txIWKM+b9Mor2BqtouiiAwWTvmaKkgmPqgk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49672: net: tun: unlink NAPI from device on destruction Date: Wed, 26 Feb 2025 03:23:55 +0100 Message-ID: <2025022624-CVE-2022-49672-e5ec@gregkh> X-Mailer: git-send-email 2.48.1 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=2918; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RimdNq34A0MQ57IP4eiEumblgwyMT6ThextjzU0xwdU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qh4EWv/55zZNT1jt1xy7b90XPp2+yWb9rsuAMVdr2 zuP9usdHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRqX4M8+zmH9CftCj4fU++ 5CI5wRztpc2ifxjmF24/GK71+ME26wYRNiPj1pXF7w70AAA= 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: tun: unlink NAPI from device on destruction Syzbot found a race between tun file and device destruction. NAPIs live in struct tun_file which can get destroyed before the netdev so we have to del them explicitly. The current code is missing deleting the NAPI if the queue was detached first. The Linux kernel CVE team has assigned CVE-2022-49672 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 943170998b200190f99d3fe7e771437e2c51f319 and fixed in 4.19.251 with commit 82e729aee59acefe135fceffadcbc5b86dd4f1b9 Issue introduced in 4.15 with commit 943170998b200190f99d3fe7e771437e2c51f319 and fixed in 5.4.204 with commit a8cf919022373c97a84fe596bbea544f909c485d Issue introduced in 4.15 with commit 943170998b200190f99d3fe7e771437e2c51f319 and fixed in 5.10.129 with commit bec1be0a745ab420718217e3e0d9542a75108989 Issue introduced in 4.15 with commit 943170998b200190f99d3fe7e771437e2c51f319 and fixed in 5.15.53 with commit 8145f77d38de4f88b8a69e1463f5c09ba189d77c Issue introduced in 4.15 with commit 943170998b200190f99d3fe7e771437e2c51f319 and fixed in 5.18.10 with commit 8661d4b8faa2f7ee7a559969c0a7c57f077b1728 Issue introduced in 4.15 with commit 943170998b200190f99d3fe7e771437e2c51f319 and fixed in 5.19 with commit 3b9bc84d311104906d2b4995a9a02d7b7ddab2db 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-49672 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/tun.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/82e729aee59acefe135fceffadcbc5b86dd4f1b9 https://git.kernel.org/stable/c/a8cf919022373c97a84fe596bbea544f909c485d https://git.kernel.org/stable/c/bec1be0a745ab420718217e3e0d9542a75108989 https://git.kernel.org/stable/c/8145f77d38de4f88b8a69e1463f5c09ba189d77c https://git.kernel.org/stable/c/8661d4b8faa2f7ee7a559969c0a7c57f077b1728 https://git.kernel.org/stable/c/3b9bc84d311104906d2b4995a9a02d7b7ddab2db