From mboxrd@z Thu Jan 1 00:00:00 1970 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 B4EE64E1CB for ; Wed, 1 May 2024 05:32:53 +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=1714541573; cv=none; b=P/hWbeCEVCENYhyY9FzWLL19PYQ3VoapwEoZhke2mJxG0LWrTWB0+wVFl/GFE3KQWgIGSiBY0gZD/ieZIm46WhERtABVbQ/h/Cxt3I+L3wWbW7wUDk0zIW6rMjH32yy0KQjcTqQp2ZPKbOtu15Ii+Vk7D46y2GXUPUWBsCozUzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541573; c=relaxed/simple; bh=hMCbn0PfZs2MnaOUGM58hbhv0nMtTAdVdWqgZdZUC5A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZqJsXFH/bktnwv0oRH8PZTh4p4GLG1pf9l24PgB/AxIb4yo2VdW8ZSx8XsFdWDYkpspoUE4BdNkC+rcnxlnzeN8pfRRNqmtofhP/nh8nS3Tw2zndSg//9I3yolvjDNx1/vU5Hy4A3bdDJqMPecJjwlI9XvoVLjePHELfJOEmnTY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EEArQG71; 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="EEArQG71" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F611C4AF1A; Wed, 1 May 2024 05:32:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541573; bh=hMCbn0PfZs2MnaOUGM58hbhv0nMtTAdVdWqgZdZUC5A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=EEArQG71esI6d0CvjzgmJ/FXu0nEaPOd645unoDXTqhDfvsh+HxO2+nV35vqbXaQN OjPZzhujJRlkUglKYTwbSjt8wXwiULBNsHqQquUoT2kdGApLM2QhOv9jR0rC6TxX+D lfOfV5rsL3Fw8TvbtRgfG0zGwU++0lPPA2D80JbQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27019: netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get() Date: Wed, 1 May 2024 07:31:20 +0200 Message-ID: <2024050150-CVE-2024-27019-e3d4@gregkh> X-Mailer: git-send-email 2.44.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=2624; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hMCbn0PfZs2MnaOUGM58hbhv0nMtTAdVdWqgZdZUC5A=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGl7umu+25JGfUGZeS8MDycqav90pNhvUiinryU+sln N/Oy3/WEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMR38gwP9UuSW1f8SHhuZaL pollKgW+afCsYJgf3JsWMeW9UlD3ypvqp/TNZ5Z0u64BAA== 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: netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get() nft_unregister_obj() can concurrent with __nft_obj_type_get(), and there is not any protection when iterate over nf_tables_objects list in __nft_obj_type_get(). Therefore, there is potential data-race of nf_tables_objects list entry. Use list_for_each_entry_rcu() to iterate over nf_tables_objects list in __nft_obj_type_get(), and use rcu_read_lock() in the caller nft_obj_type_get() to protect the entire type query process. The Linux kernel CVE team has assigned CVE-2024-27019 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit e50092404c1b and fixed in 5.15.157 with commit 379bf7257bc5 Issue introduced in 4.10 with commit e50092404c1b and fixed in 6.1.88 with commit df7c0fb8c2b9 Issue introduced in 4.10 with commit e50092404c1b and fixed in 6.6.29 with commit ad333578f736 Issue introduced in 4.10 with commit e50092404c1b and fixed in 6.8.8 with commit 4ca946b19caf Issue introduced in 4.10 with commit e50092404c1b and fixed in 6.9-rc5 with commit d78d867dcea6 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-27019 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: net/netfilter/nf_tables_api.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/379bf7257bc5f2a1b1ca8514e08a871b7bf6d920 https://git.kernel.org/stable/c/df7c0fb8c2b9f9cac65659332581b19682a71349 https://git.kernel.org/stable/c/ad333578f736d56920e090d7db1f8dec891d815e https://git.kernel.org/stable/c/4ca946b19caf655a08d5e2266d4d5526025ebb73 https://git.kernel.org/stable/c/d78d867dcea69c328db30df665be5be7d0148484