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

Published Sep 17, 2026
·
Updated

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

tty: clear cdev pointer after cdevadd() failure

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

Clear the slot after dropping the reference.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Apply the kernel fix that clears the stale tty cdev pointer (driver->cdevs[index]) after cdev_add() fails, so that tty_unregister_device() does not later pass a freed (stale) pointer to cdev_del().

    Linux kernel tty: clear cdev pointer after cdev_add() failure = Implemented

Event History

Sep 17, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description

Frequently Asked Questions

1

Is a failed device-registration path required for this issue to occur?

Yes. The stale pointer is left only when cdev_add() fails and tty_cdev_add() drops the cdev reference without clearing driver->cdevs[index]. A later tty_unregister_device() call can then pass that freed pointer to cdev_del().

2

What change prevents the use-after-free?

Clear driver->cdevs[index] after dropping the cdev reference following a cdev_add() failure. This prevents tty_unregister_device() from using the stale pointer later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203