CVE-2022-49399
JSON

5.5medium

tty: goldfish: Use tty_port_destroy() to destroy port

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.26% (higher than 19% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

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().

Affected

Product or packageVersionsReported by
Linux Linuxfrom 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 241fcb79dd1df276d80b19f5f6acc9eaaaa63309, from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 326192b99c903a2193d820c30ed936cc2402382c, from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 9ae3d073f7db5578ae1907544f0c15947e9678e6, from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before ee6c33b29e624f515202a31bf6ef0437f26a1867, from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before da64f419d7f78272bfe40dde1262602d4ff6b32c, from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 45f6ce70abfb7ccf9d787781cbc4c03294a775a1, from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 4639d1b992de8f37d66f698056875c274efcd45f, from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 507b05063d1b7a1fcb9f7d7c47586fc4f3508f98 and 1 more
Not affected: before 3.9, from 4.14.283 up to 4.14.*, from 4.19.247 up to 4.19.*, from 5.4.198 up to 5.4.*, from 5.10.122 up to 5.10.*, from 5.15.47 up to 5.15.*
CVE List
linux linux_kernelfrom 3.9 before 4.14.283, from 4.15 before 4.19.247, from 4.20 before 5.4.198, from 5.5 before 5.10.122, from 5.11 before 5.15.47, from 5.16 before 5.17.15, from 5.18 before 5.18.4NVD

What each source says

CVE List

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().

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tty: goldfish: Use tty_port_destroy() para destruir el puerto En goldfish_tty_probe(), el puerto inicializado a través de tty_port_init() debe destruirse en las rutas de error. En goldfish_tty_remove(), qtty->port también debe destruirse o, de lo contrario, podría perder recursos. Corrija lo anterior llamando a tty_port_destroy().

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49399 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-49399 changed 2026-06-17Public domain