CWE data temporarily unavailableCWE data is currently experiencing intermittent outages, which may cause incomplete section loading on CVE pages. We are actively working on a fix.

CVE-2025-40186

Description

A flaw was found in the Linux kernel. A local attacker with low privileges could exploit a memory corruption vulnerability, specifically a use-after-free and double-free, within the TCP Fast Open (TFO) socket processing. This occurs when a listener is closed while a TFO socket is being processed in tcp_conn_request(). Successful exploitation could lead to a kernel panic, resulting in a Denial of Service (DoS), or potentially allow the attacker to execute arbitrary code with elevated privileges.

Statement

This vulnerability is rated Important for Red Hat Enterprise Linux. A local attacker with low privileges can exploit a use-after-free and double-free flaw in the Linux kernel's TCP Fast Open (TFO) implementation. This could lead to a kernel panic, resulting in a Denial of Service, or potentially allow for privilege escalation. This affects Red Hat Enterprise Linux 7, 8, 9 (up to 9.7.z), and 10 (up to 10.1.z).

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7N/A8.1
Attack VectorLocalN/ANetwork
Attack ComplexityHighN/AHigh
Privileges RequiredLowN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityHighN/AHigh
Integrity ImpactHighN/AHigh
Availability ImpactHighN/AHigh

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

Want to get errata notifications? Sign up here.