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

CVE-2026-72462 (GCVE-0-2026-72462)

Vulnerability from cvelistv5 – Published: 2026-08-15 05:57 – Updated: 2026-08-17 05:44
VLAI
Title
apparmor: fix race in unix socket mediation when peer_path is used
Summary
In the Linux kernel, the following vulnerability has been resolved: apparmor: fix race in unix socket mediation when peer_path is used The holding a reference to the peer_sk is not enough to ensure access to the peer sk path. Accessing the path outside of the state lock allows for a race with unix_release_sock(). Fix this by taking the state lock and getting a reference to the path under lock. Ideally for connected sockets we would cache this information so we don't have to take the lock here. But for now just fix the race.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a , < d8ea44f6090c087fe255d9512fb808574b4d88e8 (git)
Affected: bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a , < d680472db98823d90fc91362910901e468269318 (git)
Affected: bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a , < b1aea2c1960771a276d7e68c7424168eccd0c3da (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": "d8ea44f6090c087fe255d9512fb808574b4d88e8",
              "status": "affected",
              "version": "bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a",
              "versionType": "git"
            },
            {
              "lessThan": "d680472db98823d90fc91362910901e468269318",
              "status": "affected",
              "version": "bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a",
              "versionType": "git"
            },
            {
              "lessThan": "b1aea2c1960771a276d7e68c7424168eccd0c3da",
              "status": "affected",
              "version": "bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a",
              "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 race in unix socket mediation when peer_path is used\n\nThe holding a reference to the peer_sk is not enough to ensure access\nto the peer sk path. Accessing the path outside of the state lock\nallows for a race with unix_release_sock(). Fix this by taking the\nstate lock and getting a reference to the path under lock.\n\nIdeally for connected sockets we would cache this information so we\ndon\u0027t have to take the lock here. But for now just fix the race."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Exploitation requires local Unix domain socket syscalls (connect/read/write/close) that reach the AppArmor file_permission LSM hook on a connected PF_UNIX socket; there is no network packet or remote protocol path to this code.\nAC:L - The attacker controls both ends of the race by concurrently I/O\u0027ing on an abstract/anonymous socket connected to a filesystem-bound peer while closing the peer socket, repeatedly timing read/write against peer teardown until the window is hit.\nPR:L - Any unprivileged local user can create and connect Unix sockets and trigger revalidation on confined workloads (snaps, containers, desktop services on AppArmor-enabled Ubuntu/Debian); no real-root or init-namespace capabilities are required.\nUI:N - Exploitation is fully attacker-driven through automated concurrent socket operations and does not require any victim user action such as opening files or mounting filesystems.\nS:C - Winning the race can bypass AppArmor Unix peer_path mediation (implicit allow when dentry is cleared) or corrupt kernel objects via dentry UAF, crossing the AppArmor confinement boundary that normally separates confined from unconfined authority.\nC:H - Use-after-free of the peer socket\u0027s dentry/inode during unix_fs_perm/aa_path_perm allows dereferencing freed kernel heap memory, which per kernel CVSS guidance for UAF enables arbitrary kernel memory disclosure primitives.\nI:H - The UAF on struct path/dentry/inode is heap memory corruption that can be leveraged for arbitrary kernel writes and control-flow hijack; the race can also silently bypass AppArmor peer filesystem permission enforcement.\nA:H - Dereferencing a released peer_path dentry in unix_fs_perm can cause kernel oops/panic; UAF during active socket I/O on production AppArmor-confined services (D-Bus, journald, snap apps) enables repeatable denial of service."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T05:44:28.507Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/d8ea44f6090c087fe255d9512fb808574b4d88e8"
        },
        {
          "url": "https://git.kernel.org/stable/c/d680472db98823d90fc91362910901e468269318"
        },
        {
          "url": "https://git.kernel.org/stable/c/b1aea2c1960771a276d7e68c7424168eccd0c3da"
        }
      ],
      "title": "apparmor: fix race in unix socket mediation when peer_path is used",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-72462",
    "datePublished": "2026-08-15T05:57:06.705Z",
    "dateReserved": "2026-08-09T03:40:39.933Z",
    "dateUpdated": "2026-08-17T05:44:28.507Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-72462",
      "date": "2026-09-05",
      "epss": "0.00127",
      "percentile": "0.02663"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-72462\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-08-15T06:22:20.210\",\"lastModified\":\"2026-08-17T06:19:13.913\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\napparmor: fix race in unix socket mediation when peer_path is used\\n\\nThe holding a reference to the peer_sk is not enough to ensure access\\nto the peer sk path. Accessing the path outside of the state lock\\nallows for a race with unix_release_sock(). Fix this by taking the\\nstate lock and getting a reference to the path under lock.\\n\\nIdeally for connected sockets we would cache this information so we\\ndon\u0027t have to take the lock here. But for now just fix the race.\"}],\"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\":\"bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a\",\"lessThan\":\"d8ea44f6090c087fe255d9512fb808574b4d88e8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a\",\"lessThan\":\"d680472db98823d90fc91362910901e468269318\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"bc6e5f6933b8e7b74858ac830d5b9b4ca10a099a\",\"lessThan\":\"b1aea2c1960771a276d7e68c7424168eccd0c3da\",\"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:C/C:H/I:H/A:H\",\"baseScore\":8.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":2.0,\"impactScore\":6.0}]},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/b1aea2c1960771a276d7e68c7424168eccd0c3da\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d680472db98823d90fc91362910901e468269318\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d8ea44f6090c087fe255d9512fb808574b4d88e8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-19T17:49:38+00:00",
      "cve": "CVE-2026-72462",
      "id": "CVE-2026-72462",
      "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 race in unix socket mediation when peer_path is used",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-72462.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…