CVE-2022-49020 (GCVE-0-2022-49020)

Vulnerability from cvelistv5 – Published: 2024-10-21 20:06 – Updated: 2025-05-04 08:28
VLAI?
Title
net/9p: Fix a potential socket leak in p9_socket_open
Summary
In the Linux kernel, the following vulnerability has been resolved: net/9p: Fix a potential socket leak in p9_socket_open Both p9_fd_create_tcp() and p9_fd_create_unix() will call p9_socket_open(). If the creation of p9_trans_fd fails, p9_fd_create_tcp() and p9_fd_create_unix() 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.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < 0396227f4daf4792a6a8aaa3b7771dc25c4cd443 (git)
Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < ded893965b895b2dccd3d1436d8d3daffa23ea64 (git)
Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < 8b14bd0b500aec1458b51cb621c8e5fab3304260 (git)
Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < 2d24d91b9f44620824fc37b766f7cae00ca32748 (git)
Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < e01c1542379fb395e7da53706df598f38905dfbf (git)
Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < 8782b32ef867de7981bbe9e86ecb90e92e8780bd (git)
Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd (git)
Affected: 6b18662e239a032f908b7f6e164bdf7e2e0a32c9 , < dcc14cfd7debe11b825cb077e75d91d2575b4cb8 (git)
Create a notification for this product.
    Linux Linux Affected: 2.6.33
Unaffected: 0 , < 2.6.33 (semver)
Unaffected: 4.9.335 , ≤ 4.9.* (semver)
Unaffected: 4.14.301 , ≤ 4.14.* (semver)
Unaffected: 4.19.268 , ≤ 4.19.* (semver)
Unaffected: 5.4.226 , ≤ 5.4.* (semver)
Unaffected: 5.10.158 , ≤ 5.10.* (semver)
Unaffected: 5.15.82 , ≤ 5.15.* (semver)
Unaffected: 6.0.12 , ≤ 6.0.* (semver)
Unaffected: 6.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-49020",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-10-22T13:12:42.990180Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-10-22T13:18:37.309Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/9p/trans_fd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0396227f4daf4792a6a8aaa3b7771dc25c4cd443",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            },
            {
              "lessThan": "ded893965b895b2dccd3d1436d8d3daffa23ea64",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            },
            {
              "lessThan": "8b14bd0b500aec1458b51cb621c8e5fab3304260",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            },
            {
              "lessThan": "2d24d91b9f44620824fc37b766f7cae00ca32748",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            },
            {
              "lessThan": "e01c1542379fb395e7da53706df598f38905dfbf",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            },
            {
              "lessThan": "8782b32ef867de7981bbe9e86ecb90e92e8780bd",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            },
            {
              "lessThan": "aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            },
            {
              "lessThan": "dcc14cfd7debe11b825cb077e75d91d2575b4cb8",
              "status": "affected",
              "version": "6b18662e239a032f908b7f6e164bdf7e2e0a32c9",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/9p/trans_fd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.33"
            },
            {
              "lessThan": "2.6.33",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.335",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.301",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.268",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.82",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.335",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.301",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.268",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.226",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.158",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.82",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.12",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:28:13.138Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0396227f4daf4792a6a8aaa3b7771dc25c4cd443"
        },
        {
          "url": "https://git.kernel.org/stable/c/ded893965b895b2dccd3d1436d8d3daffa23ea64"
        },
        {
          "url": "https://git.kernel.org/stable/c/8b14bd0b500aec1458b51cb621c8e5fab3304260"
        },
        {
          "url": "https://git.kernel.org/stable/c/2d24d91b9f44620824fc37b766f7cae00ca32748"
        },
        {
          "url": "https://git.kernel.org/stable/c/e01c1542379fb395e7da53706df598f38905dfbf"
        },
        {
          "url": "https://git.kernel.org/stable/c/8782b32ef867de7981bbe9e86ecb90e92e8780bd"
        },
        {
          "url": "https://git.kernel.org/stable/c/aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd"
        },
        {
          "url": "https://git.kernel.org/stable/c/dcc14cfd7debe11b825cb077e75d91d2575b4cb8"
        }
      ],
      "title": "net/9p: Fix a potential socket leak in p9_socket_open",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49020",
    "datePublished": "2024-10-21T20:06:27.976Z",
    "dateReserved": "2024-08-22T01:27:53.649Z",
    "dateUpdated": "2025-05-04T08:28:13.138Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-49020\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-22T13:12:42.990180Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-22T13:12:46.188Z\"}}], \"cna\": {\"title\": \"net/9p: Fix a potential socket leak in p9_socket_open\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"0396227f4daf4792a6a8aaa3b7771dc25c4cd443\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"ded893965b895b2dccd3d1436d8d3daffa23ea64\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"8b14bd0b500aec1458b51cb621c8e5fab3304260\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"2d24d91b9f44620824fc37b766f7cae00ca32748\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"e01c1542379fb395e7da53706df598f38905dfbf\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"8782b32ef867de7981bbe9e86ecb90e92e8780bd\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"6b18662e239a032f908b7f6e164bdf7e2e0a32c9\", \"lessThan\": \"dcc14cfd7debe11b825cb077e75d91d2575b4cb8\", \"versionType\": \"git\"}], \"programFiles\": [\"net/9p/trans_fd.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"2.6.33\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"2.6.33\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.9.335\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.9.*\"}, {\"status\": \"unaffected\", \"version\": \"4.14.301\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.14.*\"}, {\"status\": \"unaffected\", \"version\": \"4.19.268\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.226\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.158\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.82\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.0.12\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.0.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"net/9p/trans_fd.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/0396227f4daf4792a6a8aaa3b7771dc25c4cd443\"}, {\"url\": \"https://git.kernel.org/stable/c/ded893965b895b2dccd3d1436d8d3daffa23ea64\"}, {\"url\": \"https://git.kernel.org/stable/c/8b14bd0b500aec1458b51cb621c8e5fab3304260\"}, {\"url\": \"https://git.kernel.org/stable/c/2d24d91b9f44620824fc37b766f7cae00ca32748\"}, {\"url\": \"https://git.kernel.org/stable/c/e01c1542379fb395e7da53706df598f38905dfbf\"}, {\"url\": \"https://git.kernel.org/stable/c/8782b32ef867de7981bbe9e86ecb90e92e8780bd\"}, {\"url\": \"https://git.kernel.org/stable/c/aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd\"}, {\"url\": \"https://git.kernel.org/stable/c/dcc14cfd7debe11b825cb077e75d91d2575b4cb8\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"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.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T08:12:34.777Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-49020\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T08:12:34.777Z\", \"dateReserved\": \"2024-08-22T01:27:53.649Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-10-21T20:06:27.976Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…