CVE-2022-50077 (GCVE-0-2022-50077)
Vulnerability from cvelistv5
Published
2025-06-18 11:02
Modified
2025-06-18 11:02
Severity ?
Summary
In the Linux kernel, the following vulnerability has been resolved: apparmor: fix reference count leak in aa_pivotroot() The aa_pivotroot() function has a reference counting bug in a specific path. When aa_replace_current_label() returns on success, the function forgets to decrement the reference count of “target”, which is increased earlier by build_pivotroot(), causing a reference leak. Fix it by decreasing the refcount of “target” in that path.
Impacted products
Vendor Product Version
Linux Linux Version: 2ea3ffb7782a84da33a8382f13ebd016da50079b
Version: 2ea3ffb7782a84da33a8382f13ebd016da50079b
Version: 2ea3ffb7782a84da33a8382f13ebd016da50079b
Version: 2ea3ffb7782a84da33a8382f13ebd016da50079b
Version: 2ea3ffb7782a84da33a8382f13ebd016da50079b
Version: 2ea3ffb7782a84da33a8382f13ebd016da50079b
Version: 2ea3ffb7782a84da33a8382f13ebd016da50079b
Create a notification for this product.
   Linux Linux Version: 4.14
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/mount.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "d53194707d2a1851be027cd74266b96ceff799d3",
              "status": "affected",
              "version": "2ea3ffb7782a84da33a8382f13ebd016da50079b",
              "versionType": "git"
            },
            {
              "lessThan": "f4d5c7796571624e3f380b447ada52834270a287",
              "status": "affected",
              "version": "2ea3ffb7782a84da33a8382f13ebd016da50079b",
              "versionType": "git"
            },
            {
              "lessThan": "ef6fb6f0d0d8440595b45a7e53c6162c737177f4",
              "status": "affected",
              "version": "2ea3ffb7782a84da33a8382f13ebd016da50079b",
              "versionType": "git"
            },
            {
              "lessThan": "2ceeb3296e9dde1d5772348046affcefdea605e2",
              "status": "affected",
              "version": "2ea3ffb7782a84da33a8382f13ebd016da50079b",
              "versionType": "git"
            },
            {
              "lessThan": "64103ea357734b82384c925cba4758fdb909be0c",
              "status": "affected",
              "version": "2ea3ffb7782a84da33a8382f13ebd016da50079b",
              "versionType": "git"
            },
            {
              "lessThan": "3ca40ad7afae144169a43988ef1a3f16182faf0a",
              "status": "affected",
              "version": "2ea3ffb7782a84da33a8382f13ebd016da50079b",
              "versionType": "git"
            },
            {
              "lessThan": "11c3627ec6b56c1525013f336f41b79a983b4d46",
              "status": "affected",
              "version": "2ea3ffb7782a84da33a8382f13ebd016da50079b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/mount.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.14"
            },
            {
              "lessThan": "4.14",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.291",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.256",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.211",
              "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": "4.14.291",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.256",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.211",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.138",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.63",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.4",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "4.14",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix reference count leak in aa_pivotroot()\n\nThe aa_pivotroot() function has a reference counting bug in a specific\npath. When aa_replace_current_label() returns on success, the function\nforgets to decrement the reference count of \u201ctarget\u201d, which is\nincreased earlier by build_pivotroot(), causing a reference leak.\n\nFix it by decreasing the refcount of \u201ctarget\u201d in that path."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-06-18T11:02:20.318Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3"
        },
        {
          "url": "https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287"
        },
        {
          "url": "https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4"
        },
        {
          "url": "https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2"
        },
        {
          "url": "https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c"
        },
        {
          "url": "https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a"
        },
        {
          "url": "https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46"
        }
      ],
      "title": "apparmor: fix reference count leak in aa_pivotroot()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50077",
    "datePublished": "2025-06-18T11:02:20.318Z",
    "dateReserved": "2025-06-18T10:57:27.408Z",
    "dateUpdated": "2025-06-18T11:02:20.318Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-50077\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:36.627\",\"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\\napparmor: fix reference count leak in aa_pivotroot()\\n\\nThe aa_pivotroot() function has a reference counting bug in a specific\\npath. When aa_replace_current_label() returns on success, the function\\nforgets to decrement the reference count of \u201ctarget\u201d, which is\\nincreased earlier by build_pivotroot(), causing a reference leak.\\n\\nFix it by decreasing the refcount of \u201ctarget\u201d in that path.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287\",\"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…