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 A942618A93F for ; Wed, 30 Jul 2025 06:03:36 +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=1753855416; cv=none; b=XnktH1d7oPYIn3GGM++V5OFExPTv+IZyNNWs9Ikf9YRKyWtIXKaNBo0I8yhyoCCrF1m5c5UueQg19vdJAl3MBTrH6MMe9A8d8al/u5Ih/3/q9XHL4uC0SZWGiimb18hlcVTCD265of4FVbESZL44uVvqxXcW3BMULvhGF0pHA88= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753855416; c=relaxed/simple; bh=YTa/M3xZCvkaA/3QuQFYW6TiKA+WFEEe/GwOxB3KZLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HjJ/csKWqLSmGLDpCtussE/aVtcZb+AnDhkuT1ZSZ1SJeJYgd1cQiixMpTxP3SyUo8pGgRYo98lqrf8ujZHY5KAH7Yy6UQcjANlHpizrSFxrFEqRiKFkqRuR6rjNS4Lj4HuaCwS+EiP6wywx6FHI9EJ6pacRW7McUYj1xBTk5Pg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=da/e9BPy; 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="da/e9BPy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1394C4CEE7; Wed, 30 Jul 2025 06:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753855416; bh=YTa/M3xZCvkaA/3QuQFYW6TiKA+WFEEe/GwOxB3KZLs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=da/e9BPyiN01fXhntZ1tCErYzS40sloZyuHCby44hMR8VcwqSOwO1B5T8KjPzJhpF JL30XqomRo3WtJZnYu7NPoY76y9/OOP7Bg1bMoeu9W0VbmtgM9L6+6evVBaobZxRt5 wEhW/THMiLXDZgxzlmi1piC7k/kheLbyBlXUHcBQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38498: do_change_type(): refuse to operate on unmounted/not ours mounts Date: Wed, 30 Jul 2025 08:03:30 +0200 Message-ID: <2025073029-CVE-2025-38498-e3ab@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=3325; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PpzQ3twO0oDYyhSvsYGtj1yxmWuuPXiELQa5rj2x/ew=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmdWzd9m9Vgt+u9X47H/7P+c04EN/wyl1YzuaBl+sTrw nppvuAjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRwi8M88wd0//ruG1PUpUK 7+1mubKQI57jA8Ncye9tznMubc2IrLwVP6UizVdj20FvAA== 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: do_change_type(): refuse to operate on unmounted/not ours mounts Ensure that propagation settings can only be changed for mounts located in the caller's mount namespace. This change aligns permission checking with the rest of mount(2). The Linux kernel CVE team has assigned CVE-2025-38498 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 5.4.295 with commit 787937c4e373f1722c4343e5a5a4eb0f8543e589 Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 5.10.239 with commit c7d11fdf8e5db5f34a6c062c7e6ba3a0971879d2 Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 5.15.186 with commit 432a171d60056489270c462e651e6c3a13f855b1 Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 6.1.142 with commit 064014f7812744451d5d0592f3d2bcd727f2ee93 Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 6.6.94 with commit 4f091ad0862b02dc42a19a120b7048de848561f8 Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 6.12.34 with commit 9c1ddfeb662b668fff69c5f1cfdd9f5d23d55d23 Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 6.15.3 with commit 19554c79a2095ddde850906a067915c1ef3a4114 Issue introduced in 2.6.15 with commit 07b20889e3052c7e77d6a6a54e7e83446eb1ba84 and fixed in 6.16 with commit 12f147ddd6de7382dad54812e65f3f08d05809fc 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-38498 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: fs/namespace.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/787937c4e373f1722c4343e5a5a4eb0f8543e589 https://git.kernel.org/stable/c/c7d11fdf8e5db5f34a6c062c7e6ba3a0971879d2 https://git.kernel.org/stable/c/432a171d60056489270c462e651e6c3a13f855b1 https://git.kernel.org/stable/c/064014f7812744451d5d0592f3d2bcd727f2ee93 https://git.kernel.org/stable/c/4f091ad0862b02dc42a19a120b7048de848561f8 https://git.kernel.org/stable/c/9c1ddfeb662b668fff69c5f1cfdd9f5d23d55d23 https://git.kernel.org/stable/c/19554c79a2095ddde850906a067915c1ef3a4114 https://git.kernel.org/stable/c/12f147ddd6de7382dad54812e65f3f08d05809fc