tty: tty_port: restore TTY_IO_ERROR on activation failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.113, 6.18.56, 7.2.10
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: tty: tty_port: restore TTY_IO_ERROR on activation failure Make sure to restore the TTY_IO_ERROR flag if activation fails to prevent I/O attempts on a port that is gone or powered down. This specifically avoids issues like kernel panic due to unclocked accesses or NULL-pointer dereferences when accessing powered down or deregistered ports when a TTY ioctl races with hangup and open. Note that the flag is set again in tty_port_close() but not restoring it on activation failure leaves a window where drivers fail to handle the ioctl-hangup race.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From a9a37ec33a1b3e66b260ac1c29bff0aec8b89ae4 · fixed in 16032c980d8f71642fcdc99309c571df3fcf3328; From a9a37ec33a1b3e66b260ac1c29bff0aec8b89ae4 · fixed in 34d4f67472ef7a744970b772a8565ddc727788e2; From a9a37ec33a1b3e66b260ac1c29bff0aec8b89ae4 · fixed in 7021acc84c2e0add77a1a33152e3a1e428fdbfdb; From a9a37ec33a1b3e66b260ac1c29bff0aec8b89ae4 · fixed in 6388409b711eb91b14fa075a4d861ccc4df1cfe7; From a9a37ec33a1b3e66b260ac1c29bff0aec8b89ae4 · fixed in 56964f6a31238fb41d5830bb42520c5b10ff7d8f
- Linux Linux
2.6.33
- KernelLinux
From 2.6.33 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10