Message ID | 20230824110603.1266826-4-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=Ceq2KXQ0; 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 4RWgJ70kmgz1yh3 for <incoming@patchwork.ozlabs.org>; Thu, 24 Aug 2023 21:06:30 +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 1qZ8AT-0006T6-9N; Thu, 24 Aug 2023 11:06:25 +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 1qZ8AR-0006Rn-4D for kernel-team@lists.ubuntu.com; Thu, 24 Aug 2023 11:06:23 +0000 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.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 DB79D3F0BA for <kernel-team@lists.ubuntu.com>; Thu, 24 Aug 2023 11:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1692875182; bh=DBJZc8Tm8Nk2f4slS1qZk7oMRbvx4lAU4GOOSAcGCOU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ceq2KXQ0RwTS5MLg2yaqjZBUV8lL79+yj3PaJqhPaAc+bV0QCvos2597IsKytM4dD n67qYTogIaxtJRbINXrY4ZGNDprJSm4hRrehV+VshiyTqSqgeNG7g8zhi7cMrlZt7S o+tehYcmzYdF4720o5a/+0SYv3Q+Os3N5kfMA0RbM4WNMy4VcJ+M8JiaDXjTwEI8Lr ZSzBUcF4fb8aigPjSZcAUKGfid8aBOKDZ+m2Gi/9Qyhv/aIc/q+k5lZzEEodkYe4cZ gulnmC843OeLivmJdSMP/9FvdVBjXX/tg2415sx8RR2voLy3WEkLqMj4KPSLKXm5K/ oZWwhEgKsDAPQ== Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-993d41cbc31so473964666b.1 for <kernel-team@lists.ubuntu.com>; Thu, 24 Aug 2023 04:06:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692875182; x=1693479982; 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=DBJZc8Tm8Nk2f4slS1qZk7oMRbvx4lAU4GOOSAcGCOU=; b=QLusIwplmsCdFE/7TZaG2X7+VA+JIoYWAJjp7/mYFgRsqX/yp3M11YHpmKb9iByMqM Ub4dtQCjU+mnf4E6J3JAurCLAM/yO0U1JAjM2ub+7BrsPt+ZBQkNPrHAVOQoxm4p+RzM RgggkE/Ltx7XGUZtsDE2zBbBjVwL189vdgktzjNY9dJ/BRCbE8TbNLq6ewZgGuEBLmYm MvAXAIhRdW/YANTVyjIWXV1mSUgoG9X+kyT2Q3yICpFFskp9yZGCBBEP6bbKN496V2Yw oVrs/OJuO+bha5u67ZN66ZahZQD2dfG0uAN/FFnVaTGVJ8v3ehpnbpNKQ8ixZrXcYB6B aolA== X-Gm-Message-State: AOJu0YxEeuURkUIhRxjXPtac4gHQG4mWBWaV6vklj0uDdxQ/w4+WfTKE XMTgoSuaFr8rhqEa5h1faE/Ej7OToOBePjqjr88QhJdowl/iHlgOs4TQ1Pu4oanWpzRMvaTo6U2 nbiztOThe6AP32/JLLDr3CsindxzzW+Ku0EHk9IWEfjVYcR5+P+nl X-Received: by 2002:a17:906:31d4:b0:9a1:b33a:e468 with SMTP id f20-20020a17090631d400b009a1b33ae468mr6449289ejf.49.1692875181784; Thu, 24 Aug 2023 04:06:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtNKuY84JGeR3M30uwZvKoDgOHEaWAF7N12KJW5iHeglTU5xA49/EdGmd2Jaf7OhLwMCsxkA== X-Received: by 2002:a17:906:31d4:b0:9a1:b33a:e468 with SMTP id f20-20020a17090631d400b009a1b33ae468mr6449279ejf.49.1692875181554; Thu, 24 Aug 2023 04:06:21 -0700 (PDT) Received: from localhost ([24.133.89.143]) by smtp.gmail.com with ESMTPSA id kf18-20020a17090776d200b0098748422178sm10753498ejc.56.2023.08.24.04.06.20 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 04:06:21 -0700 (PDT) From: Cengiz Can <cengiz.can@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU OEM-6.0 3/3] tap: tap_open(): correctly initialize socket uid Date: Thu, 24 Aug 2023 14:06:03 +0300 Message-Id: <20230824110603.1266826-4-cengiz.can@canonical.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230824110603.1266826-1-cengiz.can@canonical.com> References: <20230824110603.1266826-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-1076
|
expand
|
diff --git a/drivers/net/tap.c b/drivers/net/tap.c index 9e75ed3f08ce..760d8d1b6cba 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -533,7 +533,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(&q->sock, &q->sk); + sock_init_data_uid(&q->sock, &q->sk, inode->i_uid); 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;