From patchwork Thu Feb 22 21:59:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yuxuan Luo X-Patchwork-Id: 1903006 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 4Tgn9g2BBLz23pm for ; Fri, 23 Feb 2024 08:59:34 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1rdH65-0007Ru-FZ; Thu, 22 Feb 2024 21:59:17 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1rdH61-0007RR-Lr for kernel-team@lists.ubuntu.com; Thu, 22 Feb 2024 21:59:13 +0000 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) (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-0.canonical.com (Postfix) with ESMTPS id EAE3B3F44E for ; Thu, 22 Feb 2024 21:59:10 +0000 (UTC) Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3c02a63d499so251604b6e.3 for ; Thu, 22 Feb 2024 13:59:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708639148; x=1709243948; 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=RaE2DEgxXxqvWkUNrVSx1EC058mRn0cAxC0wp/uT+HY=; b=FuG6Nqm3fw/1OGGVW9mzoCrTbkbS6SMYBpUJGqhBm1pnYBzH5GD41ucywSs5S0yVLm Zo485Q30nakUvXS+SlHO3mIZrDU/ar80mYgVFNERLRu9x76gTka0eBqdc8gRFFhcGmnX 2jAwKviqcCa5QMdsOMmjVaHmctkW2DveLI9UTtFS5Umg9pkb8gQJORMdNxt4EMqmkD/J NmVTOKpnV2b+PrKPK7bhtF0n8qJ7swDtQ24Y+LUWeDFOG2r03I5soADmsoSIeBb8Jt3/ Wgkyd+UjsOEAF/6DYYbxB1uuh4WhMOEXfLbjgagcdUnpCDFbnNq6xt72WZUz9gExRFtC pp9w== X-Gm-Message-State: AOJu0Yzt1a8gXNOJ2r5u2DySIc6DyuAmXIR+zZYZOMUL6sxKvUUUNuCL M0ApZ/j5KoBAsi3Dm6O2/gZ1kk279o5XXQ+is/WYPJzbcr0uISAeLa3I8fefA3z4yIwsBytQTZO +5uTpKu1B+PVBbPozFxKEq1BAj2oxgebAVW+8+IORI6WC9Uwd8Ta+aj3kACoAPhFXPZ2QNr3Ofe 868vtAUejzwQ== X-Received: by 2002:a05:6808:171a:b0:3c1:830f:e753 with SMTP id bc26-20020a056808171a00b003c1830fe753mr239433oib.15.1708639148320; Thu, 22 Feb 2024 13:59:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhGsL3H9YTVwSb4zJkqGX1aL1c7qcm3qQNnmO/dWmcbJaX7aC1N3dubHZOyG995zjQiqcC4w== X-Received: by 2002:a05:6808:171a:b0:3c1:830f:e753 with SMTP id bc26-20020a056808171a00b003c1830fe753mr239421oib.15.1708639148007; Thu, 22 Feb 2024 13:59:08 -0800 (PST) Received: from cache-ubuntu.hsd1.nj.comcast.net ([2001:67c:1562:8007::aac:4795]) by smtp.gmail.com with ESMTPSA id na9-20020a0562142d4900b0068f75622543sm865871qvb.1.2024.02.22.13.59.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 13:59:07 -0800 (PST) From: Yuxuan Luo To: kernel-team@lists.ubuntu.com Subject: [SRU][F/J/M][PATCH 0/1] CVE-2024-23851 Date: Thu, 22 Feb 2024 16:59:02 -0500 Message-Id: <20240222215905.83786-1-yuxuan.luo@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] copy_params in drivers/md/dm-ioctl.c in the Linux kernel through 6.7.1 can attempt to allocate more than INT_MAX bytes, and crash, because of a missing param_kernel->data_size check. This is related to ctl_ioctl. [Backport] For Mantic it is a single clean cherry pick. For Focal and Jammy, the fix commit cannot be clean cherry picked because of the conflict around the DMERR() lines; cherry pick dbdcc906d978 (“dm ioctl: log an error if the ioctl structure is corrupted”) to solve the conflict. [Test] Compile and boot tested. [Potential Regression] A very low regression potential exists when executing copy_params() for devices. Mikulas Patocka (1): dm: limit the number of targets and parameter size area drivers/md/dm-core.h | 2 ++ drivers/md/dm-ioctl.c | 3 ++- drivers/md/dm-table.c | 9 +++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) Acked-by: Tim Gardner Acked-by: Stefan Bader