Skip to main content

Linux Kernel CVE-2025-38462

MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2025-07-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67
4.7
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain local low-privilege shell
  2. Exploit
    Invoke vsock bind()/ioctl while module unloads
  3. Execution
    Win TOCTOU race on NULL transport pointer
  4. Impact
    Null-ptr-deref crashes kernel (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Requires local access (AV:L) with low privileges (PR:L) sufficient to call bind() on an AF_VSOCK socket or issue the vsock device ioctl, plus a concurrent unload of the vsock transport module (g2h/h2g) so transport_{g2h,h2g} can be set to NULL after the code's NULL check. Exploitation is limited by the high-complexity timing window of this TOCTOU race (AC:H) and by the need for the vsock transport to be loaded and then unloaded during the attack - so systems where vsock transport modules are never unloaded, or where AF_VSOCK is unavailable to unprivileged users, are not practically exposed. No user interaction is needed (UI:N), but remote exploitation is not possible.

Impact

This is a genuinely low-to-moderate priority issue despite being an availability-impacting kernel bug. The signals are consistent and point away from urgency: the CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H, base 4.7 MEDIUM) requires local access, low privileges, and a HIGH-complexity trigger - here the complexity is real, as CWE-367 and the description confirm a TOCTOU race between vsock_find_cid()/vsock_dev_do_ioctl() and vsock transport module unload. EPSS reinforces this at 0.14% (3rd percentile), i.e. negligible modeled exploitation probability. There is no CISA KEV listing and no public exploit identified at time of analysis - the only references are the fixing git commits and Debian LTS advisories, so this is neither confirmed exploited nor accompanied by PoC code. Impact is confined to availability (C:N/I:N/A:H): the outcome is a null-ptr-deref kernel crash (DoS), not code execution or information disclosure. The vuln.today decision label is 'this_month', not act_now/emergency, which aligns with the data. Net: a legitimate bug worth patching on a normal cadence, not a drop-everything emergency. Note a tagging conflict - the input carries an 'Information Disclosure' tag, but the CVSS vector and KASAN null-ptr-deref both indicate an availability/DoS issue with no confidentiality impact.

Exploit ScenarioDerived

A local, low-privileged user repeatedly issues bind() or the vsock device ioctl while the vsock transport module (g2h/h2g) is concurrently being unloaded, aiming to hit the window where transport_{g2h,h2g} becomes NULL after the NULL check. Winning this race dereferences a NULL transport pointer in vsock_find_cid()/vsock_dev_do_ioctl(), crashing the kernel. No public exploit is identified at time of analysis, and the high attack complexity reflects the narrow timing window against module unload.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 05, 2026

A null-pointer dereference in the Linux kernel's AF_VSOCK subsystem lets a local user with low privileges crash the kernel by racing a bind() call or a vsock device ioctl against unloading of the vsock transport module. The bug is a time-of-check-to-time-of-use flaw: vsock_find_cid() and vsock_dev_do_ioctl() check the transport_g2h/transport_h2g pointers and then use them, so a concurrent module unload can set those pointers to NULL between the check and the dereference. Impact is availability only (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H, 4.7); EPSS is 0.14% (3rd percentile), no public exploit has been identified, there is no KEV listing, and vendor patches are available in the stable kernel tree.

RemediationAI

Apply the vendor kernel update containing the upstream fix - the stable commits listed in the references (for example c5496ee685c48ed1cc183cd4263602579bb4a615 and 209fd720838aaf1420416494c5505096478156b4 at https://git.kernel.org/stable/c/209fd720838aaf1420416494c5505096478156b4) are the authoritative patches, and Debian LTS users should follow https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html and https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html for the fixed kernel package. Because the race requires the vsock transport module to be unloaded while a local user is issuing bind() on an AF_VSOCK socket or the vsock device ioctl, avoiding runtime unload of the vsock transport (g2h/h2g) modules removes the window at the cost of keeping those modules resident, and restricting AF_VSOCK access to unprivileged users eliminates the reachable attack path but may break legitimate guest-agent or container workloads that rely on vsock.

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

AF_VSOCK is the Linux socket family used for host-to-guest and guest-to-host communication in virtualized environments, with transports such as virtio-vsock and VMware VMCI registered through the global transport_g2h and transport_h2g pointers. The flaw is CWE-367 (TOCTOU): both vsock_find_cid(), reached via __vsock_bind()/vsock_bind(), and vsock_dev_do_ioctl() read the transport pointer, verify it is non-NULL, and then dereference it. If the transport module is unloaded in that window, the pointer becomes NULL and the kernel dereferences a low address, producing the reported KASAN null-ptr-deref in the range 0x118-0x11f with the stack traces in vsock_find_cid+0x47 and vsock_dev_do_ioctl.isra.0+0x58. The upstream fix introduces vsock_transport_local_cid(), which resolves the local CID through a protected accessor rather than re-reading the global transport pointer. The CPE data maps the issue to the linux_kernel product, including the 6.16 release-candidate line (rc1 through rc4) and additional unspecified kernel version ranges, and the seven git.kernel.org stable commits in the references indicate the fix was backported across multiple stable branches.

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 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

Local syscall/ioctl access needs low privileges (PR:L), the TOCTOU race against module unload makes it AC:H, and a null-ptr-deref crash yields A:H with no C/I impact.

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

Primary rating from NVD.

CVSS VectorNVD

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

DescriptionNVD

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

vsock: Fix transport_{g2h,h2g} TOCTOU

vsock_find_cid() and vsock_dev_do_ioctl() may race with module unload. transport_{g2h,h2g} may become NULL after the NULL check.

Introduce vsock_transport_local_cid() to protect from a potential null-ptr-deref.

KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] RIP: 0010:vsock_find_cid+0x47/0x90 Call Trace: __vsock_bind+0x4b2/0x720 vsock_bind+0x90/0xe0 __sys_bind+0x14d/0x1e0 __x64_sys_bind+0x6e/0xc0 do_syscall_64+0x92/0x1c0 entry_SYSCALL_64_after_hwframe+0x4b/0x53

KASAN: null-ptr-deref in range [0x0000000000000118-0x000000000000011f] RIP: 0010:vsock_dev_do_ioctl.isra.0+0x58/0xf0 Call Trace: __x64_sys_ioctl+0x12d/0x190 do_syscall_64+0x92/0x1c0 entry_SYSCALL_64_after_hwframe+0x4b/0x53

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
Linux kernel runs in a huge fraction of production environments
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

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

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:*:*:*:*:*:*:*:*
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:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*
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

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