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 B959A1FA26F for ; Mon, 21 Oct 2024 18:05:30 +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=1729533930; cv=none; b=lVncZ0t8/M6nYk7/ZtqSrSNMnK00dHMZK1YA1pH4JWySoHuAOTnphA83+sg0hue5uQSYeLxiesSk4igl9/R4GblCA/ObfPAoNTYhaQCK8pPre2f/NRpZl/7JntUT3V8WmlYFQmXL/0r625FL6POD4VaZtGzUBlj7nyPv47+2CZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533930; c=relaxed/simple; bh=A+uO5BRYqraHwskn4FwBzOwqJI+tlWaFWL4ye5O1Hjc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kmd5zbKpPw2paCjYvkuIezIoAOyjUdI6OA4Vy3wmpWcPRO1vvh/wkJKqXL1+niRU5DaUKneEh6gcWEgfaNYhe7k7V0bgvX02b/tWds95Q6dHomccWy7PN+A17hiyd2fmGtHxg4hCbNY0cqd9nK9zHPq+epEldOudl+QMOvWujkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=d3LHyEGs; 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="d3LHyEGs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05C25C4CEC3; Mon, 21 Oct 2024 18:05:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533930; bh=A+uO5BRYqraHwskn4FwBzOwqJI+tlWaFWL4ye5O1Hjc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=d3LHyEGsK0ZmZIbPYMMWDDNb8GA4Rl+sn/+lhgdPduMIYE+zxSvPWs9PC9xNOY5pK xKfGKEos3rkDd21cxk/7k03OlaFo6jI49YYQeCOWgoR0Qg+ZHKgKj80JXrEwISVQJ+ PL4YdyFBiezv4FQOwGwgUbgscQyiiV3IbompBhgE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49936: net/xen-netback: prevent UAF in xenvif_flush_hash() Date: Mon, 21 Oct 2024 20:02:24 +0200 Message-ID: <2024102127-CVE-2024-49936-bf74@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=2508; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=A+uO5BRYqraHwskn4FwBzOwqJI+tlWaFWL4ye5O1Hjc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli077fvP/SWFk/af2EgK79laYLU4tn9S63NbmUvvaZr 3CSSoV2RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk8lmG+V51KooZnnlf1mSn LvO7VunzW8WChWF+VdKymzId75kb/DZ5OrHPP3thx0ZDAA== 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/xen-netback: prevent UAF in xenvif_flush_hash() During the list_for_each_entry_rcu iteration call of xenvif_flush_hash, kfree_rcu does not exist inside the rcu read critical section, so if kfree_rcu is called when the rcu grace period ends during the iteration, UAF occurs when accessing head->next after the entry becomes free. Therefore, to solve this, you need to change it to list_for_each_entry_safe. The Linux kernel CVE team has assigned CVE-2024-49936 to this issue. Affected and fixed versions =========================== Fixed in 5.10.227 with commit a7f0073fcd12 Fixed in 5.15.168 with commit a0465723b858 Fixed in 6.1.113 with commit efcff6ce7467 Fixed in 6.6.55 with commit 143edf098b80 Fixed in 6.10.14 with commit d408889d4b54 Fixed in 6.11.3 with commit 54d8639af556 Fixed in 6.12-rc1 with commit 0fa5e94a1811 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-49936 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/xen-netback/hash.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/a7f0073fcd12ed7de185ef2c0af9d0fa1ddef22c https://git.kernel.org/stable/c/a0465723b8581cad27164c9073fd780904cd22d4 https://git.kernel.org/stable/c/efcff6ce7467f01f0753609f420333f3f2ceceda https://git.kernel.org/stable/c/143edf098b80669d05245b2f2367dd156a83a2c5 https://git.kernel.org/stable/c/d408889d4b54f5501e4becc4dbbb9065143fbf4e https://git.kernel.org/stable/c/54d8639af5568fc41c0e274fc3ec9cf86c59fcbb https://git.kernel.org/stable/c/0fa5e94a1811d68fbffa0725efe6d4ca62c03d12