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.
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-11-17T19:27:18.587\",\"vulnStatus\":\"Analyzed\",\"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.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: apparmor: se corrige una fuga de referencias en aa_pivotroot(). La funci\u00f3n aa_pivotroot() presenta un error de conteo de referencias en una ruta espec\u00edfica. Cuando aa_replace_current_label() retorna con \u00e9xito, la funci\u00f3n olvida decrementar el conteo de referencias de \\\"target\\\", que se incrementa previamente mediante build_pivotroot(), lo que provoca una fuga de referencias. Para solucionarlo, reduzca el conteo de referencias de \\\"target\\\" en esa ruta.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-Other\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.14.1\",\"versionEndExcluding\":\"4.14.291\",\"matchCriteriaId\":\"6CA67D14-5A27-41CC-9569-F5C7E514E52B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.15\",\"versionEndExcluding\":\"4.19.256\",\"matchCriteriaId\":\"6C47CDE3-B039-4AE5-B8E4-1DC820E473FF\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"4.20\",\"versionEndExcluding\":\"5.4.211\",\"matchCriteriaId\":\"B1C63D19-C08C-4308-A848-B2523C9275BD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.138\",\"matchCriteriaId\":\"445ACC04-A2BA-4176-B4C9-CA4AA59096D2\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.63\",\"matchCriteriaId\":\"D5744A03-DA40-4A78-9063-13179361DC6D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"5.19.4\",\"matchCriteriaId\":\"0E669300-DA42-4ACD-86D8-68BE5F29FB88\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:-:*:*:*:*:*:*\",\"matchCriteriaId\":\"7875AA30-1F6F-470C-A52D-ECBD6663CEC5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"B483DA9A-D449-48DE-9CA2-CEA23FD0B202\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"DEF29F06-4FF7-4FE6-B66D-9D758B182CF3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:rc4:*:*:*:*:*:*\",\"matchCriteriaId\":\"17941A19-6A3D-477F-BC6A-972D7F815FDD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:rc5:*:*:*:*:*:*\",\"matchCriteriaId\":\"4C9B8FA6-754F-42F5-98BC-410AF7DB9F4C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:rc6:*:*:*:*:*:*\",\"matchCriteriaId\":\"EC8F8565-B401-4F3C-B423-51F371DCB908\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:rc7:*:*:*:*:*:*\",\"matchCriteriaId\":\"C834B5F2-810F-4291-8E1F-1B32635E08F3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:4.14:rc8:*:*:*:*:*:*\",\"matchCriteriaId\":\"BB4A96BC-72CC-4EF1-916C-9ED7177C196E\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/11c3627ec6b56c1525013f336f41b79a983b4d46\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/2ceeb3296e9dde1d5772348046affcefdea605e2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/3ca40ad7afae144169a43988ef1a3f16182faf0a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/64103ea357734b82384c925cba4758fdb909be0c\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d53194707d2a1851be027cd74266b96ceff799d3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ef6fb6f0d0d8440595b45a7e53c6162c737177f4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f4d5c7796571624e3f380b447ada52834270a287\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}"
  }
}


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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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…