CVE-2025-38396
Last modified
CVE-2025-38396 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.16% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.0, < 6.1.146 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.97 | — |
| Linux | Linux Kernel | >= 6.7, < 6.12.37 | — |
| Linux | Linux Kernel | >= 6.13, < 6.15.6 | — |
| Linux | Linux Kernel | 6.16 | Rc1 |
| Debian | Debian Linux | 11.0 | — |
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-38396?
How severe is CVE-2025-38396?
How do I fix CVE-2025-38396?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38390In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38391In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38392In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38393In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2025-38394In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-38395In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2025-38397In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38398In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38399In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3840An improper neutralization of input vulnerability was identi…2.1
- CVE-2025-38400In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38401In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2025-38396?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
