CVE-2022-50042 (GCVE-0-2022-50042)
Vulnerability from cvelistv5
Published
2025-06-18 11:01
Modified
2025-06-18 11:01
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: net: genl: fix error path memory leak in policy dumping If construction of the array of policies fails when recording non-first policy we need to unwind. netlink_policy_dump_add_policy() itself also needs fixing as it currently gives up on error without recording the allocated pointer in the pstate pointer.
Impacted products
Vendor Product Version
Linux Linux Version: 50a896cf2d6f34e884a00139d6e6012c9833ace3
Version: 50a896cf2d6f34e884a00139d6e6012c9833ace3
Version: 50a896cf2d6f34e884a00139d6e6012c9833ace3
Version: 50a896cf2d6f34e884a00139d6e6012c9833ace3
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/netlink/genetlink.c",
            "net/netlink/policy.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "83411c9f05d5a8b637293b3389eca3d378197c04",
              "status": "affected",
              "version": "50a896cf2d6f34e884a00139d6e6012c9833ace3",
              "versionType": "git"
            },
            {
              "lessThan": "b0672895d8be5d19d4b05ac83f807026fc791037",
              "status": "affected",
              "version": "50a896cf2d6f34e884a00139d6e6012c9833ace3",
              "versionType": "git"
            },
            {
              "lessThan": "26b6acd365823e99e46be3b27500f5dc235dda5e",
              "status": "affected",
              "version": "50a896cf2d6f34e884a00139d6e6012c9833ace3",
              "versionType": "git"
            },
            {
              "lessThan": "249801360db3dec4f73768c502192020bfddeacc",
              "status": "affected",
              "version": "50a896cf2d6f34e884a00139d6e6012c9833ace3",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/netlink/genetlink.c",
            "net/netlink/policy.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.10"
            },
            {
              "lessThan": "5.10",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.138",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.63",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.138",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.63",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.4",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "5.10",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: genl: fix error path memory leak in policy dumping\n\nIf construction of the array of policies fails when recording\nnon-first policy we need to unwind.\n\nnetlink_policy_dump_add_policy() itself also needs fixing as\nit currently gives up on error without recording the allocated\npointer in the pstate pointer."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-18T11:01:43.264Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/83411c9f05d5a8b637293b3389eca3d378197c04"
        },
        {
          "url": "https://git.kernel.org/stable/c/b0672895d8be5d19d4b05ac83f807026fc791037"
        },
        {
          "url": "https://git.kernel.org/stable/c/26b6acd365823e99e46be3b27500f5dc235dda5e"
        },
        {
          "url": "https://git.kernel.org/stable/c/249801360db3dec4f73768c502192020bfddeacc"
        }
      ],
      "title": "net: genl: fix error path memory leak in policy dumping",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50042",
    "datePublished": "2025-06-18T11:01:43.264Z",
    "dateReserved": "2025-06-18T10:57:27.398Z",
    "dateUpdated": "2025-06-18T11:01:43.264Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50042\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:32.673\",\"lastModified\":\"2025-06-18T13:47:40.833\",\"vulnStatus\":\"Awaiting Analysis\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: genl: fix error path memory leak in policy dumping\\n\\nIf construction of the array of policies fails when recording\\nnon-first policy we need to unwind.\\n\\nnetlink_policy_dump_add_policy() itself also needs fixing as\\nit currently gives up on error without recording the allocated\\npointer in the pstate pointer.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: genl: corrige error de p\u00e9rdida de memoria de ruta en el volcado de pol\u00edticas Si la construcci\u00f3n de la matriz de pol\u00edticas falla cuando se registra una pol\u00edtica que no es la primera, debemos desenrollar. netlink_policy_dump_add_policy() en s\u00ed tambi\u00e9n necesita reparaci\u00f3n, ya que actualmente se da por vencido en caso de error sin registrar el puntero asignado en el puntero pstate. \"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/249801360db3dec4f73768c502192020bfddeacc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/26b6acd365823e99e46be3b27500f5dc235dda5e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/83411c9f05d5a8b637293b3389eca3d378197c04\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b0672895d8be5d19d4b05ac83f807026fc791037\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…