In the Linux kernel, the following vulnerability has been resolved:
tty: goldfish: Use ttyportdestroy() to destroy port
In goldfishttyprobe(), the port initialized through ttyportinit() should be destroyed in error paths.In goldfishttyremove(), qtty->port also should be destroyed or else might leak resources.
Fix the above by calling ttyportdestroy().
[
{
"id": "CVE-2022-49399-24353769",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2678.0,
"function_hash": "59434120179079990224840232398562759382"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@326192b99c903a2193d820c30ed936cc2402382c"
},
{
"id": "CVE-2022-49399-2a499a8a",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@507b05063d1b7a1fcb9f7d7c47586fc4f3508f98"
},
{
"id": "CVE-2022-49399-32a288f4",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2678.0,
"function_hash": "59434120179079990224840232398562759382"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee6c33b29e624f515202a31bf6ef0437f26a1867"
},
{
"id": "CVE-2022-49399-35751fd6",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@507b05063d1b7a1fcb9f7d7c47586fc4f3508f98"
},
{
"id": "CVE-2022-49399-365b849c",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2678.0,
"function_hash": "59434120179079990224840232398562759382"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@241fcb79dd1df276d80b19f5f6acc9eaaaa63309"
},
{
"id": "CVE-2022-49399-41d88575",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2594.0,
"function_hash": "14273657540499266929613593070361082020"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45f6ce70abfb7ccf9d787781cbc4c03294a775a1"
},
{
"id": "CVE-2022-49399-4330a8c4",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4639d1b992de8f37d66f698056875c274efcd45f"
},
{
"id": "CVE-2022-49399-481260ac",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@da64f419d7f78272bfe40dde1262602d4ff6b32c"
},
{
"id": "CVE-2022-49399-49bc2cc4",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee6c33b29e624f515202a31bf6ef0437f26a1867"
},
{
"id": "CVE-2022-49399-4f0a3962",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9ae3d073f7db5578ae1907544f0c15947e9678e6"
},
{
"id": "CVE-2022-49399-5f165880",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2594.0,
"function_hash": "14273657540499266929613593070361082020"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@507b05063d1b7a1fcb9f7d7c47586fc4f3508f98"
},
{
"id": "CVE-2022-49399-786596cd",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2678.0,
"function_hash": "59434120179079990224840232398562759382"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9ae3d073f7db5578ae1907544f0c15947e9678e6"
},
{
"id": "CVE-2022-49399-7c82379a",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9ae3d073f7db5578ae1907544f0c15947e9678e6"
},
{
"id": "CVE-2022-49399-89573e54",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45f6ce70abfb7ccf9d787781cbc4c03294a775a1"
},
{
"id": "CVE-2022-49399-8a47c810",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@326192b99c903a2193d820c30ed936cc2402382c"
},
{
"id": "CVE-2022-49399-8b2bb03f",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2678.0,
"function_hash": "59434120179079990224840232398562759382"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@da64f419d7f78272bfe40dde1262602d4ff6b32c"
},
{
"id": "CVE-2022-49399-8bc0d040",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@da64f419d7f78272bfe40dde1262602d4ff6b32c"
},
{
"id": "CVE-2022-49399-a2c9ddfe",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@326192b99c903a2193d820c30ed936cc2402382c"
},
{
"id": "CVE-2022-49399-adf652a1",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@45f6ce70abfb7ccf9d787781cbc4c03294a775a1"
},
{
"id": "CVE-2022-49399-ae490683",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4639d1b992de8f37d66f698056875c274efcd45f"
},
{
"id": "CVE-2022-49399-af4d2ea9",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@241fcb79dd1df276d80b19f5f6acc9eaaaa63309"
},
{
"id": "CVE-2022-49399-bd63782d",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"97499845220343469113437515460840589750",
"116497839168182213724100374196580897094",
"335223032223411258555208733802691080858",
"51006382923059741075024876662929839804",
"303709013599069106118548693255805181781",
"82829835739870152396410458170439334329",
"101548598352846437149113252357651446770",
"328341180907187762905373367672260392869"
],
"threshold": 0.9
},
"target": {
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@241fcb79dd1df276d80b19f5f6acc9eaaaa63309"
},
{
"id": "CVE-2022-49399-e288d198",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 2594.0,
"function_hash": "14273657540499266929613593070361082020"
},
"target": {
"function": "goldfish_tty_probe",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4639d1b992de8f37d66f698056875c274efcd45f"
},
{
"id": "CVE-2022-49399-f79d7f3d",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 429.0,
"function_hash": "111886105303862105788126564675526875720"
},
"target": {
"function": "goldfish_tty_remove",
"file": "drivers/tty/goldfish.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ee6c33b29e624f515202a31bf6ef0437f26a1867"
}
]