CVE-2026-53373 (GCVE-0-2026-53373)

Vulnerability from cvelistv5 – Published: 2026-07-19 10:01 – Updated: 2026-08-05 12:35
VLAI
Title
mm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap()
Summary
In the Linux kernel, the following vulnerability has been resolved: mm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap() The mmap_prepare hook functionality includes the ability to invoke mmap_prepare() from the mmap() hook of existing 'stacked' drivers, that is ones which are capable of calling the mmap hooks of other drivers/file systems (e.g. overlayfs, shm). As part of the mmap_prepare action functionality, we deal with errors by unmapping the VMA should one arise. This works in the usual mmap_prepare case, as we invoke this action at the last moment, when the VMA is established in the maple tree. However, the mmap() hook passes a not-fully-established VMA pointer to the caller (which is the motivation behind the mmap_prepare() work), which is detached. So attempting to unmap a VMA in this state will be problematic, with the most obvious symptom being a warning in vma_mark_detached(), because the VMA is already detached. It's also unncessary - the mmap() handler will clean up the VMA on error. So to fix this issue, this patch propagates whether or not an mmap action is being completed via the compatibility layer or directly. If the former, then we do not attempt VMA cleanup, if the latter, then we do. This patch also updates the userland VMA tests to reflect the change.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d , < 5394bcb746503f2ae4b206212416dccea78e3773 (git)
Affected: ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d , < 619eab23e1ce7c97e54bfc5a417306d94b3f6f13 (git)
Create a notification for this product.
Linux Linux Affected: 6.19
Unaffected: 0 , < 6.19 (semver)
Unaffected: 7.0.9 , ≤ 7.0.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "include/linux/mm.h",
            "mm/util.c",
            "mm/vma.c",
            "tools/testing/vma/include/dup.h",
            "tools/testing/vma/include/stubs.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "5394bcb746503f2ae4b206212416dccea78e3773",
              "status": "affected",
              "version": "ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d",
              "versionType": "git"
            },
            {
              "lessThan": "619eab23e1ce7c97e54bfc5a417306d94b3f6f13",
              "status": "affected",
              "version": "ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "include/linux/mm.h",
            "mm/util.c",
            "mm/vma.c",
            "tools/testing/vma/include/dup.h",
            "tools/testing/vma/include/stubs.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.19"
            },
            {
              "lessThan": "6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.0.*",
              "status": "unaffected",
              "version": "7.0.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0.9",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "versionStartIncluding": "6.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap()\n\nThe mmap_prepare hook functionality includes the ability to invoke\nmmap_prepare() from the mmap() hook of existing \u0027stacked\u0027 drivers, that is\nones which are capable of calling the mmap hooks of other drivers/file\nsystems (e.g.  overlayfs, shm).\n\nAs part of the mmap_prepare action functionality, we deal with errors by\nunmapping the VMA should one arise.  This works in the usual mmap_prepare\ncase, as we invoke this action at the last moment, when the VMA is\nestablished in the maple tree.\n\nHowever, the mmap() hook passes a not-fully-established VMA pointer to the\ncaller (which is the motivation behind the mmap_prepare() work), which is\ndetached.\n\nSo attempting to unmap a VMA in this state will be problematic, with the\nmost obvious symptom being a warning in vma_mark_detached(), because the\nVMA is already detached.\n\nIt\u0027s also unncessary - the mmap() handler will clean up the VMA on error.\n\nSo to fix this issue, this patch propagates whether or not an mmap action\nis being completed via the compatibility layer or directly.\n\nIf the former, then we do not attempt VMA cleanup, if the latter, then we\ndo.\n\nThis patch also updates the userland VMA tests to reflect the change."
        }
      ],
      "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 vulnerability is reached only through the mmap/mmap2 syscall path (ksys_mmap_pgoff \u2192 do_mmap \u2192 mmap_region \u2192 __mmap_region \u2192 stacked .mmap() \u2192 compat_vma_mmap \u2192 mmap_action_complete), which requires local process access to invoke the kernel memory-management interface.\nAC:L - An attacker fully controls mmap parameters (address, length, fd, flags) and can create overlapping mappings to place detached VMAs in the target range before triggering a stacked mmap_prepare action failure, making exploitation conditions attacker-influenced rather than dependent on rare external timing or layout.\nPR:L - Triggering requires only the ability to call mmap() on an open file descriptor; syzbot reported this from unprivileged fuzzing, and stacked paths (overlayfs, shm, fuse passthrough) are reachable by ordinary local users who can open/mmap files in their mount namespace without real init-namespace root.\nUI:N - Exploitation requires no victim interaction beyond the attacker\u0027s own mmap syscall; no third-party user action such as opening a file or mounting a filesystem on behalf of the attacker is needed.\nS:U - The flawed cleanup corrupts the calling process\u0027s own mm_struct/VMA state within the kernel; it does not by itself cross a security boundary such as guest-to-host VM escape or an IOMMU/DMA sandbox bypass.\nC:H - Erroneous do_munmap() on VMAs that are detached but still linked in the maple tree during an in-progress mmap corrupts kernel memory-management metadata, which is a memory-corruption primitive that can be leveraged for arbitrary kernel memory disclosure, not merely a benign warning.\nI:H - The double-unmap/detach of VMAs in a transitional mmap state can leave the address-space tree inconsistent and is a memory-corruption bug in kernel structures that could be developed into arbitrary write or privilege-escalation primitives, not limited to integrity-neutral denial of service.\nA:H - The known symptom is a WARN in vma_mark_detached() on already-detached VMAs, and operating on refcount-zero detached VMAs during a nested unmap can provoke kernel oops/panic or leave the mm in a crash-prone inconsistent state, satisfying high availability impact."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T12:35:17.519Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/5394bcb746503f2ae4b206212416dccea78e3773"
        },
        {
          "url": "https://git.kernel.org/stable/c/619eab23e1ce7c97e54bfc5a417306d94b3f6f13"
        }
      ],
      "title": "mm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-53373",
    "datePublished": "2026-07-19T10:01:57.632Z",
    "dateReserved": "2026-06-09T07:44:35.401Z",
    "dateUpdated": "2026-08-05T12:35:17.519Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-53373",
      "date": "2026-08-11",
      "epss": "0.00112",
      "percentile": "0.01586"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-53373\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-19T11:16:38.390\",\"lastModified\":\"2026-07-29T16:55:22.630\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nmm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap()\\n\\nThe mmap_prepare hook functionality includes the ability to invoke\\nmmap_prepare() from the mmap() hook of existing \u0027stacked\u0027 drivers, that is\\nones which are capable of calling the mmap hooks of other drivers/file\\nsystems (e.g.  overlayfs, shm).\\n\\nAs part of the mmap_prepare action functionality, we deal with errors by\\nunmapping the VMA should one arise.  This works in the usual mmap_prepare\\ncase, as we invoke this action at the last moment, when the VMA is\\nestablished in the maple tree.\\n\\nHowever, the mmap() hook passes a not-fully-established VMA pointer to the\\ncaller (which is the motivation behind the mmap_prepare() work), which is\\ndetached.\\n\\nSo attempting to unmap a VMA in this state will be problematic, with the\\nmost obvious symptom being a warning in vma_mark_detached(), because the\\nVMA is already detached.\\n\\nIt\u0027s also unncessary - the mmap() handler will clean up the VMA on error.\\n\\nSo to fix this issue, this patch propagates whether or not an mmap action\\nis being completed via the compatibility layer or directly.\\n\\nIf the former, then we do not attempt VMA cleanup, if the latter, then we\\ndo.\\n\\nThis patch also updates the userland VMA tests to reflect the change.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"include/linux/mm.h\",\"mm/util.c\",\"mm/vma.c\",\"tools/testing/vma/include/dup.h\",\"tools/testing/vma/include/stubs.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d\",\"lessThan\":\"5394bcb746503f2ae4b206212416dccea78e3773\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"ac0a3fc9c07df79dc8a4ce9d274df00afc7bf12d\",\"lessThan\":\"619eab23e1ce7c97e54bfc5a417306d94b3f6f13\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"include/linux/mm.h\",\"mm/util.c\",\"mm/vma.c\",\"tools/testing/vma/include/dup.h\",\"tools/testing/vma/include/stubs.h\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.19\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.19\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0.9\",\"lessThanOrEqual\":\"7.0.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1\",\"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}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-noinfo\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.19\",\"versionEndExcluding\":\"7.0.9\",\"matchCriteriaId\":\"33ACA10B-B260-46EA-BD50-70EBE5097672\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"B1EF7059-E670-45F4-B422-54C40FA86390\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/5394bcb746503f2ae4b206212416dccea78e3773\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/619eab23e1ce7c97e54bfc5a417306d94b3f6f13\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-07-20T17:10:50+00:00",
      "cve": "CVE-2026-53373",
      "id": "CVE-2026-53373",
      "initial_release_date": "2026-07-19T00:00:00+00:00",
      "product_status:known_affected": "14",
      "product_status:known_not_affected": "260",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: mm/vma: do not try to unmap a VMA if mmap_prepare() invoked from mmap()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-53373.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-06T01:13:09Z",
      "cve": "CVE-2026-53373",
      "id": "CVE-2026-53373",
      "initial_release_date": "2026-07-21T13:07:13Z",
      "product_status:known_not_affected": "286",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-53373",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-53373.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…