tty: add the option to have a tty reject a new ldisc
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tty: add the option to have a tty reject a new ldisc
... and use it to limit the virtual terminals to just N_TTY. They are kind of special, and in particular, the "con_write()" routine violates the "writes cannot sleep" rule that some ldiscs rely on.
This avoids the
BUG: sleeping function called from invalid context at kernel/printk/printk.c:2659
when N_GSM has been attached to a virtual console, and gsmld_write() calls con_write() while holding a spinlock, and con_write() then tries to get the console lock.
From the CVE record · Linux
Linux virtual consoles could accept the N_GSM line discipline even though their write routine can sleep in a context where sleeping is not allowed. Attaching N_GSM to a virtual console and writing through it can trigger a kernel BUG; this requires local access to perform those actions, and the input does not specify authentication requirements.
Engineers running Linux kernels with virtual consoles should check their installations; affected versions were not provided.