Message ID | 20240605185445.19509-2-bethany.jamison@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> 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 4Vvc8n2nR7z20WK for <incoming@patchwork.ozlabs.org>; Thu, 6 Jun 2024 04:55:04 +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 <kernel-team-bounces@lists.ubuntu.com>) id 1sEvme-0007qs-2q; Wed, 05 Jun 2024 18:54:52 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <bethany.jamison@canonical.com>) id 1sEvmb-0007qT-J7 for kernel-team@lists.ubuntu.com; Wed, 05 Jun 2024 18:54:49 +0000 Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (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 737463F363 for <kernel-team@lists.ubuntu.com>; Wed, 5 Jun 2024 18:54:49 +0000 (UTC) Received: by mail-io1-f72.google.com with SMTP id ca18e2360f4ac-7e6e4a83282so17395239f.2 for <kernel-team@lists.ubuntu.com>; Wed, 05 Jun 2024 11:54:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717613688; x=1718218488; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MS5QZ6jU+P2Zjx1eWopjvqmX8jm5254rnh7bPJSbyTY=; b=E+wL59zWcbhOlbZz/YYshfGmpz92tNUmd4g5yvyKS1iXXYPvYkMKe55YcovQoi6rDC PTFFYQEbHcy+PD3o0/DPC2+FDH5VY6pI2+XWKkXKPp9jnO8wO4RAIfY5Ljj45RFLbP9U PBGWXWslYbpeDwKBENX5dWIFw6q/U8Ww1309ztaggxEe3/6yxYWdEdHNQk8t/FvjTGuN JHrJkeiCEuWpYQIwnCrAMWdmf5TSdWu2Qnl0S1CJAPyTm0ts9CEGOm+J6IzikCjMWzlF C/jAKKdttzER6/d9MKR74NDaZkPxSOSdXBufYoyKkbuYrc10CQyQQRlKaaIGCsY6Idob RdXw== X-Gm-Message-State: AOJu0YxOVkWQ1/UU5xExidxsIHkuzkAT9bbFjUAnx6Woa4qtkpjpPL1O SvW7kq+DXhvULfPDzFXBhi/mwVjZzLmwum6cQJU7bAmQF+Nzhk+42tdPt3esdnGzlgVpTsty08x cwSvGRn7dALLTd6dYVXzWC+isxB7htEXOXpnarVo9+47/Y91UC0sdowfJHHFmC9iAUkHqs8rvci t69PC16iXJJA== X-Received: by 2002:a05:6602:6414:b0:7da:cbc2:7caa with SMTP id ca18e2360f4ac-7eb3c799448mr438123439f.9.1717613688012; Wed, 05 Jun 2024 11:54:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEd4MG+tmzP/K93HNVNqjgm/4dVsqTBRBQtD11mwNWOrIiOq24REMlE0WXycIFWL2wat/nnCA== X-Received: by 2002:a05:6602:6414:b0:7da:cbc2:7caa with SMTP id ca18e2360f4ac-7eb3c799448mr438121639f.9.1717613687616; Wed, 05 Jun 2024 11:54:47 -0700 (PDT) Received: from smtp.gmail.com (167-248-51-36.oa02.lnk04.ne.dynamic.allophone.net. [167.248.51.36]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4b58961b5fdsm2421233173.17.2024.06.05.11.54.47 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:54:47 -0700 (PDT) From: Bethany Jamison <bethany.jamison@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][M][PATCH 1/1] tty: n_gsm: require CAP_NET_ADMIN to attach N_GSM0710 ldisc Date: Wed, 5 Jun 2024 13:54:45 -0500 Message-Id: <20240605185445.19509-2-bethany.jamison@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605185445.19509-1-bethany.jamison@canonical.com> References: <20240605185445.19509-1-bethany.jamison@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
CVE-2023-52880
|
expand
|
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 897bd575330c2..4492740b911d9 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -3575,6 +3575,9 @@ static int gsmld_open(struct tty_struct *tty) { struct gsm_mux *gsm; + if (!capable(CAP_NET_ADMIN)) + return -EPERM; + if (tty->ops->write == NULL) return -EINVAL;