From patchwork Fri Jan 5 23:20:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yuxuan Luo X-Patchwork-Id: 1883155 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 4T6KFW1mYWz1yPM for ; Sat, 6 Jan 2024 10:20:46 +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 1rLtUV-0000w2-2q; Fri, 05 Jan 2024 23:20:39 +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 1rLtUT-0000ve-RQ for kernel-team@lists.ubuntu.com; Fri, 05 Jan 2024 23:20:37 +0000 Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (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 9990A3F186 for ; Fri, 5 Jan 2024 23:20:37 +0000 (UTC) Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4280c1c368eso720631cf.2 for ; Fri, 05 Jan 2024 15:20:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704496833; x=1705101633; 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=v/VLdwfNjDIh+QJUN1FACZqb7gwBAKqQglQxpCUZVf0=; b=p3gob9MvrVcOhAUUGF7Iz2VMqMzE97YWt0t086pvyp2tkpHHSINp6VDu44mSZ7z/8f Dyxc3k5t74rB0LH5jNsm1W6FlMYNl2gRRT8ZKd0sFegnh6viaeQrScQVOF2ZM2GOiowY dJg5DWgRoH4isfhNYkdM0q2bZ8FufcxunKaPc6JtGMXfZYaoaVJUt+/UJ9QbK9k6Evup FAtL1FyaLdJ8mUJN2TCWWDTn5X38d3grev+tzz9Q2NDTx95Sz93xX70V58uMdjerlfVr EnrqmyBLpnh8x3DpwUtG+2L9I0LlXQy4JSOfvOH80fuOdLWs6nkGZ/1uc01NAre7RsQg WC9w== X-Gm-Message-State: AOJu0YwWnpyyx95gpL3fG8h6Qrvz1UehANDJXM9evg8iQm8gsKVl/YMx ib7Z1k6k7uOYR1dj1srUCB94sUKBt3nsYL3kgW2QMAb3Y8IRYvgYUvByxk8Z58EmRnuzqyDlJfU V1erBkdFOgNIkgQZJPXiVLVqQj+oei2vQlMukflf9YNNaHcNLG6son+8F X-Received: by 2002:a05:622a:102:b0:429:7249:8a20 with SMTP id u2-20020a05622a010200b0042972498a20mr245772qtw.24.1704496833178; Fri, 05 Jan 2024 15:20:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTLjbe9Cu8qE9oE7Um0Z2Ym4h1HJeujogwTYemPK6yZgRMPnEpSMFWdZRCG83PGllJyzh/1A== X-Received: by 2002:a05:622a:102:b0:429:7249:8a20 with SMTP id u2-20020a05622a010200b0042972498a20mr245763qtw.24.1704496832906; Fri, 05 Jan 2024 15:20:32 -0800 (PST) Received: from cache-ubuntu.hsd1.nj.comcast.net ([2001:67c:1562:8007::aac:4795]) by smtp.gmail.com with ESMTPSA id b8-20020ac812c8000000b004281ccccdfcsm1141075qtj.51.2024.01.05.15.20.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 15:20:32 -0800 (PST) From: Yuxuan Luo To: kernel-team@lists.ubuntu.com Subject: [SRU][F/J/L/M][PATCH 0/1] CVE-2023-51779 Date: Fri, 5 Jan 2024 18:20:28 -0500 Message-Id: <20240105232030.42941-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] A vulneralbility has been found in Linux kernel net/bluetoothaf_bluetooth.c. This can cause a race with bt_sock_ioctl() because bt_sock_recvmsg() gets the skb from sk->sk_receive_queue and then frees it without holding lock_sock. A use-after-free for a skb occurs which leads to potential denial of service. [Backport] For Lunar and Mantic it is a clean cherry pick. For Focal and Jammy, there exists a prerequisite commit, f4b41f062c42 (“net: remove noblock parameter from skb_recv_datagram()”). However, this commit only removes the obsolete parameter, so ignore this commit and manually backport the lock. [Test] Compile and boot tested. [Potential Regression] Expect very low regression potential. Hyunwoo Kim (1): Bluetooth: af_bluetooth: Fix Use-After-Free in bt_sock_recvmsg net/bluetooth/af_bluetooth.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) Acked-by: Tim Gardner Acked-by: Roxana Nicolescu