CVE-2026-90334 PUBLISHED

tty: clear cdev pointer after cdev_add() failure

Assigner: Linux
Reserved: 11.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to fb1de260033c215dba438973d82b48562bdc86bb (excl.)
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to e9e64dd02fd68776afda00777591eca0c3984285 (excl.)
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to 33a44333a9dfda044b0e233399b12ead7f8a90ae (excl.)
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to d331c63570af61ef7aaf516b64a8d6f47518a3a4 (excl.)
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to a83fcddf3c75d004f12aa13555bb73da19fb75a9 (excl.)
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to 4f6bd79bb7e55095f09bec9b4eb6c09df1306116 (excl.)
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to 5c5a795bf6248fe96f96dd9fd79d66bbb4a92077 (excl.)
  • affected from c1a752ba2d6b8a52879c7ab637cff38359ea9827 to 6645856f0df3aeecd45519cb611415b4b89c2223 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.3 is affected
  • unaffected from 0 to 4.3 (excl.)
  • unaffected from 5.10.270 to 5.10.* (incl.)
  • unaffected from 5.15.221 to 5.15.* (incl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.52 to 6.18.* (incl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References