{"id":"CVE-2025-38396","published":"2025-07-25T12:53:40Z","modified":"2026-08-05T12:01:34Z","title":"fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass\n\nExport anon_inode_make_secure_inode() to allow KVM guest_memfd to create\nanonymous inodes with proper security context. This replaces the current\npattern of calling alloc_anon_inode() followed by\ninode_init_security_anon() for creating security context manually.\n\nThis change also fixes a security regression in secretmem where the\nS_PRIVATE flag was not cleared after alloc_anon_inode(), causing\nLSM/SELinux checks to be bypassed for secretmem file descriptors.\n\nAs guest_memfd currently resides in the KVM module, we need to export this\nsymbol for use outside the core kernel. In the future, guest_memfd might be\nmoved to core-mm, at which point the symbols no longer would have to be\nexported. When/if that happens is still unclear.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00198,"percentile":0.09639,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/66d29d757c968d2bee9124816da5d718eb352959","tags":[]},{"url":"https://git.kernel.org/stable/c/e3eed01347721cd7a8819568161c91d538fbf229","tags":[]},{"url":"https://git.kernel.org/stable/c/f94c422157f3e43dd31990567b3e5d54b3e5b32b","tags":[]},{"url":"https://git.kernel.org/stable/c/6ca45ea48530332a4ba09595767bd26d3232743b","tags":[]},{"url":"https://git.kernel.org/stable/c/cbe4134ea4bc493239786220bd69cb8a13493190","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":1.93},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2bfe15c5261212130f1a71f32a300bcf426443d4, < 66d29d757c968d2bee9124816da5d718eb352959",">= 2bfe15c5261212130f1a71f32a300bcf426443d4, < e3eed01347721cd7a8819568161c91d538fbf229",">= 2bfe15c5261212130f1a71f32a300bcf426443d4, < f94c422157f3e43dd31990567b3e5d54b3e5b32b",">= 2bfe15c5261212130f1a71f32a300bcf426443d4, < 6ca45ea48530332a4ba09595767bd26d3232743b",">= 2bfe15c5261212130f1a71f32a300bcf426443d4, < cbe4134ea4bc493239786220bd69cb8a13493190"]},{"vendor":"Linux","product":"Linux","versions":["6.0"]}],"euvd":{"id":"EUVD-2025-22607","exploited":false,"provenance":"source"}}