Skip to main content
Network Thinking Solutions Logo

CVE-2025-38396

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.

All CVEs
CVE-2025-38396Published 7/25/2025

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.

Vendor advisory
CVSS7.8High

Overview

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.

Published
7/25/2025
Last modified
7/30/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 6.0, < 6.1.146

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.97

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.37

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.15.6

Verify advisory

Source
linux kernel
linux
6.16

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
debian linux
debian
11.0

Verify advisory

Source
Linux
Linux
≥ 2bfe15c5261212130f1a71f32a300bcf426443d4, < 66d29d757c968d2bee9124816da5d718eb352959

Verify advisory

Source
Linux
Linux
≥ 2bfe15c5261212130f1a71f32a300bcf426443d4, < e3eed01347721cd7a8819568161c91d538fbf229

Verify advisory

Source
Linux
Linux
≥ 2bfe15c5261212130f1a71f32a300bcf426443d4, < f94c422157f3e43dd31990567b3e5d54b3e5b32b

Verify advisory

Source
Linux
Linux
≥ 2bfe15c5261212130f1a71f32a300bcf426443d4, < 6ca45ea48530332a4ba09595767bd26d3232743b

Verify advisory

Source
Linux
Linux
≥ 2bfe15c5261212130f1a71f32a300bcf426443d4, < cbe4134ea4bc493239786220bd69cb8a13493190

Verify advisory

Source
Linux
Linux
6.0

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.