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-2025-40272

published high CVSS 3.1 · 7.8

mm/secretmem: fix use-after-free race in fault handler

Published
06 Dec 2025, 21:50:54 UTC
Updated
15 Oct 2026, 22:02:42 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < bb1c19636aedae39360e6fdbcaef4f2bcff25785 · 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 1e4643d6628edf9c0047b1f8f5bc574665025acb · 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 42d486d35a4143cc37fc72ee66edc99d942dd367 · 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 52f2d5cf33de9a8f5e72bbb0ed38282ae0bc4649 · 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 4444767e625da46009fc94a453fd1967b80ba047 · 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 6f86d0534fddfbd08687fa0f01479d4226bc3c3d · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.197 through 5.15.* (unaffected · semver) · 6.1.159 through 6.1.* (unaffected · semver) · 6.6.117 through 6.6.* (unaffected · semver) · 6.12.59 through 6.12.* (unaffected · semver) · 6.17.9 through 6.17.* (unaffected · semver) · 6.18 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.15-2025-096 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1350 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2026-1430 Fixed Not stated Amazon Linux assessment
Debian bullseye linux-6.1 Advisory build 6.1.159-1~deb11u1 DLA-4436-1
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Show 98 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modulesaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-deprecatedaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-desktopaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-extraaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-usbaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-wirelessaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 8 bpftoolaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 bpftoolx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uekaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uekx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-containeraarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-containerx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-coreaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-corex86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debugaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debugx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-coreaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-corex86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-develaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-develx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-modulesaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-modulesx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-modules-extraaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-debug-modules-extrax86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-develaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-develx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-docaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-docx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-modulesaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-modulesx86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-modules-extraaarch64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 8 kernel-uek-modules-extrax86_64 Advisory build 0:5.15.0-317.197.5.1.el8uek ELSA-2026-50113
Oracle Linux 9 bpftoolaarch64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 bpftoolx86_64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:6.12.0-107.59.3.2.el9uek ELSA-2026-50006
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:6.12.0-107.59.3.2.el9uek ELSA-2026-50006
Oracle Linux 9 kernel-uek-containeraarch64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uek-containerx86_64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uek-container-debugaarch64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uek-container-debugx86_64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el9uek ELSA-2026-50006
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:5.15.0-317.197.5.1.el9uek ELSA-2026-50113

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/secretmem: fix use-after-free race in fault handler When a page fault occurs in a secret memory file created with `memfd_secret(2)`, the kernel will allocate a new folio for it, mark the underlying page as not-present in the direct map, and add it to the file mapping. If two tasks cause a fault in the same page concurrently, both could end up allocating a folio and removing the page from the direct map, but only one would succeed in adding the folio to the file mapping. The task that failed undoes the effects of its attempt by (a) freeing the folio again and (b) putting the page back into the direct map. However, by doing these two operations in this order, the page becomes available to the allocator again before it is placed back in the direct mapping. If another task attempts to allocate the page between (a) and (b), and the kernel tries to access it via the direct map, it would result in a supervisor not-present page fault. Fix the ordering to restore the direct map before the folio is freed.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

45

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 purely through local syscalls — `memfd_secret(2)`, `ftruncate(2)`, `mmap(2)` and a page fault on the resulting mapping. There is no network or remote-peer component to secretmem. AC:L - The attacker creates both sides of the race: two threads faulting the same file offset under the shared invalidate lock deterministically force the `filemap_add_folio()` `-EEXIST` loser into the buggy path, while additional attacker threads spray page allocations to claim the freed page in the window, and the whole sequence can be retried indefinitely. PR:L - `memfd_secret(2)` performs no capability check whatsoever and `CONFIG_SECRETMEM` is `default y` with `secretmem_enable` on by default since v6.10, so any unprivileged local user can reach the fault handler needing only default `RLIMIT_MEMLOCK` headroom for a single page. UI:N - The attacker triggers the entire sequence within its own process and threads; no victim action, mount, or file open by another user is required. S:U - The corrupted direct-map state and the resulting fault are confined to the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - This is a use-after-free/page-reuse condition, and concretely the post-free `set_direct_map_default_noflush()` can re-insert another task's secretmem page into the kernel direct map, destroying exactly the direct-map-absence guarantee memfd_secret exists to provide and exposing those secrets to kernel-side reads, speculative-execution gadgets, and hibernation images. I:H - The stale `set_direct_map_default_noflush()` applies `_PAGE_PRESENT|_PAGE_RW` (x86) / sets `PTE_WRITE` and clears `PTE_RDONLY` (arm64) to a page already reallocated to a different owner, silently downgrading direct-map write protection on foreign memory, and a UAF of an allocator page is a general heap-grooming primitive for control-flow hijack. A:H - A kernel access to the recycled page via the still-not-present direct map raises a supervisor not-present page fault, producing an oops/panic — frequently inside the page allocator while zone/pcp locks are held, hanging the system.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < bb1c19636aedae39360e6fdbcaef4f2bcff25785 (affected · git)1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 1e4643d6628edf9c0047b1f8f5bc574665025acb (affected · git)1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 42d486d35a4143cc37fc72ee66edc99d942dd367 (affected · git)1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 52f2d5cf33de9a8f5e72bbb0ed38282ae0bc4649 (affected · git)1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 4444767e625da46009fc94a453fd1967b80ba047 (affected · git)1507f51255c9ff07d75909a84e7c0d7f3c4b2f49 to < 6f86d0534fddfbd08687fa0f01479d4226bc3c3d (affected · git)Default: unaffected Linux · cna
Linux Linux 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.197 through 5.15.* (unaffected · semver)6.1.159 through 6.1.* (unaffected · semver)6.6.117 through 6.6.* (unaffected · semver)6.12.59 through 6.12.* (unaffected · semver)6.17.9 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

2

Linux · cna

mm/secretmem: fix use-after-free race in fault handler

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
d91916062046e4d46ee04638f8d11829acd856f86189e49962f78d65f0970e95
Ingested
15 Oct 2026, 23:29:36 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