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-38396

published high CVSS 3.1 · 7.8

fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass

Published
25 Jul 2025, 12:53:40 UTC
Updated
05 Aug 2026, 12:01:34 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux2bfe15c5261212130f1a71f32a300bcf426443d4 to < 66d29d757c968d2bee9124816da5d718eb352959 · 2bfe15c5261212130f1a71f32a300bcf426443d4 to < e3eed01347721cd7a8819568161c91d538fbf229 · 2bfe15c5261212130f1a71f32a300bcf426443d4 to < f94c422157f3e43dd31990567b3e5d54b3e5b32b · 2bfe15c5261212130f1a71f32a300bcf426443d4 to < 6ca45ea48530332a4ba09595767bd26d3232743b · 2bfe15c5261212130f1a71f32a300bcf426443d4 to < cbe4134ea4bc493239786220bd69cb8a13493190 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.0 (affected) · 0 to < 6.0 (unaffected · semver) · 6.1.146 through 6.1.* (unaffected · semver) · 6.6.97 through 6.6.* (unaffected · semver) · 6.12.37 through 6.12.* (unaffected · semver) · 6.15.6 through 6.15.* (unaffected · semver) · 6.16 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 AL2023 Release evaluationALAS2023-2025-1130 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1144 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-55.37.1.el10_0 ALSA-2025:16904
Debian bookworm linux Advisory build 6.1.147-1 DSA-5973-1
Oracle Linux 10 kernelx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 10 kernel-doc Advisory build 6.12.0-55.37.1.el10_0 ALSA-2025:16904
AlmaLinux 9 kernel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-doc Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-headers Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 libperf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 perf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 python3-perf Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 rtla Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
AlmaLinux 9 rv Advisory build 5.14.0-611.5.1.el9_7 ALSA-2025:20518
Debian bullseye linux-6.1 Advisory build 6.1.153-1~deb11u1 DLA-4328-1
Oracle Linux 10 kernel-abi-stablelistsx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-corex86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-cross-headersaarch64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-cross-headersx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debugx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debug-corex86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debug-develx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debug-devel-matchedx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debug-modulesx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debug-modules-corex86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debug-modules-extrax86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-debug-uki-virtx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-develx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-devel-matchedx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-docx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-headersaarch64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-headersx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-modulesx86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-modules-corex86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-modules-extrax86_64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904
Oracle Linux 10 kernel-toolsaarch64 Advisory build 0:6.12.0-55.37.1.0.1.el10_0 ELSA-2025-16904

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

Description

In the Linux kernel, the following vulnerability has been resolved: fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass Export anon_inode_make_secure_inode() to allow KVM guest_memfd to create anonymous inodes with proper security context. This replaces the current pattern of calling alloc_anon_inode() followed by inode_init_security_anon() for creating security context manually. This change also fixes a security regression in secretmem where the S_PRIVATE flag was not cleared after alloc_anon_inode(), causing LSM/SELinux checks to be bypassed for secretmem file descriptors. As guest_memfd currently resides in the KVM module, we need to export this symbol for use outside the core kernel. In the future, guest_memfd might be moved to core-mm, at which point the symbols no longer would have to be exported. When/if that happens is still unclear.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

66

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 vulnerable object is created and operated on through local syscalls — `memfd_secret(2)`, `mmap()`, and `ftruncate()` on the resulting file descriptor. No network or adjacent-network path exists. AC:L - Every secretmem inode is unconditionally created with S_PRIVATE set — there is no race, no memory-layout dependency, and no timing element; the attacker simply calls memfd_secret() or receives such an fd. CONFIG_SECRETMEM defaults to y and secretmem_enable defaults to 1 since 6.6, so the affected path is present in stock distro kernels. PR:L - memfd_secret(2) performs no capability or permission check whatsoever, so any unprivileged local user — including one confined inside a container or user namespace — can create and operate on secretmem fds. Local account access is still required, so this is not PR:N. UI:N - The attacker triggers the entire sequence from their own process; no victim action, mount, or file open is needed. S:U - The missing enforcement affects kernel-managed objects under the kernel's own security authority; no VM, IOMMU, or hypervisor boundary is crossed. Per standard kernel scoring, MAC-policy enforcement failures remain Unchanged. C:H - With S_PRIVATE set, SELinux inode_has_perm() and Smack's checks return 0, so FILE__READ/FILE__MAP on a secretmem object are never evaluated — a confined domain that receives such an fd can mmap and read its contents despite policy denying it. secretmem is by design the store for the system's most sensitive data (crypto keys), and the accesses generate no AVC audit records. I:H - The same bypass permits PROT_WRITE shared mappings, and security_inode_setattr() is skipped entirely, so ftruncate/chown/chmod on a policy-protected secretmem object go unmediated. An attacker can overwrite or re-own another security domain's key material that the MAC policy was configured to protect. A:H - Because setattr and write-mapping are both unmediated, an attacker can truncate and overwrite the secretmem object a victim service depends on, destroying its key material and causing that service to fail; the unreclaimable, unmovable nature of secretmem pages compounds the effect.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 2bfe15c5261212130f1a71f32a300bcf426443d4 to < 66d29d757c968d2bee9124816da5d718eb352959 (affected · git)2bfe15c5261212130f1a71f32a300bcf426443d4 to < e3eed01347721cd7a8819568161c91d538fbf229 (affected · git)2bfe15c5261212130f1a71f32a300bcf426443d4 to < f94c422157f3e43dd31990567b3e5d54b3e5b32b (affected · git)2bfe15c5261212130f1a71f32a300bcf426443d4 to < 6ca45ea48530332a4ba09595767bd26d3232743b (affected · git)2bfe15c5261212130f1a71f32a300bcf426443d4 to < cbe4134ea4bc493239786220bd69cb8a13493190 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.0 (affected)0 to < 6.0 (unaffected · semver)6.1.146 through 6.1.* (unaffected · semver)6.6.97 through 6.6.* (unaffected · semver)6.12.37 through 6.12.* (unaffected · semver)6.15.6 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

2

Linux · cna

fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
202f935299fd2b21f831e3ec4b0febf02e96487f75a608dc3113d024607a42ca
Ingested
23 Sep 2026, 08:46:47 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