In the Linux kernel, the following vulnerability has been resolved:
net/9p: Fix a potential socket leak in p9socketopen
Both p9fdcreatetcp() and p9fdcreateunix() will call p9socketopen(). If the creation of p9transfd fails, p9fdcreatetcp() and p9fdcreateunix() will return an error directly instead of releasing the cscoket, which will result in a socket leak.
This patch adds sock_release() to fix the leak issue.
{ "vanir_signatures": [ { "id": "CVE-2022-49020-017fef7a", "deprecated": false, "digest": { "function_hash": "193162247392141602832991671070179019516", "length": 572.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8b14bd0b500aec1458b51cb621c8e5fab3304260", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-0734fdc9", "deprecated": false, "digest": { "function_hash": "193162247392141602832991671070179019516", "length": 572.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dcc14cfd7debe11b825cb077e75d91d2575b4cb8", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-277aaf12", "deprecated": false, "digest": { "function_hash": "201794513168132280498871069524385697594", "length": 593.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0396227f4daf4792a6a8aaa3b7771dc25c4cd443", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-2ddda083", "deprecated": false, "digest": { "function_hash": "193162247392141602832991671070179019516", "length": 572.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e01c1542379fb395e7da53706df598f38905dfbf", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-374ad17c", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d24d91b9f44620824fc37b766f7cae00ca32748", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" }, { "id": "CVE-2022-49020-554e75ce", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ded893965b895b2dccd3d1436d8d3daffa23ea64", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" }, { "id": "CVE-2022-49020-571aa490", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" }, { "id": "CVE-2022-49020-5dbeec2f", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0396227f4daf4792a6a8aaa3b7771dc25c4cd443", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" }, { "id": "CVE-2022-49020-715045a9", "deprecated": false, "digest": { "function_hash": "193162247392141602832991671070179019516", "length": 572.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8782b32ef867de7981bbe9e86ecb90e92e8780bd", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-8cdd5e60", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8782b32ef867de7981bbe9e86ecb90e92e8780bd", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" }, { "id": "CVE-2022-49020-926c92b6", "deprecated": false, "digest": { "function_hash": "193162247392141602832991671070179019516", "length": 572.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-b2458fe6", "deprecated": false, "digest": { "function_hash": "201794513168132280498871069524385697594", "length": 593.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ded893965b895b2dccd3d1436d8d3daffa23ea64", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-d23f6179", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e01c1542379fb395e7da53706df598f38905dfbf", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" }, { "id": "CVE-2022-49020-d3bf2157", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dcc14cfd7debe11b825cb077e75d91d2575b4cb8", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" }, { "id": "CVE-2022-49020-d525e817", "deprecated": false, "digest": { "function_hash": "193162247392141602832991671070179019516", "length": 572.0 }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2d24d91b9f44620824fc37b766f7cae00ca32748", "target": { "file": "net/9p/trans_fd.c", "function": "p9_socket_open" }, "signature_version": "v1", "signature_type": "Function" }, { "id": "CVE-2022-49020-d908cd62", "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "63432450269016841557691290467941238078", "5920183136283023539354368231319014392", "137021555080996633843994984205744368236", "212865317534572701443884037419486505990", "268659598967241442745426822830562486190" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8b14bd0b500aec1458b51cb621c8e5fab3304260", "target": { "file": "net/9p/trans_fd.c" }, "signature_version": "v1", "signature_type": "Line" } ] }