CVE-2025-38461

vsock: Fix transport_* TOCTOU

State
Published
Severity
7.0 High
Published
Jul 25, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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

vsock: Fix transport_* TOCTOU

Transport assignment may race with module unload. Protect new_transport from becoming a stale pointer.

This also takes care of an insecure call in vsock_use_local_transport(); add a lockdep assert.

BUG: unable to handle page fault for address: fffffbfff8056000 Oops: Oops: 0000 [#1] SMP KASAN RIP: 0010:vsock_assign_transport+0x366/0x600 Call Trace: vsock_connect+0x59c/0xc40 __sys_connect+0xe8/0x100 __x64_sys_connect+0x6e/0xc0 do_syscall_64+0x92/0x1c0 entry_SYSCALL_64_after_hwframe+0x4b/0x53

Scores

CVSSScoreVectorSource
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c0cfa2d8a788fcf45df5bf4070ab2474c88d543a to before 8667e8d0eb46bc54fdae30ba2f4786407d3d88ebAffected
  • c0cfa2d8a788fcf45df5bf4070ab2474c88d543a to before 36a439049b34cca0b3661276049b84a1f76cc21aAffected
  • c0cfa2d8a788fcf45df5bf4070ab2474c88d543a to before 9ce53e744f18e73059d3124070e960f3aa9902bfAffected
  • c0cfa2d8a788fcf45df5bf4070ab2474c88d543a to before 9d24bb6780282b0255b9929abe5e8f98007e2c6eAffected
  • c0cfa2d8a788fcf45df5bf4070ab2474c88d543a to before ae2c712ba39c7007de63cb0c75b51ce1caaf1da5Affected
  • c0cfa2d8a788fcf45df5bf4070ab2474c88d543a to before 7b73bddf54777fb62d4d8c7729d0affe6df04477Affected
  • c0cfa2d8a788fcf45df5bf4070ab2474c88d543a to before 687aa0c5581b8d4aa87fd92973e4ee576b550cdfAffected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 5.10.240 through 5.10.*Not affected
  • 5.15.189 through 5.15.*Not affected
  • 6.1.146 through 6.1.*Not affected
  • 6.6.99 through 6.6.*Not affected
  • 6.12.39 through 6.12.*Not affected
  • 6.15.7 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.