From patchwork Thu Jul 27 23:22:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cengiz Can X-Patchwork-Id: 1814002 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=EvanLUoC; 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 4RBmyk3FVcz1yYD for ; Fri, 28 Jul 2023 09:22:54 +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 1qPAJk-00027S-N6; Thu, 27 Jul 2023 23:22:48 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-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 1qPAJj-00027L-8N for kernel-team@lists.ubuntu.com; Thu, 27 Jul 2023 23:22:47 +0000 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (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 E2B823F189 for ; Thu, 27 Jul 2023 23:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1690500166; bh=9u4RhCSdLKJX3eIIrUSLGiWr9cute7nPeNBDlQxKyRo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=EvanLUoC4a5B//niYojFHoh42r1+DexVFeP2Owbt6Qf5otxCzqKMzJutBYeIp6I1J 9mIcVyi5KdZpR84cEqQkBTJHLHf0+EPcF8ir5gSdV/RixAQaJCSw6a1EtVfvYj98O4 3dqkXWF0PqjFEVDZos+ji1wRuD9jGRnqiRgDoO36ML59oVmdWhG02iGhXrRYYVnMyQ IbUDAiE/gN7x7CzfNDF3cdvVcj75IycPsKnnN6TiqPnp6zJe15Wyq/QTiweuAo7RXq IsJFKrnVyhl3anFDgnCEdFSq6oP2UFk1XkSNPNiIG7BiGIZ1ytxeTs1bJHnb5V4Fpw 1s6xyfGdPOSsw== Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3fbdf341934so8072495e9.3 for ; Thu, 27 Jul 2023 16:22:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690500166; x=1691104966; 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=9u4RhCSdLKJX3eIIrUSLGiWr9cute7nPeNBDlQxKyRo=; b=aNanfqhOfKOl/N7Ocxx6v0fw+lgUqBcrNHJYLBW7tgOdjOj6YdYHg8y3lxTeZuvJzj YQ5D8k6ZbnKm48HemzdHQD0vMDwKqHVs9cu6JcMIfriw1AzTeRgr4UJI8CUhq4cFNmMy fNGNVZ/d7+lmV3g/ehqI3vW20T9hqKp0az4CzMp7sULBGfWrCOKIpP6D5HvB/oH8RrmJ N1HJl/9B+DxX6lsOQX36d2J52MC/O+XUNg32coUzK0TMWv9RcWt7jdJQ90RfYK4DMrvZ oGQPWsJqo8NPvtpl+76wgv/yGSfoDFX48y8HsDSQ7rTlgPmxccIPAIUYEeiXn2sSa11x LyAA== X-Gm-Message-State: ABy/qLYxpI/2wkEwiwJvQC7WFyOMilme8hf6QSQYzvOLdyO/WJF9MiRw OJDoVxr3AOgJ9ZYi4l/5+FlGyw7m6/QpqnhQQHzVccNb7dMyqOlpLJW93CDYjYWkvKlM7D/PHyV jn1nA9xl6/ABS8TMCRtqZkvAu2zK55qJiyDCK9wK1/kJv5pl9O+6d X-Received: by 2002:a05:600c:2a4e:b0:3f9:b748:ff37 with SMTP id x14-20020a05600c2a4e00b003f9b748ff37mr342499wme.20.1690500166287; Thu, 27 Jul 2023 16:22:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGQwpprdwbA3jnSs3lmsIS7QLNea1aEc6UIIwi5k4+Kgj1OWXl1BxD6DKY0TssjKvz+mFdy0w== X-Received: by 2002:a05:600c:2a4e:b0:3f9:b748:ff37 with SMTP id x14-20020a05600c2a4e00b003f9b748ff37mr342486wme.20.1690500165906; Thu, 27 Jul 2023 16:22:45 -0700 (PDT) Received: from localhost (uk.sesame.canonical.com. [185.125.190.60]) by smtp.gmail.com with ESMTPSA id 1-20020a05600c248100b003fbd2a9e94asm2792151wms.31.2023.07.27.16.22.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 16:22:45 -0700 (PDT) From: Cengiz Can To: kernel-team@lists.ubuntu.com Subject: [SRU Focal/Jammy/OEM-5.17/Kinetic/OEM-6.0/Lunar 0/2] CVE-2023-3611 Date: Fri, 28 Jul 2023 02:22:16 +0300 Message-Id: <20230727232220.972472-1-cengiz.can@canonical.com> X-Mailer: git-send-email 2.39.2 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] An out-of-bounds write vulnerability in the Linux kernel's net/sched: sch_qfq component can be exploited to achieve local privilege escalation. The qfq_change_agg() function in net/sched/sch_qfq.c allows an out-of-bounds write because lmax is updated according to packet sizes without bounds checks. We recommend upgrading past commit 3e337087c3b5805fe0b8a46ba622a962880b5d64. [Fix] On older kernels, the prerequisite commit cannot be cherry-picked cleanly. With those, I decided to introduce the limiting constant inside the fixing commit, and those commits are marked as backports. [Test case] Each kernel was tested with the publicly shared reproducer. Before the fix, all of our kernels (except Focal) was crashing with the reproducer. After the fix, some kernels (Kinetic, OEM-5.17 and Lunar) do not crash but the reproducer fills up buffer space of `ping` command. This doesn't affect the regular function of `ping` but should be investigated in the future. [Potential regression] All users that create traffic control rules using `tc` command might be affected. Pedro Tammela (2): net/sched: sch_qfq: refactor parsing of netlink parameters net/sched: sch_qfq: account for stab overhead in qfq_enqueue net/sched/sch_qfq.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) Acked-by: Tim Gardner Acked-by: Thadeu Lima de Souza Cascardo