Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792758891; b=3leiWHK7yViuqf5Fgtp+oRlpjOx4PKj3vYdYL1j08tnV758Vt8dP1wLVtgacXzGYNCGR SgDmYvelqpoZ/dyuzeUlz8cok85q7lx049ZyivlTfOpTIfQO+MhYCaZQzBGkxZspbuCCy 8tHU7TJToGEiCoDWkRPqa03Fr5g6ho+zwsX1GxKK1sjsZpIcfdWWm8iifdjYs0jKPtqpK IExBmkVXnMbB6HyaPJe1v0Olh+9lOXJgyM8wWrM1Vkm8vF+ns9EAc3sT71TsIRZtkNmHO 9FsK9uOZwHb/QkiK+m0SPsAs22ITMXkHZ5WSsFsJBz4y7lBi/rdprVbsccBnoHGgKew== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792758891; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=E0MCcGtrAHEcwTggRrQtQqT73Mokxb7hxNYFXMyWp/c=; b=ntEyGYf7OvlHGqklhF7JDED3riQt/cFqAMPcPqSzHeFgee6hCZbghzSwKc3hg3MA4M8X 6aqqSoEl1TEgE5fqug/t/VTFtd9V1kGrNTYuF7PAhIse+fU7ssle/E+01BOsyBsjm9CCe S3v5GQ18lFgh6TDtxKYTfGOYgP15Jeb5fB06tsHs5lCghn/t2UCORXxWNzkTKo0EFF6Xc f/eCSPxtfeKwDmYjGn2RfpzbBTi084SI7MIkw7Vz6nhjOSSMlsBcweeEUl1YGMxxX/XG8 WrP55h8aiqVsZRIdq52O9Q9/6nd+y33YmQF+WyUewM1aWcdJvGLnREb3sWlo/7OztIQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Q6anYAgN; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6648606A31A for ; Fri, 23 Oct 2026 12:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Q6anYAgN Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7E001F01825; Fri, 23 Oct 2026 12:34:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792758890; bh=E0MCcGtrAHEcwTggRrQtQqT73Mokxb7hxNYFXMyWp/c=; h=From:To:Cc:Subject:Date:Reply-To; b=Q6anYAgN+Rh/B7AowcxePvgFKJm/6PMPcDOL6dSn8Af33zRF/pwY8sr0/ZZKewqqC sP991mDWyTCoKEB4/GnABdblckt9hQHAl142GaGOOOZaMxCrQHLL6MyyRPN3ofo6cm GuRqa7eNzNozUAXstRWAf7Qu99kY7XUUEyuyugiE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99008: Bluetooth: RFCOMM: Fix NULL tty_dev dereference in rfcomm_dev_shutdown Date: Fri, 23 Oct 2026 14:20:10 +0200 Message-ID: <2026102319-CVE-2026-99008-88ec@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3609; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=r0sAAI+G93HWL5CZ1nz/cVTtUxNjeMRRBtLUGR4+H6g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A47vNAq//qhZs+jFc/aD19XfzuAzCaxVLEsPLC3L9 mhJ6xbtiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIlonGSYX1UYI/Xt/YtUm2Vn smce+HDvlnrAMYYFR/OmvZxuYnA5dZWFhVKW0OPkpqYPAA== 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: Bluetooth: RFCOMM: Fix NULL tty_dev dereference in rfcomm_dev_shutdown syzbot hit a NULL pointer dereference in rfcomm_dev_shutdown() when an RFCOMM tty is closed. rfcomm_dev_add() puts the new device on rfcomm_dev_list first and only then registers the tty device and saves it in dev->tty_dev. If that registration fails, dev->tty_dev is never set at all. The device can be looked up in the meantime, so an open() of /dev/rfcommN gets through rfcomm_tty_install() and attaches to it. When that tty is closed again, rfcomm_dev_shutdown() uses dev->tty_dev without checking it: Oops: general protection fault, probably for non-canonical address KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] RIP: 0010:rfcomm_dev_shutdown+0x48/0xb0 net/bluetooth/rfcomm/tty.c:131 Call Trace: tty_port_shutdown+0x1bf/0x220 drivers/tty/tty_port.c:372 tty_port_close+0x4e/0x150 drivers/tty/tty_port.c:705 tty_release+0x359/0x1670 drivers/tty/tty_io.c:1718 __fput+0x418/0xa50 fs/file_table.c:512 rfcomm_dev_destruct() already copes with a NULL dev->tty_dev. Add the same check to rfcomm_dev_shutdown(), so the tty device is only moved when it was actually registered. The Linux kernel CVE team has assigned CVE-2026-99008 to this issue. Affected and fixed versions =========================== Issue introduced in 3.12 with commit cad348a17e170451ea8688b532a6ca3e98c63b60 and fixed in 6.6.160 with commit d5c372ad03330f02962d4860df4d355ab25487df Issue introduced in 3.12 with commit cad348a17e170451ea8688b532a6ca3e98c63b60 and fixed in 6.12.113 with commit 3fd5164bdb04635caa7942ddb554b0ec699a9433 Issue introduced in 3.12 with commit cad348a17e170451ea8688b532a6ca3e98c63b60 and fixed in 6.18.57 with commit a661f401f83b8462f2d424e0a1a72b7681e92ea2 Issue introduced in 3.12 with commit cad348a17e170451ea8688b532a6ca3e98c63b60 and fixed in 7.2.11 with commit d0aef0b0374678153244f162df507106d728af39 Issue introduced in 3.12 with commit cad348a17e170451ea8688b532a6ca3e98c63b60 and fixed in 7.3 with commit 08e90633377f1b2567ab5ad6810b74c552246a07 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-99008 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: net/bluetooth/rfcomm/tty.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/d5c372ad03330f02962d4860df4d355ab25487df https://git.kernel.org/stable/c/3fd5164bdb04635caa7942ddb554b0ec699a9433 https://git.kernel.org/stable/c/a661f401f83b8462f2d424e0a1a72b7681e92ea2 https://git.kernel.org/stable/c/d0aef0b0374678153244f162df507106d728af39 https://git.kernel.org/stable/c/08e90633377f1b2567ab5ad6810b74c552246a07