GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2026-72461 (GCVE-0-2026-72461)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:57 – Updated: 2026-08-17 05:44
VLAI
Title
apparmor: fix refcount leak when updating the sk_ctx
Summary
In the Linux kernel, the following vulnerability has been resolved: apparmor: fix refcount leak when updating the sk_ctx Currently update_sk_ctx() transfers the plabel reference, unfortunately it is also unconditionally put in the caller. Ideally we would make the caller conditionally put the reference based on whether it was transferred but for now just fix the bug by getting a reference.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 88fec3526e84123997ecebd6bb6778eb4ce779b7 , < 045dbe89ac31709abd73390d0805d52fece7ef39 (git)
Affected: 88fec3526e84123997ecebd6bb6778eb4ce779b7 , < b8642f1478982a97ca2eb59f70f631a9de42ae11 (git)
Affected: 88fec3526e84123997ecebd6bb6778eb4ce779b7 , < 6d25e7b47616cb2db43351210929c8f19dc305a3 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.17
Unaffected: 0 , < 6.17 (semver)
Unaffected: 6.18.40 , ≤ 6.18.* (semver)
Unaffected: 7.1.5 , ≤ 7.1.* (semver)
Unaffected: 7.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/af_unix.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "045dbe89ac31709abd73390d0805d52fece7ef39",
              "status": "affected",
              "version": "88fec3526e84123997ecebd6bb6778eb4ce779b7",
              "versionType": "git"
            },
            {
              "lessThan": "b8642f1478982a97ca2eb59f70f631a9de42ae11",
              "status": "affected",
              "version": "88fec3526e84123997ecebd6bb6778eb4ce779b7",
              "versionType": "git"
            },
            {
              "lessThan": "6d25e7b47616cb2db43351210929c8f19dc305a3",
              "status": "affected",
              "version": "88fec3526e84123997ecebd6bb6778eb4ce779b7",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "security/apparmor/af_unix.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.17"
            },
            {
              "lessThan": "6.17",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.40",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.5",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "6.17",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix refcount leak when updating the sk_ctx\n\nCurrently update_sk_ctx() transfers the plabel reference, unfortunately\nit is also unconditionally put in the caller. Ideally we would make\nthe caller conditionally put the reference based on whether it was\ntransferred but for now just fix the bug by getting a reference."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached only through local Unix-domain socket operations (sendmsg/recvmsg SCM_RIGHTS fd passing, exec file inheritance, or socket file permission revalidation) that invoke AppArmor LSM hooks; it is not reachable via remote network protocols.\nAC:L - An attacker can reliably trigger update_sk_ctx() by creating connected abstract/anonymous AF_UNIX sockets and repeatedly passing the fd across AppArmor confinement boundaries, controlling both endpoints and syscall timing without external race luck.\nPR:L - Only a local unprivileged process subject to AppArmor confinement is required (typical Ubuntu snap/container workloads); no init-namespace root, CAP_MAC_ADMIN, or policy-loading privileges are needed to exercise unix socket mediation.\nUI:N - Exploitation is driven entirely by attacker-initiated syscalls and automated fd-receive paths; no additional voluntary action from another human user is required beyond normal daemon recvmsg behavior.\nS:U - The flaw corrupts AppArmor label refcounting in the host kernel heap; impact stays within the same kernel security authority and does not by itself cross VM, IOMMU, or container hypervisor boundaries.\nC:H - update_sk_ctx() stored plabel in peer_lastupdate without aa_get_label() while the caller aa_put_label(plabel), allowing aa_label objects to be freed while still referenced, creating a heap use-after-free readable via later pointer comparisons and teardown.\nI:H - Use-after-free/double-free of aa_label structures on socket teardown enables attacker-influenced heap reuse of label objects, which can be leveraged for arbitrary kernel memory corruption and local privilege escalation.\nA:H - Incorrect refcounting causes premature aa_label free and an extra aa_put_label() at sk teardown, provoking refcount underflow, kernel oops, or panic on AppArmor-enabled systems under repeated unix fd passing."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:44:27.397Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/045dbe89ac31709abd73390d0805d52fece7ef39"
        },
        {
          "url": "https://git.kernel.org/stable/c/b8642f1478982a97ca2eb59f70f631a9de42ae11"
        },
        {
          "url": "https://git.kernel.org/stable/c/6d25e7b47616cb2db43351210929c8f19dc305a3"
        }
      ],
      "title": "apparmor: fix refcount leak when updating the sk_ctx",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72461",
    "datePublished": "2026-08-15T05:57:06.042Z",
    "dateReserved": "2026-08-09T03:40:39.933Z",
    "dateUpdated": "2026-08-17T05:44:27.397Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72461",
      "date": "2026-09-04",
      "epss": "0.00127",
      "percentile": "0.02649"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72461\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:22:20.113\",\"lastModified\":\"2026-08-17T06:19:13.803\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\napparmor: fix refcount leak when updating the sk_ctx\\n\\nCurrently update_sk_ctx() transfers the plabel reference, unfortunately\\nit is also unconditionally put in the caller. Ideally we would make\\nthe caller conditionally put the reference based on whether it was\\ntransferred but for now just fix the bug by getting a reference.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"security/apparmor/af_unix.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"88fec3526e84123997ecebd6bb6778eb4ce779b7\",\"lessThan\":\"045dbe89ac31709abd73390d0805d52fece7ef39\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88fec3526e84123997ecebd6bb6778eb4ce779b7\",\"lessThan\":\"b8642f1478982a97ca2eb59f70f631a9de42ae11\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"88fec3526e84123997ecebd6bb6778eb4ce779b7\",\"lessThan\":\"6d25e7b47616cb2db43351210929c8f19dc305a3\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"security/apparmor/af_unix.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.17\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.17\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.40\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.5\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/045dbe89ac31709abd73390d0805d52fece7ef39\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/6d25e7b47616cb2db43351210929c8f19dc305a3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b8642f1478982a97ca2eb59f70f631a9de42ae11\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-19T07:27:33+00:00",
      "cve": "CVE-2026-72461",
      "id": "CVE-2026-72461",
      "initial_release_date": "2026-08-15T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: apparmor: fix refcount leak when updating the sk_ctx",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72461.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Loading…