From patchwork Tue Jul 4 14:21:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thadeu Lima de Souza Cascardo X-Patchwork-Id: 1803252 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=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=f39MZqbZ; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (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 4QwQ3T3m76z20Pf for ; Wed, 5 Jul 2023 00:22:13 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1qGgut-0006uh-LA; Tue, 04 Jul 2023 14:22:07 +0000 Received: from smtp-relay-canonical-1.internal ([10.131.114.174] helo=smtp-relay-canonical-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qGgus-0006uZ-AC for kernel-team@lists.ubuntu.com; Tue, 04 Jul 2023 14:22:06 +0000 Received: from localhost.localdomain (1.general.cascardo.us.vpn [10.172.70.58]) (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-canonical-1.canonical.com (Postfix) with ESMTPSA id 9479643044 for ; Tue, 4 Jul 2023 14:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1688480525; bh=cSxjENsnqwRk5KrlxQtTiQIdN08RNhzKcAo+gNPkgUk=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=f39MZqbZQc6Y3LsLn+/WBb1JIoQPB9vk33Npzl3CUYLupoWlekbVbhsm4SCokmliF iDTBCFJV/J+LqOnMGqUdFiwe/xAo7vwYsEV+SquQPANM5vfj/P3XwI8m8xaaeAGWTm cinoOxy3Knm0FBN/JiL2D6uUvZ9EKNIOv8n8y3f4SPkE6GJ3LwBzKQbdNrza5V9+/d 7Zegev9UJbPCxndhNcCPlIGOHfPBnCT6OlA5kNivFPQ/XwYg5THH1tLgX5bcXxqniC 2WJRPpW96UuqpE/ud0LLbeH2GqpJK2AysbCEARH0S5qgmd6g4150mjaYw4uBOmlxN/ lltEaKz/XGxLg== From: Thadeu Lima de Souza Cascardo To: kernel-team@lists.ubuntu.com Subject: [SRU Jammy 0/4] CVE-2023-3439 Date: Tue, 4 Jul 2023 11:21:09 -0300 Message-Id: <20230704142113.581071-1-cascardo@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] There is a race condition which might trigger a use-after-free on MCTP mdev->addrs. [Backport] mctp_dev refcount had to be introduced and some fixes related to it require some backporting due to not having extended address support. One of the pre-req commits actually adds some extra support for MCTP over tunnels. [Potential regression] MCTP users might regress. Jeremy Kerr (1): mctp: Add refcounts to mctp_dev Lin Ma (1): mctp: defer the kfree of object mdev->addrs Matt Johnston (2): mctp: Allow MCTP on tun devices mctp: make __mctp_dev_get() take a refcount hold include/net/mctpdevice.h | 5 ++++ net/mctp/device.c | 53 +++++++++++++++++++++++++++++----------- net/mctp/neigh.c | 4 +-- net/mctp/route.c | 19 ++++++++------ 4 files changed, 58 insertions(+), 23 deletions(-) Acked-by: Cengiz Can Acked-by: Tim Gardner