From patchwork Fri Jun 28 16:38:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bethany Jamison X-Patchwork-Id: 1954065 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W9h2z70Gbz214c for ; Sat, 29 Jun 2024 02:38:51 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sNEcC-0004qL-3B; Fri, 28 Jun 2024 16:38:24 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sNEc9-0004ps-RN for kernel-team@lists.ubuntu.com; Fri, 28 Jun 2024 16:38:21 +0000 Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 856083F187 for ; Fri, 28 Jun 2024 16:38:21 +0000 (UTC) Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-7f38c10cab9so75548039f.2 for ; Fri, 28 Jun 2024 09:38:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719592700; x=1720197500; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tDB7Rkr80gLn8Ad4sP+r+c73EQHY9qjdRRLzJ0qc7jA=; b=ZwOLsHAoIdm6s+9IsYYu0Q6Afps3aNcqUzWGk98/2MybTmcTm0HwWfPS1pe0DYascQ fhCeLH9EtPnq+3uVRIkAII7lUmKbSrpz2J392Js5jpOuU2reX5yltMV9wfSu17Ns8Bxi +yw5qhGHBHPhKLjFoJjpQepk6riKuQIXwBfPuch+Zwmay/OCs9zKOoViudc86kg+WgEV YxBzH14hMvrf1jvY3McSGt1rATgYsLLCuT1tjHYT4ajlAbK/m7FMNQQRIfjkKiOmDbaK aN2tR/t4Qqc+foaQAN0TKn9mL5DI/KwtwSGLdwtq6Qc5gFVrYEgf4jf+wkz9pZeHbTbn t03g== X-Gm-Message-State: AOJu0YyHPnFxmHXMDaie9zVmxZ1pHRsA1spvC6wuOOlb2G75bN8SPk7V +KcNjfQ0ka9NFtZHu0akAU/BXAd+KKD9MZzqtk/CVr2b+Uet7a59WQyru6Mq/cNL1ouj20sM31E gcSLWSTxd0mRkM7nZ8nV4tHCtjdoQr0Qrxg10C7NbGr66mpXGjApi6lmED8l/2e4x2FglISl9UW wcbo1aplpUIg== X-Received: by 2002:a05:6602:2dce:b0:7eb:78b4:faee with SMTP id ca18e2360f4ac-7f3a4db23dcmr2216662739f.3.1719592699790; Fri, 28 Jun 2024 09:38:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTjMWCnzEgNXTlJOIZNP4Evbssar1/wBqLCppekxXp0npk6QSpZO6UTEQ6v4CBsfamrHM9Sw== X-Received: by 2002:a05:6602:2dce:b0:7eb:78b4:faee with SMTP id ca18e2360f4ac-7f3a4db23dcmr2216660939f.3.1719592699468; Fri, 28 Jun 2024 09:38:19 -0700 (PDT) Received: from smtp.gmail.com (167-248-51-36.oa02.lnk04.ne.dynamic.allophone.net. [167.248.51.36]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4bb73f90d03sm603191173.95.2024.06.28.09.38.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 09:38:19 -0700 (PDT) From: Bethany Jamison To: kernel-team@lists.ubuntu.com Subject: [SRU][F][PATCH 0/2] CVE-2024-27019 Date: Fri, 28 Jun 2024 11:38:16 -0500 Message-Id: <20240628163818.18631-1-bethany.jamison@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" [Impact] 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. [Fix] Noble: pending Jammy: pending Focal: Backport prereq commit - ignore neighboring line context conflict, Clean cherry-pick for fix commit Bionic: needed Xenial: not affected Trusty: not affected [Test Case] Compile and boot tested [Where problems could occur] This fix affects those who use the netfilter framework, an issue with this fix would be visible to the user via unexpected system behavior or a system crash. Pablo Neira Ayuso (1): netfilter: nf_tables: restrict tunnel object to NFPROTO_NETDEV Ziyang Xuan (1): netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get() include/net/netfilter/nf_tables.h | 2 ++ net/netfilter/nf_tables_api.c | 22 +++++++++++++++------- net/netfilter/nft_tunnel.c | 1 + 3 files changed, 18 insertions(+), 7 deletions(-) Acked-by: Manuel Diewald Acked-by: Thibault Ferrante