tty: goldfish: Use tty_port_destroy() to destroy port
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 666b7793d4bfa9f150b5c2007ab48c755ddc53ca · < 45f6ce70abfb7ccf9d787781cbc4c03294a775a1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tty: goldfish: Use tty_port_destroy() to destroy port
In goldfish_tty_probe(), the port initialized through tty_port_init() should be destroyed in error paths.In goldfish_tty_remove(), qtty->port also should be destroyed or else might leak resources.
Fix the above by calling tty_port_destroy().
From the CVE record · Linux
The Linux kernel’s goldfish tty driver may leak resources when probe fails or the device is removed because it does not destroy an initialized tty port. The input does not describe how an attacker could trigger this or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the goldfish tty driver should check whether their kernel is affected; affected versions are not specified.