Skip to main content

Linux Kernel CVE-2025-40018

HIGH
2025-10-24 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Access
    Gain local CAP_NET_ADMIN in a netns
  2. Delivery
    Configure IPVS with ip_vs_ftp helper
  3. Exploit
    Establish tracked FTP connection (live cp->app)
  4. Execution
    Trigger network namespace teardown
  5. Persist
    Dangling cp->app dereferenced (use-after-free)
  6. Impact
    Kernel memory corruption, crash or escalation

Vulnerability Assessment

Exploitation Conditions

Requires the IPVS subsystem with the ip_vs_ftp application helper active and at least one connection holding a valid cp->app pointer, and the attacker must trigger the per-network-namespace cleanup path (netns teardown) - this is the exact condition described. Practically this needs local access with CAP_NET_ADMIN to configure IPVS and to create/destroy the network namespace (PR:L per the CVSS vector; UI:N). Limiting factors: kernels without IPVS or without the FTP helper loaded are not exposed; exploitation is local only (AV:L), not remote; and success depends on the connection-flush-versus-unregister ordering during cleanup, so reliability is timing-dependent rather than guaranteed.

Impact

The provided CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N, C:H/I:H/A:H, base 7.8) rates this High, but multiple corroborating signals point to a lower real-world priority. The vector requires local access and privileges (PR:L) - realistically CAP_NET_ADMIN to configure IPVS/FTP and to trigger namespace teardown - so it is not remotely reachable. EPSS is low (0.20%, 10th percentile), there is no KEV listing and no public PoC, indicating no known exploitation. Note a data conflict worth flagging: the vector claims low complexity (AC:L), yet the bug is an ordering/timing issue on the netns cleanup path where connection flush must lose the race to app unregister - this argues for higher attack complexity (AC:H) than the published score reflects. The 'Information Disclosure' tag also under-states the C:H/I:H/A:H memory-corruption impact; the most reliable outcome of such a UAF is a crash (DoS), with privilege escalation only theoretically possible. Overall this is a defense-in-depth kernel hardening fix, not an urgent emergency, but it matters for multi-tenant/container hosts where CAP_NET_ADMIN is delegated.

Exploit ScenarioDerived

A local user with CAP_NET_ADMIN (for example, a privileged or misconfigured container able to manage its own network namespace) configures IPVS with the FTP helper and active FTP connections, then triggers rapid network-namespace teardown so ip_vs_ftp is unregistered while connections still reference it. The resulting dereference of the freed cp->app pointer corrupts kernel memory, most likely crashing the host (DoS) and, in the worst case, enabling privilege escalation. No public exploit is identified at time of analysis.

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

Use-after-free in the Linux kernel's IPVS (IP Virtual Server) FTP application helper (ip_vs_ftp) allows local privileged users to corrupt kernel memory during network namespace teardown. On the netns cleanup path, __ip_vs_ftp_exit() could unregister ip_vs_ftp before connections still holding valid cp->app pointers were flushed, leaving dangling references that are later dereferenced. The flaw is fixed upstream with stable-tree backports; there is no public exploit identified at time of analysis and EPSS exploitation probability is low (0.20%, 10th percentile).

RemediationAI

Upstream fix available (commit/stable backports); a specific released patched version was not provided in the input and should be confirmed per stable branch. Update to the fixed kernel package for your distribution/stable series that includes the deferral of ip_vs_ftp unregister to __ip_vs_cleanup_batch() (see the stable commits, e.g. https://git.kernel.org/stable/c/421b1ae1574dfdda68b835c15ac4921ec0030182 and the other listed git.kernel.org references). Where immediate patching is not possible, reduce exposure by avoiding the IPVS FTP helper: unload or blacklist the ip_vs_ftp module (modprobe -r ip_vs_ftp / blacklist in modprobe.d) if FTP load balancing is not required - the trade-off is loss of active-mode FTP handling through IPVS. In multi-tenant or container environments, restrict CAP_NET_ADMIN and the ability to create/destroy network namespaces with IPVS configured, which removes the ability to reach the vulnerable cleanup path at the cost of reduced per-container network self-service.

Affected ProductsAI

The Linux kernel IPVS subsystem (net/netfilter/ipvs/ip_vs_ftp.c and the pernet cleanup path) is affected on builds with IPVS and the FTP application helper enabled. No explicit version range or CPE was supplied in the input; the eight git.kernel.org stable references (commits 134121bfd99a, 1d79471414d7, 421b1ae1574d, 53717f8a4347, 8a6ecab3847c, 8cbe2a21d857, a343811ef138, dc1a481359a7) indicate the fix was backported across several stable branches, implying multiple maintained kernel series are impacted. Exact fixed release tags are not provided and should be confirmed against each stable branch's changelog.

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

IPVS is the in-kernel Layer-4 load balancer (netfilter/ipvsadm) used by LVS and by Kubernetes kube-proxy in IPVS mode. The ip_vs_ftp module is an application helper that tracks FTP control connections so IPVS can handle the dynamically negotiated data connections; each tracked connection carries a cp->app pointer to the registered application handler. The root cause is a lifecycle/ordering bug (CWE-416 Use-After-Free; CWE field is N/A in the source data) in per-network-namespace (pernet) cleanup: __ip_vs_ftp_exit() unregistered the ip_vs_ftp app before __ip_vs_cleanup_batch() had flushed connections referencing it, so a subsequent access to cp->app touches freed memory. The fix introduces a global exiting_module flag so that during netns cleanup the unregister is deferred to __ip_vs_cleanup_batch() (after all connections are flushed), while module-unload still unregisters immediately.

Know when the next one hits your stack

  • 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

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local only and needs CAP_NET_ADMIN to configure IPVS (AV:L, PR:L); the UAF depends on winning a flush-vs-unregister ordering during netns teardown, so AC:H; memory corruption yields C/I/A:H.

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

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

ipvs: Defer ip_vs_ftp unregister during netns cleanup

On the netns cleanup path, __ip_vs_ftp_exit() may unregister ip_vs_ftp before connections with valid cp->app pointers are flushed, leading to a use-after-free.

Fix this by introducing a global exiting_module flag, set to true in ip_vs_ftp_exit() before unregistering the pernet subsystem. In __ip_vs_ftp_exit(), skip ip_vs_ftp unregister if called during netns cleanup (when exiting_module is false) and defer it to __ip_vs_cleanup_batch(), which unregisters all apps after all connections are flushed. If called during module exit, unregister ip_vs_ftp immediately.

Executive ViewAI

Why It Matters

A use-after-free vulnerability in the Linux kernel's IPVS FTP helper (CVE-2025-40018, CVSS 7.8) allows local privileged users to corrupt kernel memory during network namespace teardown, potentially causing kernel instability or privilege escalation. Organizations running Linux systems with IPVS FTP support enabled should assess their exposure and kernel configurations, particularly across containerized and virtualized infrastructure.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable IPVS FTP application helper module if not operationally required; enforce strict logical and administrative access controls on systems where elevated privileges are provisioned; implement monitoring for kernel panic events and unexpected system reboots on affected infrastructure; restrict network namespace operations to trusted administrative users only.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Ubiquitous
Linux kernel runs everywhere; IPVS FTP helper is a narrower feature subset
Data Quality
4 sources
Confidence: Medium

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:15.6.17.8.134 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/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.65 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.88 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.105 Affected

References

Advisories & patches
ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21040/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21052/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21056/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21064/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21080/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21147/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:21180/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4057/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4111/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4128/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4132/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4135/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4139/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4140/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4141/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4149/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4188/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4189/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4301/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4320/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:0352/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1185/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1188/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1212/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1221/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1222/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1225/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1236/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1239/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1242/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1244/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1248/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1259/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1263/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1268/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1269/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1271/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1280/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1281/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1283/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1285/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1287/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1297/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1298/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1304/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20317/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20333/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20561/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21007/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21008/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21043/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21044/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21045/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21046/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21047/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21048/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21049/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21050/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21053/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21054/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21055/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21056/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21057/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21058/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21059/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21060/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21061/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21073/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21074/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21075/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21076/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21077/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21078/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21079/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21080/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21083/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21084/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21085/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21086/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21087/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21088/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21089/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21090/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21091/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21096/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21099/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21217/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21219/ REF https://git.kernel.org/stable/c/134121bfd99a06d44ef5ba15a9beb075297c0821 REF https://git.kernel.org/stable/c/1d79471414d7b9424d699afff2aa79fff322f52d REF https://git.kernel.org/stable/c/421b1ae1574dfdda68b835c15ac4921ec0030182 REF https://git.kernel.org/stable/c/53717f8a4347b78eac6488072ad8e5adbaff38d9 REF https://git.kernel.org/stable/c/8a6ecab3847c213ce2855b0378e63ce839085de3 REF https://git.kernel.org/stable/c/8cbe2a21d85727b66d7c591fd5d83df0d8c4f757 REF https://git.kernel.org/stable/c/a343811ef138a265407167294275201621e9ebb2 REF https://git.kernel.org/stable/c/dc1a481359a72ee7e548f1f5da671282a7c13b8f

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