Skip to contentSkip to conversation

CVE-2026-90334: tty: clear cdev pointer after cdev_add() failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

tty: clear cdev pointer after cdev_add() failure

tty_cdev_add() drops the cdev reference when cdev_add() fails, but leaves driver->cdevs[index] pointing to freed memory. tty_unregister_device() later passes that stale pointer to cdev_del(), causing a use-after-free.

Clear the slot after dropping the reference.

The Linux kernel CVE team has assigned CVE-2026-90334 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 5.10.270 with commit fb1de260033c215dba438973d82b48562bdc86bb
	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 5.15.221 with commit e9e64dd02fd68776afda00777591eca0c3984285
	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 6.1.188 with commit 33a44333a9dfda044b0e233399b12ead7f8a90ae
	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 6.6.157 with commit d331c63570af61ef7aaf516b64a8d6f47518a3a4
	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 6.12.110 with commit a83fcddf3c75d004f12aa13555bb73da19fb75a9
	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 6.18.52 with commit 4f6bd79bb7e55095f09bec9b4eb6c09df1306116
	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 7.2.6 with commit 5c5a795bf6248fe96f96dd9fd79d66bbb4a92077
	Issue introduced in 4.3 with commit c1a752ba2d6b8a52879c7ab637cff38359ea9827 and fixed in 7.3-rc1 with commit 6645856f0df3aeecd45519cb611415b4b89c2223

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-90334

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/tty/tty_io.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/fb1de260033c215dba438973d82b48562bdc86bb
	https://git.kernel.org/stable/c/e9e64dd02fd68776afda00777591eca0c3984285
	https://git.kernel.org/stable/c/33a44333a9dfda044b0e233399b12ead7f8a90ae
	https://git.kernel.org/stable/c/d331c63570af61ef7aaf516b64a8d6f47518a3a4
	https://git.kernel.org/stable/c/a83fcddf3c75d004f12aa13555bb73da19fb75a9
	https://git.kernel.org/stable/c/4f6bd79bb7e55095f09bec9b4eb6c09df1306116
	https://git.kernel.org/stable/c/5c5a795bf6248fe96f96dd9fd79d66bbb4a92077
	https://git.kernel.org/stable/c/6645856f0df3aeecd45519cb611415b4b89c2223