{"id":2219407,"url":"http://patchwork.ozlabs.org/api/covers/2219407/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/cover/20260402230724.1279847-1-tim.whisonant@canonical.com/","project":{"id":15,"url":"http://patchwork.ozlabs.org/api/projects/15/?format=json","name":"Ubuntu Kernel","link_name":"ubuntu-kernel","list_id":"kernel-team.lists.ubuntu.com","list_email":"kernel-team@lists.ubuntu.com","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260402230724.1279847-1-tim.whisonant@canonical.com>","list_archive_url":null,"date":"2026-04-02T23:07:18","name":"[SRU,N/Q,0/1] CVE-2026-23394","submitter":{"id":89903,"url":"http://patchwork.ozlabs.org/api/people/89903/?format=json","name":"Tim Whisonant","email":"tim.whisonant@canonical.com"},"mbox":"http://patchwork.ozlabs.org/project/ubuntu-kernel/cover/20260402230724.1279847-1-tim.whisonant@canonical.com/mbox/","series":[{"id":498561,"url":"http://patchwork.ozlabs.org/api/series/498561/?format=json","web_url":"http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=498561","date":"2026-04-02T23:07:18","name":"CVE-2026-23394","version":1,"mbox":"http://patchwork.ozlabs.org/series/498561/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2219407/comments/","headers":{"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;\n\tdkim=fail reason=\"signature verification failed\" (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=dRRr0WxK;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmyDw72L0z1yDH\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 03 Apr 2026 10:07:44 +1100 (AEDT)","from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1w8R8R-0004Ch-7m; Thu, 02 Apr 2026 23:07:35 +0000","from smtp-relay-internal-0.internal ([10.131.114.225]\n helo=smtp-relay-internal-0.canonical.com)\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <tim.whisonant@canonical.com>)\n id 1w8R8P-0004Ah-66\n for kernel-team@lists.ubuntu.com; Thu, 02 Apr 2026 23:07:33 +0000","from mail-oi1-f200.google.com (mail-oi1-f200.google.com\n [209.85.167.200])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id E7C483F129\n for <kernel-team@lists.ubuntu.com>; Thu,  2 Apr 2026 23:07:32 +0000 (UTC)","by mail-oi1-f200.google.com with SMTP id\n 5614622812f47-463ee33f9b2so1650809b6e.3\n for <kernel-team@lists.ubuntu.com>; Thu, 02 Apr 2026 16:07:32 -0700 (PDT)","from localhost (104-6-108-11.lightspeed.frokca.sbcglobal.net.\n [104.6.108.11]) by smtp.gmail.com with ESMTPSA id\n 5614622812f47-46d92a534f4sm2548744b6e.9.2026.04.02.16.07.29\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 02 Apr 2026 16:07:30 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1775171252;\n bh=sDvK/2/4miJO4obkOVtl4RVnOgQ+pLtdEuJia/haOOI=;\n h=From:To:Subject:Date:Message-ID:MIME-Version;\n b=dRRr0WxK3T9uANDgoE2JqTF10bi4zLLWXx/86U3DAhjeWHzXDEMdbCRMsOv4xsd5+\n 9IzFoBvsiFiJtN4L5+W0pdkPF9h1NG2fukY1UpHerTHsRSRc3Oum+8KFJnYDn1WZFc\n XBsEQCT8Tbuz5tMvEIsHAX5uHMmQ7M1tV3mhXHB/1DowbM73qZnKyBuYVwkHTuhbAC\n /6jl3F0MCHDjDkdnU0ZQhCcay28Dt7hVaBueDAIVSOeJP7VU1IHLkG29QeLLbqek70\n aatOVYa2fA8pSZI76PYblOVWpknpmJZvG9ATjD5qRs41VE3ARgChE0iqLnVm/bx66W\n yz9F8VtTsxpHwjPsk229IKTPGSghP9ZAeDVsw+0liuixAyGf7j7F5mm+M39l0Gn93i\n k5dLyZj6jxQ9wgO8QpnnSIiU+hinWAWKj08mSTgm8DgjkoUDcFPPiyD9NMoUy579+x\n lUty3R/JB5A/vMS+yxTxiFHkr7KTwdpGlsCIHlA0LNY8C5Fpz6BC47didYga86ZU45\n A2hlkLiy8XoypuNBkZxO6qfErvgUVYFgeALXo6icVd+18yOhD0rkmXvK44qj3dY31O\n CvOJquGS5xx1yrziqLRbr28p2qitikihSOIRE9P5beP8FU2D/z5DpJaHL+kRaiq+Pi\n DWyOEk8vKzGZoinghFMBDX/c=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775171251; x=1775776051;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=sDvK/2/4miJO4obkOVtl4RVnOgQ+pLtdEuJia/haOOI=;\n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by 2002:a05:6808:5088:b0:467:4939:966f with SMTP id\n 5614622812f47-46ef7e16d5fmr608795b6e.41.1775171251106;\n Thu, 02 Apr 2026 16:07:31 -0700 (PDT)","by 2002:a05:6808:5088:b0:467:4939:966f with SMTP id\n 5614622812f47-46ef7e16d5fmr608782b6e.41.1775171250659;\n Thu, 02 Apr 2026 16:07:30 -0700 (PDT)"],"From":"Tim Whisonant <tim.whisonant@canonical.com>","To":"kernel-team@lists.ubuntu.com","Subject":"[SRU][N/Q][PATCH 0/1] CVE-2026-23394","Date":"Thu,  2 Apr 2026 16:07:18 -0700","Message-ID":"<20260402230724.1279847-1-tim.whisonant@canonical.com>","X-Mailer":"git-send-email 2.43.0","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>,\n <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>,\n <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>"},"content":"SRU Justification:\n\n[Impact]\n\naf_unix: Give up GC if MSG_PEEK intervened.\n\nIgor Ushakov reported that GC purged the receive queue of\nan alive socket due to a race with MSG_PEEK with a nice repro.\n\nThis is the exact same issue previously fixed by commit\ncbcf01128d0a (\"af_unix: fix garbage collect vs MSG_PEEK\").\n\nAfter GC was replaced with the current algorithm, the cited\ncommit removed the locking dance in unix_peek_fds() and\nreintroduced the same issue.\n\nThe problem is that MSG_PEEK bumps a file refcount without\ninteracting with GC.\n\nConsider an SCC containing sk-A and sk-B, where sk-A is\nclose()d but can be recv()ed via sk-B.\n\nThe bad thing happens if sk-A is recv()ed with MSG_PEEK from\nsk-B and sk-B is close()d while GC is checking unix_vertex_dead()\nfor sk-A and sk-B.\n\n  GC thread                    User thread\n  ---------                    -----------\n  unix_vertex_dead(sk-A)\n  -> true   <------.\n                    \\\n                     `------   recv(sk-B, MSG_PEEK)\n              invalidate !!    -> sk-A's file refcount : 1 -> 2\n\n                               close(sk-B)\n                               -> sk-B's file refcount : 2 -> 1\n  unix_vertex_dead(sk-B)\n  -> true\n\nInitially, sk-A's file refcount is 1 by the inflight fd in sk-B\nrecvq.  GC thinks sk-A is dead because the file refcount is the\nsame as the number of its inflight fds.\n\nHowever, sk-A's file refcount is bumped silently by MSG_PEEK,\nwhich invalidates the previous evaluation.\n\nAt this moment, sk-B's file refcount is 2; one by the open fd,\nand one by the inflight fd in sk-A.  The subsequent close()\nreleases one refcount by the former.\n\nFinally, GC incorrectly concludes that both sk-A and sk-B are dead.\n\nOne option is to restore the locking dance in unix_peek_fds(),\nbut we can resolve this more elegantly thanks to the new algorithm.\n\nThe point is that the issue does not occur without the subsequent\nclose() and we actually do not need to synchronise MSG_PEEK with\nthe dead SCC detection.\n\nWhen the issue occurs, close() and GC touch the same file refcount.\nIf GC sees the refcount being decremented by close(), it can just\ngive up garbage-collecting the SCC.\n\nTherefore, we only need to signal the race during MSG_PEEK with\na proper memory barrier to make it visible to the GC.\n\nLet's use seqcount_t to notify GC when MSG_PEEK occurs and let\nit defer the SCC to the next run.\n\nThis way no locking is needed on the MSG_PEEK side, and we can\navoid imposing a penalty on every MSG_PEEK unnecessarily.\n\nNote that we can retry within unix_scc_dead() if MSG_PEEK is\ndetected, but we do not do so to avoid hung task splat from\nabusive MSG_PEEK calls.\n\n[Fix]\n\nQuesting: backported from upstream\nNoble:    backported from upstream\nJammy:    not affected\nFocal:    not affected\nBionic:   not affected\nXenial:   not affected\nTrusty:   not affected\n\n[Test Plan]\n\nCompile and boot tested.\n\n[Where problems could occur]\n\nThe change affects Unix domain sockets, specifically the garbage\ncollection algorithm, to prevent a race condition that leads to\nearly clearing of a receive queue. Issues would affect Unix\ndomain sockets, particularly when used with MSG_PEEK.\n\nKuniyuki Iwashima (1):\n  af_unix: Give up GC if MSG_PEEK intervened.\n\n net/unix/af_unix.c |  2 ++\n net/unix/af_unix.h |  1 +\n net/unix/garbage.c | 79 ++++++++++++++++++++++++++++++----------------\n 3 files changed, 54 insertions(+), 28 deletions(-)"}