{"id":"CVE-2025-38618","state":"PUBLISHED","title":"vsock: Do not allow binding to VMADDR_PORT_ANY","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock: Do not allow binding to VMADDR_PORT_ANY\n\nIt is possible for a vsock to autobind to VMADDR_PORT_ANY. This can\ncause a use-after-free when a connection is made to the bound socket.\nThe socket returned by accept() also has port VMADDR_PORT_ANY but is not\non the list of unbound sockets. Binding it will result in an extra\nrefcount decrement similar to the one fixed in fcdd2242c023 (vsock: Keep\nthe binding until socket destruction).\n\nModify the check in __vsock_bind_connectible() to also prevent binding\nto VMADDR_PORT_ANY.","publishedAt":"2025-08-22T13:01:24.678Z","updatedAt":"2026-08-05T12:03:33.962Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"c04a2c1ca25b9b23104124d3b2d349d934e302de","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"d1a5b1964cef42727668ac0d8532dae4f8c19386","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"cf86704798c1b9c46fa59dfc2d662f57d1394d79","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"f138be5d7f301fddad4e65ec66dfc3ceebf79be3","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"44bd006d5c93f6a8f28b106cbae2428c5d0275b7","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"32950b1907919be86a7a2697d6f93d57068b3865","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"8f01093646b49f6330bb2d36761983fd829472b1","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"d73960f0cf03ef1dc9e96ec7a20e538accc26d87","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"aba0c94f61ec05315fa7815d21aefa4c87f6a9f4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/af_vsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.9","versionType":"semver"},{"version":"5.4.297","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.241","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.190","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.148","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.102","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.42","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/af_vsock.c"]}],"references":["https://git.kernel.org/stable/c/c04a2c1ca25b9b23104124d3b2d349d934e302de","https://git.kernel.org/stable/c/d1a5b1964cef42727668ac0d8532dae4f8c19386","https://git.kernel.org/stable/c/cf86704798c1b9c46fa59dfc2d662f57d1394d79","https://git.kernel.org/stable/c/f138be5d7f301fddad4e65ec66dfc3ceebf79be3","https://git.kernel.org/stable/c/44bd006d5c93f6a8f28b106cbae2428c5d0275b7","https://git.kernel.org/stable/c/32950b1907919be86a7a2697d6f93d57068b3865","https://git.kernel.org/stable/c/8f01093646b49f6330bb2d36761983fd829472b1","https://git.kernel.org/stable/c/d73960f0cf03ef1dc9e96ec7a20e538accc26d87","https://git.kernel.org/stable/c/aba0c94f61ec05315fa7815d21aefa4c87f6a9f4","https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38618.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38618","state":"PUBLISHED","datePublished":"2025-08-22T13:01:24.678Z","dateUpdated":"2026-08-05T12:03:33.962Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.029Z"},"containers":{"cna":{"title":"vsock: Do not allow binding to VMADDR_PORT_ANY","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nvsock: Do not allow binding to VMADDR_PORT_ANY\n\nIt is possible for a vsock to autobind to VMADDR_PORT_ANY. This can\ncause a use-after-free when a connection is made to the bound socket.\nThe socket returned by accept() also has port VMADDR_PORT_ANY but is not\non the list of unbound sockets. Binding it will result in an extra\nrefcount decrement similar to the one fixed in fcdd2242c023 (vsock: Keep\nthe binding until socket destruction).\n\nModify the check in __vsock_bind_connectible() to also prevent binding\nto VMADDR_PORT_ANY."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"c04a2c1ca25b9b23104124d3b2d349d934e302de","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"d1a5b1964cef42727668ac0d8532dae4f8c19386","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"cf86704798c1b9c46fa59dfc2d662f57d1394d79","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"f138be5d7f301fddad4e65ec66dfc3ceebf79be3","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"44bd006d5c93f6a8f28b106cbae2428c5d0275b7","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"32950b1907919be86a7a2697d6f93d57068b3865","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"8f01093646b49f6330bb2d36761983fd829472b1","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"d73960f0cf03ef1dc9e96ec7a20e538accc26d87","versionType":"git"},{"version":"d021c344051af91f42c5ba9fdedc176740cbd238","status":"affected","lessThan":"aba0c94f61ec05315fa7815d21aefa4c87f6a9f4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/af_vsock.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.9","versionType":"semver"},{"version":"5.4.297","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.241","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.190","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.148","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.102","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.42","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.10","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.1","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/vmw_vsock/af_vsock.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c04a2c1ca25b9b23104124d3b2d349d934e302de"},{"url":"https://git.kernel.org/stable/c/d1a5b1964cef42727668ac0d8532dae4f8c19386"},{"url":"https://git.kernel.org/stable/c/cf86704798c1b9c46fa59dfc2d662f57d1394d79"},{"url":"https://git.kernel.org/stable/c/f138be5d7f301fddad4e65ec66dfc3ceebf79be3"},{"url":"https://git.kernel.org/stable/c/44bd006d5c93f6a8f28b106cbae2428c5d0275b7"},{"url":"https://git.kernel.org/stable/c/32950b1907919be86a7a2697d6f93d57068b3865"},{"url":"https://git.kernel.org/stable/c/8f01093646b49f6330bb2d36761983fd829472b1"},{"url":"https://git.kernel.org/stable/c/d73960f0cf03ef1dc9e96ec7a20e538accc26d87"},{"url":"https://git.kernel.org/stable/c/aba0c94f61ec05315fa7815d21aefa4c87f6a9f4"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is triggered through the bind() syscall on an AF_VSOCK socket; vsock is a local socket interface with no remote network reachability, so the attacker needs local system access.\nAC:L - The accept()-based trigger is fully deterministic — create a loopback vsock listener, connect, accept, then bind the accepted socket to VMADDR_PORT_ANY to force the extra sock_put; no race or uncontrolled condition is required.\nPR:L - Any unprivileged local user can create AF_VSOCK sockets and use the loopback (VMADDR_CID_LOCAL) transport; the autobind path performs no capability check, so only basic user privileges are needed.\nUI:N - The entire sequence is performed by the attacker's own process via syscalls; no action by any other user is required.\nS:U - The use-after-free corrupts kernel memory within the same kernel security authority and does not cross a VM/hypervisor or IOMMU boundary.\nC:H - A use-after-free of the struct sock lets the attacker reclaim the freed object with controlled data, enabling arbitrary kernel memory disclosure.\nI:H - The UAF/refcount underflow enables heap grooming and write primitives over the reclaimed object, permitting kernel memory modification and potential control-flow hijack.\nA:H - The refcount underflow frees a still-referenced socket, causing use-after-free access that reliably crashes/panics the kernel."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:03:33.962Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"5.4.297"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"5.10.241"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"5.15.190"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.1.148"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.6.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.12.42"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.15.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.16.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.9","versionEndExcluding":"6.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T17:40:30.483Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-38618","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-06-10T20:42:30.337631Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-11T18:44:23.948Z"}}]}}}