Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-53096

published high CVSS 3.1 · 7.8

mm: resolve faulty mmap_region() error path behaviour

Published
25 Nov 2024, 21:17:48 UTC
Updated
05 Aug 2026, 11:43:40 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxa3c08c021778dad30f69895e378843e9f423d734 to < 43323a4e5b3f8ccc08e2f835abfdc7ee9da8f6ed · 43bed0a13a5cdbb314d14f28c2bf2c60eb4e6e1e to < 44f48eb9a6051826227bbd375446064fb2a43c6c · deb0f6562884b5b4beb883d73e66a7d3a1b96d99 to < 52c81fd0f5a8bf8032687b94ccf00d13b44cc5c8 · deb0f6562884b5b4beb883d73e66a7d3a1b96d99 to < bdc136e2b05fabcd780fe5f165d154eb779dfcb0 · deb0f6562884b5b4beb883d73e66a7d3a1b96d99 to < 5de195060b2e251a835f622759550e6202167641 · 6757330b1be5b0606125b65ed50caac69bccf9a5 · 66f2ed0172af04a89677ae1898600e1264e25800 · 5.10.150 to < 5.10.231 · 5.15.75 to < 5.15.174 · 5.19.17 to < 5.20 · 6.0.3 to < 6.1 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.1 (affected) · 0 to < 6.1 (unaffected · semver) · 5.10.231 through 5.10.* (unaffected · semver) · 5.15.174 through 5.15.* (unaffected · semver) · 6.1.119 through 6.1.* (unaffected · semver) · 6.6.63 through 6.6.* (unaffected · semver) · 6.12 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-079 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2025-061 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-802 Fixed Not stated Amazon Linux assessment
Debian bullseye linux Advisory build 5.10.234-1 DLA-4075-1
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Show 98 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 8 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-305.176.4.el8uek ELSA-2025-20095
Oracle Linux 9 bpftoolaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.5.0-802.el9_6 ELSA-2025-6966
Oracle Linux 9 bpftoolx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.5.0-802.el9_6 ELSA-2025-6966
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-coreaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-develaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-modulesx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-modules-coreaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-modules-corex86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-modules-extrax86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-toolsaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-toolsx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-tools-libsaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-tools-libsx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-tools-libs-develaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-tools-libs-develx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-containeraarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-containerx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-docaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-305.176.4.el9uek ELSA-2025-20095
Oracle Linux 9 kernel-uki-virtx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 kernel-uki-virt-addonsx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 libperfaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 libperfx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 perfaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 perfx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 python3-perfaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 python3-perfx86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 rtlaaarch64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966
Oracle Linux 9 rtlax86_64 Advisory build 0:5.14.0-570.12.1.0.1.el9_6 ELSA-2025-6966

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: mm: resolve faulty mmap_region() error path behaviour The mmap_region() function is somewhat terrifying, with spaghetti-like control flow and numerous means by which issues can arise and incomplete state, memory leaks and other unpleasantness can occur. A large amount of the complexity arises from trying to handle errors late in the process of mapping a VMA, which forms the basis of recently observed issues with resource leaks and observable inconsistent state. Taking advantage of previous patches in this series we move a number of checks earlier in the code, simplifying things by moving the core of the logic into a static internal function __mmap_region(). Doing this allows us to perform a number of checks up front before we do any real work, and allows us to unwind the writable unmap check unconditionally as required and to perform a CONFIG_DEBUG_VM_MAPLE_TREE validation unconditionally also. We move a number of things here: 1. We preallocate memory for the iterator before we call the file-backed memory hook, allowing us to exit early and avoid having to perform complicated and error-prone close/free logic. We carefully free iterator state on both success and error paths. 2. The enclosing mmap_region() function handles the mapping_map_writable() logic early. Previously the logic had the mapping_map_writable() at the point of mapping a newly allocated file-backed VMA, and a matching mapping_unmap_writable() on success and error paths. We now do this unconditionally if this is a file-backed, shared writable mapping. If a driver changes the flags to eliminate VM_MAYWRITE, however doing so does not invalidate the seal check we just performed, and we in any case always decrement the counter in the wrapper. We perform a debug assert to ensure a driver does not attempt to do the opposite. 3. We also move arch_validate_flags() up into the mmap_region() function. This is only relevant on arm64 and sparc64, and the check is only meaningful for SPARC with ADI enabled. We explicitly add a warning for this arch if a driver invalidates this check, though the code ought eventually to be fixed to eliminate the need for this. With all of these measures in place, we no longer need to explicitly close the VMA on error paths, as we place all checks which might fail prior to a call to any driver mmap hook. This eliminates an entire class of errors, makes the code easier to reason about and more robust.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

39

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached through the `mmap(2)` syscall on a locally-opened file descriptor (hugetlbfs/memfd, DRM, binder, perf, BPF map, etc.), requiring local access to the system. No network or physical component is involved. AC:L - The error path is triggered 100% deterministically: the attacker enables MDWE via the unprivileged `prctl(PR_SET_MDWE)` and then issues a single `mmap(PROT_READ|PROT_WRITE|PROT_EXEC)` on a driver-backed fd (or `PROT_MTE` on arm64), guaranteeing entry to `close_and_free_vma` after the `->mmap()` hook succeeded. There is no race and no attacker-uncontrollable precondition. PR:L - Only an ordinary unprivileged local user account is needed — `PR_SET_MDWE` has no capability check, and mmap-able file descriptors such as `memfd_create(MFD_HUGETLB)`, `/dev/binder`, DRM render nodes or perf events are available to normal users (including inside containers and Android apps). No root or capability is required. UI:N - The attacker's own process performs the prctl and the mmap; no victim action, no filesystem mount, and no interaction with any other user is needed. S:U - The corruption is confined to the kernel's own memory-management and driver state within the same security authority; there is no VM, IOMMU, or sandbox boundary crossed by the defect itself. C:H - `vma_close()` releases driver-owned objects and pages (e.g. `kref_put()` on the hugetlb `resv_map`, `hugetlb_vma_lock_free()`) while the PTEs installed by the driver's `->mmap()` are still live in the process page tables, so a sibling thread can read the freed memory directly through hardware without any VMA lookup, yielding an arbitrary kernel-memory read primitive. I:H - The same stale writable PTEs give write access to memory already handed back to the allocator, and the refcount underflow on driver objects enables heap-spray/type-confusion style corruption exploitable for control-flow hijack — a use-after-free write primitive. A:H - Even without full exploitation the path reliably oopses: `unmap_region()` reaches `__unmap_hugepage_range_final()` after `->close()` freed the VMA lock and after `vma->vm_file` was set to NULL, producing a use-after-free/NULL dereference and kernel panic that any local user can trigger at will.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux a3c08c021778dad30f69895e378843e9f423d734 to < 43323a4e5b3f8ccc08e2f835abfdc7ee9da8f6ed (affected · git)43bed0a13a5cdbb314d14f28c2bf2c60eb4e6e1e to < 44f48eb9a6051826227bbd375446064fb2a43c6c (affected · git)deb0f6562884b5b4beb883d73e66a7d3a1b96d99 to < 52c81fd0f5a8bf8032687b94ccf00d13b44cc5c8 (affected · git)deb0f6562884b5b4beb883d73e66a7d3a1b96d99 to < bdc136e2b05fabcd780fe5f165d154eb779dfcb0 (affected · git)deb0f6562884b5b4beb883d73e66a7d3a1b96d99 to < 5de195060b2e251a835f622759550e6202167641 (affected · git)6757330b1be5b0606125b65ed50caac69bccf9a5 (affected · git)66f2ed0172af04a89677ae1898600e1264e25800 (affected · git)5.10.150 to < 5.10.231 (affected · semver)5.15.75 to < 5.15.174 (affected · semver)5.19.17 to < 5.20 (affected · semver)6.0.3 to < 6.1 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.1 (affected)0 to < 6.1 (unaffected · semver)5.10.231 through 5.10.* (unaffected · semver)5.15.174 through 5.15.* (unaffected · semver)6.1.119 through 6.1.* (unaffected · semver)6.6.63 through 6.6.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

8

Provider assertions

3

Linux · cna

mm: resolve faulty mmap_region() error path behaviour

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
3b1171f4a84138644664b54d6781f5921296912bdc6cc45420c77bde60d5a1f0
Ingested
23 Sep 2026, 08:30:55 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected