From patchwork Wed Sep 13 21:43:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuxuan Luo X-Patchwork-Id: 1833726 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 4RmDW26lHSz1yh6 for ; Thu, 14 Sep 2023 07:44:30 +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 1qgXed-0003Lr-1O; Wed, 13 Sep 2023 21:44:11 +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 1qgXeX-0003LC-HE for kernel-team@lists.ubuntu.com; Wed, 13 Sep 2023 21:44:05 +0000 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.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 429AC3F66B for ; Wed, 13 Sep 2023 21:44:05 +0000 (UTC) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-76e57b1239eso37670885a.1 for ; Wed, 13 Sep 2023 14:44:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694641443; x=1695246243; 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=MIYt8YX9BU1Ztn1r5gbWJINWVLD/xEriEW3LrRtI2RU=; b=on/tDEyTrUIqPhxW4bChzLM88VTj3Eq8GkJnFoZ8NNyQI42qlWieSog2JMnSObIAqg 0Ka5C8//qc8UNLE3aEqKU3YTHXC3+fvUo5q/GL/463QTEMqpHBghypt9zaj+KagIcgS6 /QgJcRvbUm6Y/PMMTPJjecUTh0EapyaApVUphW/2+uTakYPys9+Fm4RSChCu5bFH0pqW JPrPx5xFT7t3S9MynxBTBdfemSgtNvmBPAD/1FWK0aa7w02Frde6aZr40XWC0N3dKZEG 0umXxYB6qYvFdb2D6q51Zsiqw6ajVHqOQEoF7mtC2o8kYUVHKMSVPxql1+zQQQwxOaRm 32jw== X-Gm-Message-State: AOJu0YzLWIPkB/jORtWdIeD58p2o8FAzz0UKsyfHjbguu+Bxl2rZwfHa DSFxZrMH7Kv48TsjBulnnDiWL1REVZPNob05bOw1/H119XzVOPKbQyaEUL4L530MsYW36gqbd5O eSpWb65bgS5upUb++DkDcdd6CLAHaVaCHAu0yDC3MhI2aadonkA== X-Received: by 2002:a0c:ab43:0:b0:655:d6b3:ddc7 with SMTP id i3-20020a0cab43000000b00655d6b3ddc7mr3300729qvb.26.1694641443143; Wed, 13 Sep 2023 14:44:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVsh4VFC+vIoTrFiSgdKNlanqzc4BV9t3hth0FYHJGyg1DWrNPDtrZ2tk1aj1QEsJjnHZrkg== X-Received: by 2002:a0c:ab43:0:b0:655:d6b3:ddc7 with SMTP id i3-20020a0cab43000000b00655d6b3ddc7mr3300705qvb.26.1694641442629; Wed, 13 Sep 2023 14:44:02 -0700 (PDT) Received: from cache-ubuntu.hsd1.nj.comcast.net ([2601:86:200:98b0:648e:df48:8a4a:64d1]) by smtp.gmail.com with ESMTPSA id b10-20020a0cc98a000000b006560eea8a7esm42075qvk.132.2023.09.13.14.44.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 14:44:02 -0700 (PDT) From: Yuxuan Luo To: kernel-team@lists.ubuntu.com Subject: [SRU][F/J/L][PATCH 0/1] CVE-2023-4622 Date: Wed, 13 Sep 2023 17:43:59 -0400 Message-Id: <20230913214400.66802-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 use-after-free vulnerability in the Linux kernel's af_unix component can be exploited to achieve local privilege escalation. The unix_stream_sendpage() function tries to add data to the last skb in the peer's recv queue without locking the queue. Thus there is a race where unix_stream_sendpage() could access an skb locklessly that is being released by garbage collection, resulting in use-after-free. We recommend upgrading past commit 790c2f9d15b594350ae9bca7b236f2b1859de02c. [Backport] Backported from stable/linux-6.1.y tree; it is a clean cherry pick. [Test] Smoke tested via building an AF_UNIX echo server and connecting to it. [Potential Regression] Expect very low regression. Kuniyuki Iwashima (1): af_unix: Fix null-ptr-deref in unix_stream_sendpage(). net/unix/af_unix.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) Acked-by: Stefan Bader Acked-by: Thadeu Lima de Souza Cascardo