Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7550657D21C for ; Fri, 11 Sep 2026 19:49:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156154; cv=none; b=r68NAoAssXEIia+hFY90NvGvxNzq/Js7P6sf02gM3cmSb+Ajh4M49kKttAT5Ar37HWDgeDphShlcKZmBwBQDKL0ylQUK47whNwxY5OtlS0enDJ7khsUR9r65q+p89VG3n8vcyIIKggl0rkARTvu+KwZaU0dKok83+n6RSUAHb1g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156154; c=relaxed/simple; bh=IhksqhrI+ORE++KeL3/dOLpg6bA/nSBfhhfj1QQtv9Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eZ0WxUbRb4pfyHzAJevgQDH1gURufeYooow6nf3GFwYK+Spw14y+QnJcoWHhLVlOIIs15Y+nfpUj5LH36TKv75I6dnLdFaJYJf/VMudMyFQjp1v70JFmvvbz1SxOPhKE7lsuqxDNzLQ4H83irFg18QYmuFQSuAkz3skJYi3En3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cxmX+vyQ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cxmX+vyQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3F1B1F00893; Fri, 11 Sep 2026 19:48:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156139; bh=XVHJw1LDLb5yOkr3jHc7QTNqhTBFAT/EHIq2aypzq0Y=; h=From:To:Cc:Subject:Date:Reply-To; b=cxmX+vyQu2sl+hNHVD5EexcBet643w5/7q412HPS3rahkyGEeuQgL9yvLQL3PDhXk 0bl0XGFbDRJ5sEAb15ZAVNi9Yk7lwjCosrsCHKmS2VBB12Yx8i53GQw08mZ7k3oSNA ZYGyvzJgz44NUdE0PnfNh/TVIzPR66YjE6BbJXZ4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-81001: slip: fix use-after-free in sl_sync() Date: Fri, 11 Sep 2026 21:41:47 +0200 Message-ID: <2026091151-CVE-2026-81001-0904@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6779; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1S+iVxHfHwUhsGRtV8sKlnL29W8BHAObg9MBtAMKnZk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIp07p9ko1cXKv/g57eVRi3lRZrt4Xzd7Zza+P76xZ zKzy93EjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI8iKG+TnH4g6v28uoP+Pd xqetv466bL/w/x/DPLW5f182yfbd9Y2/2XfWrv3FlYsuGgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: slip: fix use-after-free in sl_sync() slip_devs[] stores bare net_device pointers and takes no reference on them. sl_sync() and sl_alloc() walk that table from slip_open() under rtnl_lock(), while an entry is dropped by sl_free_netdev(), which sl_setup() installs as dev->priv_destructor. priv_destructor is called from netdev_run_todo(), which deliberately runs with the RTNL semaphore released so that it can sleep while waiting for the device refcount to drop: /* Snapshot list, allow later requests */ list_replace_init(&net_todo_list, &list); __rtnl_unlock(); ... if (dev->priv_destructor) dev->priv_destructor(dev); /* slip_devs[i] = NULL */ if (dev->needs_free_netdev) free_netdev(dev); ... /* Free network device */ kobject_put(&dev->dev.kobj); So rtnl_lock() does not serialise slip_open() against the teardown at all. sl_sync() can load slip_devs[i] while the entry is still published and dereference it after netdev_run_todo() has run the destructor and released the device: CPU0 (slip_open) CPU1 (slip_close) unregister_netdev() rtnl_unlock() netdev_run_todo() __rtnl_unlock() rtnl_lock() sl_sync() dev = slip_devs[i] priv_destructor(dev) slip_devs[i] = NULL kobject_put(&dev->dev.kobj) /* dev is freed */ sl = netdev_priv(dev) if (sl->tty || sl->leased) /* use-after-free */ BUG: KASAN: use-after-free in sl_sync drivers/net/slip/slip.c:730 [inline] BUG: KASAN: use-after-free in slip_open+0xef4/0x1210 drivers/net/slip/slip.c:806 Read of size 1 at addr ffff8880712dac71 by task syz-executor.2/6506 CPU: 2 PID: 6506 Comm: syz-executor.2 Not tainted 6.1.134-syzkaller-00260-g0c8fc3469765 #0 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: sl_sync drivers/net/slip/slip.c:730 [inline] slip_open+0xef4/0x1210 drivers/net/slip/slip.c:806 tty_ldisc_open+0xa2/0x120 drivers/tty/tty_ldisc.c:433 tty_set_ldisc+0x324/0x720 drivers/tty/tty_ldisc.c:564 tiocsetd drivers/tty/tty_io.c:2428 [inline] tty_ioctl+0x5f0/0x1530 drivers/tty/tty_io.c:2712 Allocated by task 6502: alloc_netdev_mqs+0x98/0xfe0 net/core/dev.c:10719 sl_alloc drivers/net/slip/slip.c:756 [inline] slip_open+0x36d/0x1210 drivers/net/slip/slip.c:817 tty_ldisc_open+0xa2/0x120 drivers/tty/tty_ldisc.c:433 tty_set_ldisc+0x324/0x720 drivers/tty/tty_ldisc.c:564 Freed by task 6497: device_release+0xa2/0x240 drivers/base/core.c:2507 kobject_put+0x179/0x280 lib/kobject.c:729 netdev_run_todo+0x6c8/0xef0 net/core/dev.c:10509 slip_close+0x166/0x1c0 drivers/net/slip/slip.c:906 tty_ldisc_close+0x113/0x1a0 drivers/tty/tty_ldisc.c:456 tty_ldisc_kill+0x94/0x160 drivers/tty/tty_ldisc.c:614 tty_ldisc_release+0xe3/0x2b0 drivers/tty/tty_ldisc.c:782 tty_release+0xbcc/0xe70 drivers/tty/tty_io.c:1860 Commit e58c19124189 ("slip: Fix use-after-free Read in slip_open") fixed a different source of stale entries - a device left in slip_devs[] after slip_open() freed it on the registration error path - and does not address this race, which is why the report survives it. Drop the entry from ndo_uninit instead. unregister_netdevice() calls ndo_uninit under RTNL, before the device is queued to netdev_run_todo(), so an entry that sl_sync() can still see while holding RTNL belongs to a device that cannot be freed until RTNL is dropped. sl_free_netdev() stays only for the slip_open() error path, where register_netdevice() may have failed before ndo_init and ndo_uninit is then not called either. Both running for the same device is harmless: they run under the same RTNL section, so the slot cannot have been reused in between. This also removes the second symptom of the missing exclusion: a destructor running after sl_alloc() had already handed the slot out to another channel used to clear a live entry, so sl_sync() stopped at that NULL, sl_alloc() returned the same index again, and register_netdevice() failed with -EEXIST because slN was still there. Reproduced on x86_64 with several threads looping over open("/dev/ptmx") + ioctl(TIOCSETD, N_SLIP) + close(). Found by Linux Verification Center (linuxtesting.org) with Syzkaller. The Linux kernel CVE team has assigned CVE-2026-81001 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 6.12.109 with commit a235b20972bbd98ca1fb127d6269434edc607f19 Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 6.18.50 with commit 486577db807891d0f964fdf13c1640c7f54b0ad1 Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 7.2.4 with commit d6f25e5bd777b05880da8673daf74a8419480545 Issue introduced in 2.6.32 with commit 5342b77c4123ba39f911d92a813295fb3bb21f69 and fixed in 7.3-rc1 with commit 2c4e7c42d77e78ad595dbb9e4b5886b58b45d89d Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-81001 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/slip/slip.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a235b20972bbd98ca1fb127d6269434edc607f19 https://git.kernel.org/stable/c/486577db807891d0f964fdf13c1640c7f54b0ad1 https://git.kernel.org/stable/c/d6f25e5bd777b05880da8673daf74a8419480545 https://git.kernel.org/stable/c/2c4e7c42d77e78ad595dbb9e4b5886b58b45d89d