Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 944C72EE61F for ; Fri, 25 Jul 2025 15:29:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753457396; cv=none; b=B5+LvAd+u4hdp56dn7Mjp1eJU74hcLrhdsiIVsQRTZC+i4OfcqwL14YuSRVHocTNaEhHaWtRKwUQonyIpC9AtEy4p+KIoegZeLOF+BNGsZpYkcKlFZwunuwV4fhRisS5TqdPrDIOsOW9jd7kLltNHLgvDh3iiBVsjXf9W63PSNA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753457396; c=relaxed/simple; bh=d90PIdH4EAHOfhbktehJQqEWRBDqxYiwE+1HowyahVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PqIhdzSq9howJmbi4qBfv7HXJjFkeMD7Oo7fb86jJG3p3cLUm30bUR9BuEy60TReibHOxqVToMtbaoXGB7WVdvDLiBP+oPgimggItAb8gjxPHmgoiUhTD3ADnhknWgZPEGrsx6J4vIhuJfD7+3DVJu+AT99uuaOtQ04c6bKbKGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VWKsn2uN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VWKsn2uN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03933C4CEE7; Fri, 25 Jul 2025 15:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753457396; bh=d90PIdH4EAHOfhbktehJQqEWRBDqxYiwE+1HowyahVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VWKsn2uND65rIj6wIDLSfBUAbcn27EZZKf1NiWIsJsSStehIBQHPoqH7LVvyHqGg4 QYfWmeGwekTvvBSpRgytMwfwq4TcgsROwjTYzcFNVcbE3sqkn3Z4NCDH1XWNfZ3RsM +QV+akB8DcJXfblt1gjjQupz5HWcQoluTrvJ7dds= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38461: vsock: Fix transport_* TOCTOU Date: Fri, 25 Jul 2025 17:28:23 +0200 Message-ID: <2025072507-CVE-2025-38461-33b1@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3395; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PgEwXeyYAIxQBjGoYQsdbBj9Ib5cEg4eqJnzRNf6l14=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNi9q/LfV1sl+yLOgE4/zH909pf7wbKthrGuZ/XPeL/ r4IX6+MjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIwy6GBQsSO8/rqUYE3O2x M2jf7CCoIfOGk2E2C9OVgo4VxqoXsm63fMhMCpy2aP8GAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 The Linux kernel CVE team has assigned CVE-2025-38461 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 5.10.240 with commit 8667e8d0eb46bc54fdae30ba2f4786407d3d88eb Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 5.15.189 with commit 36a439049b34cca0b3661276049b84a1f76cc21a Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.1.146 with commit 9ce53e744f18e73059d3124070e960f3aa9902bf Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.6.99 with commit 9d24bb6780282b0255b9929abe5e8f98007e2c6e Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.12.39 with commit ae2c712ba39c7007de63cb0c75b51ce1caaf1da5 Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.15.7 with commit 7b73bddf54777fb62d4d8c7729d0affe6df04477 Issue introduced in 5.5 with commit c0cfa2d8a788fcf45df5bf4070ab2474c88d543a and fixed in 6.16-rc6 with commit 687aa0c5581b8d4aa87fd92973e4ee576b550cdf Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-38461 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/vmw_vsock/af_vsock.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/8667e8d0eb46bc54fdae30ba2f4786407d3d88eb https://git.kernel.org/stable/c/36a439049b34cca0b3661276049b84a1f76cc21a https://git.kernel.org/stable/c/9ce53e744f18e73059d3124070e960f3aa9902bf https://git.kernel.org/stable/c/9d24bb6780282b0255b9929abe5e8f98007e2c6e https://git.kernel.org/stable/c/ae2c712ba39c7007de63cb0c75b51ce1caaf1da5 https://git.kernel.org/stable/c/7b73bddf54777fb62d4d8c7729d0affe6df04477 https://git.kernel.org/stable/c/687aa0c5581b8d4aa87fd92973e4ee576b550cdf