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 83C911EFFB3 for ; Thu, 1 May 2025 14:18:55 +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=1746109135; cv=none; b=ePh3IoILVK5q2UHIfckIfMTDrCjInI5qf+FDTKM9MHWVbMOYhhZ0E/1a5jyd2BhBZtdo7ptQMGdgau/Zk/lddUD+fq3Uu4+y8wzTVfU6875C4GJZH72AB27nGHWCY7HgryroaNn8FRcCnSTSH/rYqrayZVfnTL+W5IgQCfa2QM4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109135; c=relaxed/simple; bh=PfdG0FdT5IbEjqshn5b+r93t5RYUY5bzLGqqTzBZekE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Kr8A5wcipug6bSw5Am84RO0XiwX4lLEhhvzofjwVyua5oGfmZgUB3qVMcLrwo5bgBxuJtIN63F5fODzt8vaPiDiLCmjhmj2JghnUF/hHMI5au47m5NdEUZ6ta/4kZMvDhDcQlWBxxUMjBMBhp3O2GoJbjuc5YRAxyyd0yjoiCwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RZmv4jiY; 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="RZmv4jiY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C032C4CEE3; Thu, 1 May 2025 14:18:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109135; bh=PfdG0FdT5IbEjqshn5b+r93t5RYUY5bzLGqqTzBZekE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=RZmv4jiYseAIM6zvyOkr1MPcEqwuPMRENrgaJo+GZ17rjRiQh1yByrQ3NDvI6ytOo PYVbOy4UibbbWhYufTpxej3pEjG+ZKMC2px1MELZfJ2FPqEzrGmyALXkkKYK6qepnU Q8EGG4tYUyohnre3OlpeVq/SXf7BcbIwTZEQAMW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49920: netfilter: nf_tables: netlink notifier might race to release objects Date: Thu, 1 May 2025 16:11:50 +0200 Message-ID: <2025050108-CVE-2022-49920-667b@gregkh> X-Mailer: git-send-email 2.49.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=2395; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MsESKV7K1Hvg7UdJ7a2j3Zr2pWSi1MBCXWnuZAM/mEY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDQd+BC7xCo9g/ctzI2qp5tnUtW0O/7f4l6yqe6U8u 8b7Dx9/RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk34NhwUb56a17z3YXFP5R Oi64oKBj0r7MFoYF6xyOt0xkVLkSKr4o6Mib1/9UzjjZAgA= 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: netfilter: nf_tables: netlink notifier might race to release objects commit release path is invoked via call_rcu and it runs lockless to release the objects after rcu grace period. The netlink notifier handler might win race to remove objects that the transaction context is still referencing from the commit release path. Call rcu_barrier() to ensure pending rcu callbacks run to completion if the list of transactions to be destroyed is not empty. The Linux kernel CVE team has assigned CVE-2022-49920 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 6001a930ce0378b62210d4f83583fc88a903d89d and fixed in 5.15.78 with commit 1ffe7100411a8b9015115ce124cd6c9c9da6f8e3 Issue introduced in 5.12 with commit 6001a930ce0378b62210d4f83583fc88a903d89d and fixed in 6.0.8 with commit e40b7c44d19e327ad8b49a491ef1fa8dcc4566e0 Issue introduced in 5.12 with commit 6001a930ce0378b62210d4f83583fc88a903d89d and fixed in 6.1 with commit d4bc8271db21ea9f1c86a1ca4d64999f184d4aae 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-49920 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/1ffe7100411a8b9015115ce124cd6c9c9da6f8e3 https://git.kernel.org/stable/c/e40b7c44d19e327ad8b49a491ef1fa8dcc4566e0 https://git.kernel.org/stable/c/d4bc8271db21ea9f1c86a1ca4d64999f184d4aae