# CVE-2025-38462: vsock: Fix transport\_{g2h,h2g} TOCTOU

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-367
- **Published:** 2025-07-25T15:27:45.168Z
- **Modified:** 2026-11-05T21:18:32.837Z

## Who should check

- Anyone running Linux \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< c5496ee685c48ed1cc183cd4263602579bb4a615; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 80d7dc15805a93d520a249ac6d13d4f4df161c1b; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 401239811fa728fcdd53e360a91f157ffd23e1f4; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 3734d78210cceb2ee5615719a62a5c55ed381ff8; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 6a1bcab67bea797d83aa9dd948a0ac6ed52d121d; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 209fd720838aaf1420416494c5505096478156b4
- Anyone running Linux 5.5

## Description

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

## Affected and fixed versions

- Linux: \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< c5496ee685c48ed1cc183cd4263602579bb4a615; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 80d7dc15805a93d520a249ac6d13d4f4df161c1b; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 401239811fa728fcdd53e360a91f157ffd23e1f4; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 3734d78210cceb2ee5615719a62a5c55ed381ff8; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 6a1bcab67bea797d83aa9dd948a0ac6ed52d121d; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 209fd720838aaf1420416494c5505096478156b4 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 209fd720838aaf1420416494c5505096478156b4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38462. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38462.md
Affected: Linux >= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, < c5496ee685c48ed1cc183cd4263602579bb4a615; >= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, < 80d7dc15805a93d520a249ac6d13d4f4df161c1b; >= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, < 5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17; >= c0cfa2d8a788fcf45df5bf4…
Fixed in: Linux 80d7dc15805a93d520a249ac6d13d4f4df161c1b, Linux 5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17, Linux 401239811fa728fcdd53e360a91f157ffd23e1f4, Linux 3734d78210cceb2ee5615719a62a5c55ed381ff8, Linux 6a1bcab67bea797d83aa9dd948a0ac6ed52d121d, Linux 209fd720838aaf1420416494c5505096478156b4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38462 being exploited?

There is no confirmed exploitation: CVE-2025-38462 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38462?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-38462?

Linux \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< c5496ee685c48ed1cc183cd4263602579bb4a615; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 80d7dc15805a93d520a249ac6d13d4f4df161c1b; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 401239811fa728fcdd53e360a91f157ffd23e1f4; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 3734d78210cceb2ee5615719a62a5c55ed381ff8; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 6a1bcab67bea797d83aa9dd948a0ac6ed52d121d; \>= c0cfa2d8a788fcf45df5bf4070ab2474c88d543a, \< 209fd720838aaf1420416494c5505096478156b4; Linux 5.5.

### Is there a fix for CVE-2025-38462?

Yes. Fixed in Linux 80d7dc15805a93d520a249ac6d13d4f4df161c1b, Linux 5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17, Linux 401239811fa728fcdd53e360a91f157ffd23e1f4, Linux 3734d78210cceb2ee5615719a62a5c55ed381ff8, Linux 6a1bcab67bea797d83aa9dd948a0ac6ed52d121d, Linux 209fd720838aaf1420416494c5505096478156b4. Upgrade Linux to 209fd720838aaf1420416494c5505096478156b4 or later.

### How do I check if I'm affected by CVE-2025-38462?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c5496ee685c48ed1cc183cd4263602579bb4a615>
- patch: <https://git.kernel.org/stable/c/80d7dc15805a93d520a249ac6d13d4f4df161c1b>
- patch: <https://git.kernel.org/stable/c/5752d8dbb3dfd7f1a9faf0f65377e60826ea9a17>
- patch: <https://git.kernel.org/stable/c/401239811fa728fcdd53e360a91f157ffd23e1f4>
- patch: <https://git.kernel.org/stable/c/3734d78210cceb2ee5615719a62a5c55ed381ff8>
- patch: <https://git.kernel.org/stable/c/6a1bcab67bea797d83aa9dd948a0ac6ed52d121d>
- patch: <https://git.kernel.org/stable/c/209fd720838aaf1420416494c5505096478156b4>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38462>

HTML: <https://flawdb.com/CVE-2025-38462> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38462>
