Message ID | 20230824110819.1268200-3-cengiz.can@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; 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=KbsxbKIV; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 4RWgLw0xZTz1yfF for <incoming@patchwork.ozlabs.org>; Thu, 24 Aug 2023 21:08:56 +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 <kernel-team-bounces@lists.ubuntu.com>) id 1qZ8Cp-0007ME-Hl; Thu, 24 Aug 2023 11:08:51 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <cengiz.can@canonical.com>) id 1qZ8Cn-0007LB-Lj for kernel-team@lists.ubuntu.com; Thu, 24 Aug 2023 11:08:49 +0000 Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.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-0.canonical.com (Postfix) with ESMTPS id 7A0B33F533 for <kernel-team@lists.ubuntu.com>; Thu, 24 Aug 2023 11:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1692875329; bh=R7VoWI9cPh0LXuqeAdR9dhK20pMBVuyTs8xffWtnnls=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KbsxbKIVwQ0y7uyBH/Oia2FPxuIgpFtxCBuls7EM7G5iAfGSKW/aUSbcqF0NSbOTz jmumF0mUhaHpwMF8HhUOql2l5nC0Z4YDMn2pShGgaQWEKSdC4eRTZwd/QElfQSAYj7 5o7HHZcvFn/4vbQYuXpfzDcs/QpISfcuWHYDydlpInvfCvxm/xTP2bsfJEpmgckZSS +Co5JVsDqPObDOYcuW7hWTNCiXdlfSezRGkSqjd4eeFTi0GRWTUeRNtZw/VqAseJyC hqyZi3DYByI2bCcPbNBJ4IYXJH9Q7KTg+Xf5c5PzIiRBb1UbE1dVbc0ontxBGNwjrN uNHvMjL6r+N6A== Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4fe369ab20fso7039236e87.2 for <kernel-team@lists.ubuntu.com>; Thu, 24 Aug 2023 04:08:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692875328; x=1693480128; 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=R7VoWI9cPh0LXuqeAdR9dhK20pMBVuyTs8xffWtnnls=; b=hErIxn/6PBotVEeTuGGwZJUnT5DcEOAdylx61p3q6QYa4PpXQ33c01qmWwS+gJlxJZ HITZXNtK0zPEgGF2k30op8PJXznOfEVy2XM2Rcqe3jhTVPzlA0RpPLKU55axwjmug1Ma hl+dqkjW+S/HDtZ8SKw2LKbOF/mf/N89YNpGH1ttqqeDlUld705vtZ0l41LuWugy8oQq WCKOnjuA937J19KAfdNLUWSFjBxpndTmPIQFs1kR8RX1hJeZexnmHQHrcDupxX3VZAFI bv6lpILr3ThdO8vUpVnnAMSDMkhj9xaIhLN1OObYpud0PNhl3bbrKDKICWTNqr/ZTpjY ACfg== X-Gm-Message-State: AOJu0Yz4IU9xUJxFhi2ufY5ThpNEOAV8sMD7vefWXeK+IwbLGxEp7UwA 9FFarLsiYbpJWeCOluwANJ/kOhWk5qLuqiK8PKfinlySdkTB0kwyXvB3AhkSVqG1m/vkhRitoc7 eifraWCo9/8UurG1LlpHRef2YG7FR/5jhkYwLdr7r4avYTshiHsFM X-Received: by 2002:ac2:5a0a:0:b0:4fb:745e:dd01 with SMTP id q10-20020ac25a0a000000b004fb745edd01mr10158428lfn.45.1692875328693; Thu, 24 Aug 2023 04:08:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeRmlf3g8HdvihqHNaT2X2KPT0sHDMJx4Nxc+qEsqd7b4CH04YWZIVzlm5kDzI6+wO48+PvQ== X-Received: by 2002:ac2:5a0a:0:b0:4fb:745e:dd01 with SMTP id q10-20020ac25a0a000000b004fb745edd01mr10158418lfn.45.1692875328228; Thu, 24 Aug 2023 04:08:48 -0700 (PDT) Received: from localhost ([24.133.89.143]) by smtp.gmail.com with ESMTPSA id y2-20020aa7d502000000b00529fb5fd3b9sm8640878edq.80.2023.08.24.04.08.47 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:08:48 -0700 (PDT) From: Cengiz Can <cengiz.can@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU Focal, Jammy, HWE-5.19, OEM-6.0, Lunar 2/2] net: tap_open(): set sk_uid from current_fsuid() Date: Thu, 24 Aug 2023 14:08:22 +0300 Message-Id: <20230824110819.1268200-3-cengiz.can@canonical.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230824110819.1268200-1-cengiz.can@canonical.com> References: <20230824110819.1268200-1-cengiz.can@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-4194
|
expand
|
diff --git a/drivers/net/tap.c b/drivers/net/tap.c index 574c17aa4b09..c299faaf4b2d 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -525,7 +525,7 @@ static int tap_open(struct inode *inode, struct file *file) q->sock.state = SS_CONNECTED; q->sock.file = file; q->sock.ops = &tap_socket_ops; - sock_init_data_uid(&q->sock, &q->sk, inode->i_uid); + sock_init_data_uid(&q->sock, &q->sk, current_fsuid()); q->sk.sk_write_space = tap_sock_write_space; q->sk.sk_destruct = tap_sock_destruct; q->flags = IFF_VNET_HDR | IFF_NO_PI | IFF_TAP;