Skip to main content

Linux Kernel CVE-2025-38396

HIGH
2025-07-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local unprivileged shell
  2. Delivery
    Invoke memfd_secret to create secretmem fd
  3. Exploit
    S_PRIVATE skips LSM/SELinux hook
  4. Execution
    Bypass MAC policy on secretmem
  5. Impact
    Use unrestricted secret memory object

Vulnerability Assessment

Exploitation Conditions

Requires local access with the ability to execute code and invoke the memfd_secret syscall (or trigger the KVM guest_memfd path) on a kernel built with secretmem/guest_memfd using the vulnerable alloc_anon_inode pattern - specifically 6.16 release candidates or the Debian backport. The meaningful precondition is that the target relies on LSM/SELinux policy to restrict secretmem; the flaw only matters where such policy exists to be bypassed. Limiting factors: no remote vector (AV:L), attacker must already hold a local account (PR:L per CVSS), no impact on systems where secretmem is disabled or unused, and the affected versions are release candidates plus one backport rather than broadly shipped stable kernels.

Impact

Signals are mixed and lean toward low real-world urgency despite a 7.8 CVSS. The CVSS vector (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H) correctly marks this as local and low-privilege, but the C:H/I:H/A:H impact rating appears inflated for what is fundamentally an LSM/SELinux policy-enforcement bypass on secretmem descriptors rather than a direct code-execution or data-corruption primitive - verify impact scoring against the actual patch. EPSS is very low at 0.16% (6th percentile), the CVE is not in CISA KEV, and no public exploit was identified, all consistent with a hardening/regression fix rather than an actively targeted flaw. The exploitation precondition is meaningful: an attacker already needs local code execution and the ability to invoke memfd_secret, and the payoff is only that MAC policy which should block secretmem is not enforced. This is a legitimate security regression worth patching on affected builds, but it is not an emergency; it primarily matters in SELinux/LSM-hardened environments that rely on policy to restrict secretmem.

Exploit ScenarioDerived

A local low-privileged process on an SELinux-hardened host calls memfd_secret() to create a secretmem file descriptor; because S_PRIVATE is left set, the LSM/SELinux hook that would deny or label the object is skipped, so the process obtains a secretmem descriptor the security policy was configured to forbid. No public proof-of-concept is known, and exploitation requires prior local execution, so this is a policy-evasion step rather than a standalone remote compromise.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Local privilege/security-policy bypass in the Linux kernel's secretmem subsystem allows LSM and SELinux access controls to be evaded on secretmem file descriptors because the S_PRIVATE flag was left set after alloc_anon_inode(), causing inode_init_security_anon() checks to be skipped. The affected code paths are the anonymous-inode helpers used by secretmem (memfd_secret) and KVM guest_memfd, present in Linux 6.16 release candidates and a Debian backport. There is no public exploit identified and EPSS is very low (0.16%), so the practical impact is a defense-in-depth regression that lets a local process create secretmem objects that mandatory-access-control policy should have denied.

RemediationAI

Patch available per vendor: apply the upstream stable-tree fixes referenced by NVD (commits 66d29d757c96, 6ca45ea48530, cbe4134ea4bc, e3eed0134772, and f94c422157f3 at git.kernel.org/stable) by updating to the corrected 6.16 build or a distribution kernel that includes them; the exact released tag is not independently confirmed from the input, so treat these as commit-level fixes and pull the vendor's patched package. Debian users should update per the Debian LTS advisory at https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html. If immediate patching is not possible, the practical compensating control is to restrict the memfd_secret capability - e.g. disable secretmem at boot with the kernel command-line parameter secretmem.enable=0 where supported, which removes the vulnerable object type entirely at the cost of losing secretmem functionality - and limit local unprivileged code execution on sensitive hosts. Note that on kernels relying on SELinux/LSM policy to gate secretmem, that policy cannot be trusted to enforce until the patch is applied, so tightening local access controls is the more reliable interim measure.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is in the kernel's anonymous inode creation for security-sensitive memory objects. secretmem (created via the memfd_secret syscall) and KVM's guest_memfd both need anonymous inodes that carry a proper LSM security context. The previous pattern called alloc_anon_inode() and then manually called inode_init_security_anon(); however, alloc_anon_inode() sets the S_PRIVATE inode flag, and when that flag is not cleared the LSM framework treats the inode as internal and skips security initialization/labeling. As a result SELinux (or any LSM) hooks that would evaluate policy for creating these descriptors are bypassed. The fix exports and routes callers through anon_inode_make_secure_inode(), which properly establishes the security context and clears S_PRIVATE so LSM checks run. The CPE data scopes this to cpe:2.3:o:linux:linux_kernel (notably 6.16 rc1-rc4) and cpe:2.3:o:debian:debian_linux:11.0. The NVD lists CWE as N/A; the behavior class is best described as improper enforcement / missing authorization check (CWE-862-style) rather than the 'Authentication Bypass' tag applied in the intel feed.

Know when Debian Linux gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 4.4 MEDIUM

Local low-priv process invoking memfd_secret bypasses LSM/SELinux policy on secretmem - a limited confidentiality/integrity enforcement gap, no availability impact, making the official C:H/I:H/A:H look inflated.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 6.0 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionNVD

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.

Executive ViewAI

Why It Matters

A Linux kernel vulnerability in versions 6.16 (release candidates) and certain Debian backports allows local users to bypass mandatory access control security policies, creating a potential weakness in defense-in-depth security architectures. The practical risk is minimal-no public exploits identified, baseline exploitation risk is 0.2%, and the attack requires local system access-though impact is significant for organizations with strict policy-based access controls. Organizations should assess whether affected kernel versions are deployed and factor patching into standard maintenance cycles.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Medium
Linux kernel ubiquitous, but only 6.16 release candidates and a Debian backport affected
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
CVE-2021-44228 CRITICAL POC
10.0 Dec 10

Apache Log4j2 contains a critical JNDI injection vulnerability known as 'Log4Shell' that allows unauthenticated remote c

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2022-30333 HIGH POC
7.5 May 09

RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) o

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2017-12617 HIGH POC
8.1 Oct 04

When running Apache Tomcat versions 9.0.0.M1 to 9.0.0, 8.5.0 to 8.5.22, 8.0.0.RC1 to 8.0.46 and 7.0.0 to 7.0.81 with HTT

CVE-2020-1938 CRITICAL POC
9.8 Feb 24

When using the Apache JServ Protocol (AJP), care must be taken when trusting incoming connections to Apache Tomcat. Rate

CVE-2018-7602 CRITICAL POC
9.8 Jul 19

A remote code execution vulnerability exists within multiple subsystems of Drupal 7.x and 8.x. Rated critical severity (

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:15.6.17.8.103 Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.44 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.27 Image SL-Micro Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.67 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.29 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.76 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.14 Affected
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected

References

Advisories & patches
PATCH https://git.kernel.org/stable/c/66d29d757c968d2bee9124816da5d718eb352959 PATCH https://git.kernel.org/stable/c/6ca45ea48530332a4ba09595767bd26d3232743b PATCH https://git.kernel.org/stable/c/cbe4134ea4bc493239786220bd69cb8a13493190 PATCH https://git.kernel.org/stable/c/e3eed01347721cd7a8819568161c91d538fbf229 PATCH https://git.kernel.org/stable/c/f94c422157f3e43dd31990567b3e5d54b3e5b32b ADVISORY https://access.redhat.com/errata/RHSA-2025:16904 ADVISORY https://access.redhat.com/errata/RHSA-2025:20518 ADVISORY https://vuldb.com/vuln/317661 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02853/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02923/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02969/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02996/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:02997/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03011/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03023/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03636/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03638/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03646/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:03650/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20577/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20586/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20601/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20602/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20873/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20874/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20875/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20876/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20877/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20878/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20879/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20881/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20882/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20883/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20884/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20885/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20886/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20887/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20888/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20890/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20891/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20902/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20903/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20904/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20905/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20906/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20907/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20909/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20912/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20913/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20914/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20915/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20916/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20917/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20918/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20920/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20994/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:20996/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21074/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21139/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21179/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3742/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3748/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3755/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3762/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3764/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3765/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3768/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3771/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:3772/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20309/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20330/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20560/ REF https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy