All reports
Medium

kernel: tty: clear cdev pointer after cdev_add() failure

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-90334

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-23

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.

A flaw was found in the Linux kernel's tty subsystem. When a character device (cdev) is added and fails, a pointer to the device's memory is not properly cleared. This can lead to a 'use-after-free' vulnerability, where the system attempts to access memory that has already been released. A local attacker could potentially exploit this to cause a system crash (denial of service) or, in some scenarios, execute arbitrary code.