Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2025-38396— fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass

CVSS 7.8 · High EPSS 0.16% · P6

Possible ATT&CK Techniques 2AI

T1055 · Process Injection T1562

Affected Version Matrix 12

VendorProductVersion RangeStatus
LinuxLinux2bfe15c5261212130f1a71f32a300bcf426443d4< 66d29d757c968d2bee9124816da5d718eb352959affected
2bfe15c5261212130f1a71f32a300bcf426443d4< e3eed01347721cd7a8819568161c91d538fbf229affected
2bfe15c5261212130f1a71f32a300bcf426443d4< f94c422157f3e43dd31990567b3e5d54b3e5b32baffected
2bfe15c5261212130f1a71f32a300bcf426443d4< 6ca45ea48530332a4ba09595767bd26d3232743baffected
2bfe15c5261212130f1a71f32a300bcf426443d4< cbe4134ea4bc493239786220bd69cb8a13493190affected
6.0affected
< 6.0unaffected
6.1.146≤ 6.1.*unaffected
… +4 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-38396

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
fs: export anon_inode_make_secure_inode() and fix secretmem LSM bypass
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于anon_inode安全上下文处理不当可能导致LSM绕过。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux 2bfe15c5261212130f1a71f32a300bcf426443d4 ~ 66d29d757c968d2bee9124816da5d718eb352959 -
LinuxLinux 6.0 -

II. Public POCs for CVE-2025-38396

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38396

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-07-25 · 114 CVEs total

CVE-2025-3842910.0 CRITICALbus: mhi: ep: Update read pointer only after buffer is written
CVE-2025-384119.8 CRITICALnetfs: Fix double put of request
CVE-2025-384309.8 CRITICALnfsd: nfsd4_spo_must_allow() must check this is a v4 compound request
CVE-2025-384399.8 CRITICALbnxt_en: Set DMA unmap len correctly for XDP_REDIRECT
CVE-2025-383659.1 CRITICALbtrfs: fix a race between renames and directory logging
CVE-2025-384378.8 HIGHksmbd: fix potential use-after-free in oplock/lease break ack
CVE-2025-383778.8 HIGHrose: fix dangling neighbour pointers in rose_rt_device_down()
CVE-2025-383678.8 HIGHLoongArch: KVM: Avoid overflow with array index
CVE-2025-383958.4 HIGHregulator: gpio: Fix the out-of-bounds access to drvdata::gpiods
CVE-2025-383758.4 HIGHvirtio-net: ensure the received length does not exceed allocated size
CVE-2025-384347.8 HIGHRevert "riscv: Define TASK_SIZE_MAX for __access_ok()"
CVE-2025-383987.8 HIGHspi: spi-qpic-snand: reallocate BAM transactions
CVE-2025-384497.8 HIGHdrm/gem: Acquire references on GEM handles for framebuffers
CVE-2025-383827.8 HIGHbtrfs: fix iteration of extrefs during log replay
CVE-2025-384127.8 HIGHplatform/x86: dell-wmi-sysman: Fix WMI data block retrieval in sysfs callbacks
CVE-2025-384227.8 HIGHnet: lan743x: Modify the EEPROM and OTP size for PCI1xxxx devices
CVE-2025-384407.8 HIGHnet/mlx5e: Fix race between DIM disable and net_dim()
CVE-2025-384087.8 HIGHgenirq/irq_sim: Initialize work context pointers properly
CVE-2025-384017.8 HIGHmtk-sd: Prevent memory corruption from DMA map failure
CVE-2025-384477.8 HIGHmm/rmap: fix potential out-of-bounds page table access during batched unmap

Showing top 20 of 114 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-38396

No comments yet


Leave a comment