CVE-2025-38396
HighIn 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.
CVSS 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected versions
Linux kernel versions
6.0
and later are affected. Fixed in
6.1.146,
6.6.97,
6.12.37,
6.15.6,
6.16
and their respective stable series.
References
The following references provide additional information about CVE-2025-38396 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
Third Party Advisory
-
PatchKernel patch commithttps://git.kernel.org/stable/c/66d29d757c968d2bee9124816da5d718eb352959
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6ca45ea48530332a4ba09595767bd26d3232743b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/cbe4134ea4bc493239786220bd69cb8a13493190
Frequently asked questions
-
What is CVE-2025-38396?
CVE-2025-38396 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 . It affects Linux kernel versions from 6.0 onward and has been patched in 6.1.146, 6.6.97, 6.12.37 and others. CVE-2025-38396 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-38396?
CVE-2025-38396 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2025-38396?
Yes — CVE-2025-38396 has been patched. Fixed versions include 6.1.146, 6.6.97, 6.12.37 and others. If you are running Linux kernel 6.0 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-38396 actively exploited?
No — CVE-2025-38396 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.