{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49020","id":"CVE-2022-49020","title":"net/9p: Fix a potential socket leak in p9_socket_open","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p: Fix a potential socket leak in p9_socket_open\n\nBoth p9_fd_create_tcp() and p9_fd_create_unix() will call\np9_socket_open(). If the creation of p9_trans_fd fails,\np9_fd_create_tcp() and p9_fd_create_unix() will return an\nerror directly instead of releasing the cscoket, which will\nresult in a socket leak.\n\nThis patch adds so","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p: Fix a potential socket leak in p9_socket_open\n\nBoth p9_fd_create_tcp() and p9_fd_create_unix() will call\np9_socket_open(). If the creation of p9_trans_fd fails,\np9_fd_create_tcp() and p9_fd_create_unix() will return an\nerror directly instead of releasing the cscoket, which will\nresult in a socket leak.\n\nThis patch adds sock_release() to fix the leak issue.","published":"2024-10-21T20:06:27.976Z","updated":"2026-10-28T02:30:34.927685810Z","reserved":"2024-08-22T01:27:53.649Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"0396227f4daf4792a6a8aaa3b7771dc25c4cd443","status":"affected","versionType":"git"},{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"ded893965b895b2dccd3d1436d8d3daffa23ea64","status":"affected","versionType":"git"},{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"8b14bd0b500aec1458b51cb621c8e5fab3304260","status":"affected","versionType":"git"},{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"2d24d91b9f44620824fc37b766f7cae00ca32748","status":"affected","versionType":"git"},{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"e01c1542379fb395e7da53706df598f38905dfbf","status":"affected","versionType":"git"},{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"8782b32ef867de7981bbe9e86ecb90e92e8780bd","status":"affected","versionType":"git"},{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd","status":"affected","versionType":"git"},{"version":"6b18662e239a032f908b7f6e164bdf7e2e0a32c9","lessThan":"dcc14cfd7debe11b825cb077e75d91d2575b4cb8","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.33","status":"affected"},{"version":"0","lessThan":"2.6.33","status":"unaffected","versionType":"semver"},{"version":"4.9.335","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.301","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.268","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.226","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.158","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.82","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.12","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/0396227f4daf4792a6a8aaa3b7771dc25c4cd443","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ded893965b895b2dccd3d1436d8d3daffa23ea64","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8b14bd0b500aec1458b51cb621c8e5fab3304260","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2d24d91b9f44620824fc37b766f7cae00ca32748","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e01c1542379fb395e7da53706df598f38905dfbf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8782b32ef867de7981bbe9e86ecb90e92e8780bd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dcc14cfd7debe11b825cb077e75d91d2575b4cb8","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49020.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49020","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00236,"epssPercentile":0.14697,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49020","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49020","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49020","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49020","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}