Message ID | 20230824110819.1268200-2-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=dvtFP0Db; 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 4RWgLn5p9tz1yfF for <incoming@patchwork.ozlabs.org>; Thu, 24 Aug 2023 21:08:49 +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 1qZ8Cj-0007Hm-7T; Thu, 24 Aug 2023 11:08:45 +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 <cengiz.can@canonical.com>) id 1qZ8Cg-0007Gj-Va for kernel-team@lists.ubuntu.com; Thu, 24 Aug 2023 11:08:42 +0000 Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (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 68BD73F0BA for <kernel-team@lists.ubuntu.com>; Thu, 24 Aug 2023 11:08:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1692875322; bh=SILnVLn7OgHpKQnXPqSFo7sIl7+NObdtFfFXzqdyvoU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dvtFP0DbNgZ+M1V02ytB5+pmMALkZIxr75CTzJkHLlv507OS27zfLC+uwTNivLAuU php14bKl0W8+olb9N0yub7Y7SJu3a2bjiMpyO/Cj0MjOVE84OAjZ/4bqQUcADtCaW+ AiYKUqOmIrCXYOSq2htS+WuWt6c2iz6DWQXQ68OySx7eg3qy8m4OiqdUylRTxtPhxD /HT5OVCwp0UdxQJS4rbglWXYXDj6SSQWyhpy1/6CRMs0tT91qRNT0CI457aYTymv/h 8IvMS/rdccyX/KI5ffhJl7HxhQVxaAKNFzfIEdINFp/CYTrtlwCQIXhD1n1qTKpod0 ZFCHd+z5VeXMQ== Received: by mail-lf1-f71.google.com with SMTP id 2adb3069b0e04-4ff92d9f376so7038853e87.3 for <kernel-team@lists.ubuntu.com>; Thu, 24 Aug 2023 04:08:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692875320; x=1693480120; 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=SILnVLn7OgHpKQnXPqSFo7sIl7+NObdtFfFXzqdyvoU=; b=fqJ5S/tZXYhchernwc/d1zBwt1PKhHJXB/Kowk6RtGKTm3t3JEBrHACbkY/r9Jpxup qynjG/efqQcyv7R4vcOqi9LVuKDCSv4IqP997LmIFaqSMOj8HS2eygx8r1xhn3qGj+7n vo77L4LzOhcaNfBe2ciXwRbBttgOBwmNn2H/+1sg5CcO9cJdBotzG7ZeU0JHzRWUtf5D p3bSctfjxvcAJgcmXGrs6gePFihvT98RXcFESvh6jr04t/PcuhVlm5DkyEfaqS3Sncg+ cPmoRxFptBmCu4Trkm4WzhskgtSH+dyrNzQvECDuTRhpiwdyiQjRZniCMtvk9bLqDqmA UP7Q== X-Gm-Message-State: AOJu0YwYwbbWqlbsBwwG+D/iVGMmYuCsxF4tivFUFCWcd0cAfdSUoSoM cmxT5H6HVcbfgw652KYzun8ImAH4M8Nwz209CfOBnL8jQxjf68eBw+POGIMMNb7cKWS4u5JV3UW loCZVXz5TM5mH2CtaKahGvgsyYM/Hmbu2HuFYihtNcZ+N8kA3hLGf X-Received: by 2002:a05:6512:b90:b0:500:7f91:fe2e with SMTP id b16-20020a0565120b9000b005007f91fe2emr12184142lfv.34.1692875320406; Thu, 24 Aug 2023 04:08:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG2SCsNSFdQ94Imgh67kgBqSMlait9DzeY+1bP0MnQhTiukl8ncLBAtNSlduP+JfRgE+W9bYg== X-Received: by 2002:a05:6512:b90:b0:500:7f91:fe2e with SMTP id b16-20020a0565120b9000b005007f91fe2emr12184126lfv.34.1692875320122; Thu, 24 Aug 2023 04:08:40 -0700 (PDT) Received: from localhost ([24.133.89.143]) by smtp.gmail.com with ESMTPSA id r20-20020aa7d154000000b0052a1a623267sm3848527edo.62.2023.08.24.04.08.39 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:08:39 -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 1/2] net: tun_chr_open(): set sk_uid from current_fsuid() Date: Thu, 24 Aug 2023 14:08:20 +0300 Message-Id: <20230824110819.1268200-2-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/tun.c b/drivers/net/tun.c index a4e44f98fbc3..309a0dd16bdc 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c @@ -3534,7 +3534,7 @@ static int tun_chr_open(struct inode *inode, struct file * file) tfile->socket.file = file; tfile->socket.ops = &tun_socket_ops; - sock_init_data_uid(&tfile->socket, &tfile->sk, inode->i_uid); + sock_init_data_uid(&tfile->socket, &tfile->sk, current_fsuid()); tfile->sk.sk_write_space = tun_sock_write_space; tfile->sk.sk_sndbuf = INT_MAX;