Skip to contentSkip to conversation

CVE-2025-37790: net: mctp: Set SOCK_RCU_FREE

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

net: mctp: Set SOCK_RCU_FREE

Bind lookup runs under RCU, so ensure that a socket doesn't go away in the middle of a lookup.

The Linux kernel CVE team has assigned CVE-2025-37790 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.15 with commit 833ef3b91de692ef33b800bca6b1569c39dece74 and fixed in 6.1.135 with commit b9764ebebb007249fb733a131b6110ff333b6616
	Issue introduced in 5.15 with commit 833ef3b91de692ef33b800bca6b1569c39dece74 and fixed in 6.6.88 with commit a8a3b61ce140e2b0a72a779e8d70f60c0cf1e47a
	Issue introduced in 5.15 with commit 833ef3b91de692ef33b800bca6b1569c39dece74 and fixed in 6.12.25 with commit 3f899bd6dd56ddc46509b526e23a8f0a97712a6d
	Issue introduced in 5.15 with commit 833ef3b91de692ef33b800bca6b1569c39dece74 and fixed in 6.14.4 with commit e3b5edbdb45924a7d4206d13868a2aac71f1e53d
	Issue introduced in 5.15 with commit 833ef3b91de692ef33b800bca6b1569c39dece74 and fixed in 6.15-rc3 with commit 52024cd6ec71a6ca934d0cc12452bd8d49850679

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-37790

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/mctp/af_mctp.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/b9764ebebb007249fb733a131b6110ff333b6616
	https://git.kernel.org/stable/c/a8a3b61ce140e2b0a72a779e8d70f60c0cf1e47a
	https://git.kernel.org/stable/c/3f899bd6dd56ddc46509b526e23a8f0a97712a6d
	https://git.kernel.org/stable/c/e3b5edbdb45924a7d4206d13868a2aac71f1e53d
	https://git.kernel.org/stable/c/52024cd6ec71a6ca934d0cc12452bd8d49850679