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 C623B2153FB for ; Fri, 22 Aug 2025 16:02:23 +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=1755878543; cv=none; b=c+j70npSaAH4YH66lLRUGLvDDxSUcWc+eJ2OWfGU3Cbh4wUIlrEMqeyGBlkZBdDjya/+zFib87SL6NaWEVmYK2k/dW6JlI1WKZkmTajiXCAxIeGTU73NcVCaDUt/3aZRgVpM4YjJIX7AGRLc91eL5jOK14b+NhVFVMS2t0Y6omc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878543; c=relaxed/simple; bh=g18f6lCKHaqo3CftMfNu40NLHa62rJgpsUszown+Jk4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Om/5cjUXlZCH+6P7lqdn8puvO9p+o2+boaZsF6dZkpar3Lg5Whf3PS9iLExMpw98y1KrsYpResi4sKKwPuMv+knzlEVlnBNm3bcOyqlJFNTufvAANuMJejQ8cYDo2O1utZmmyw6fXp5GKYf948jH3xxPw2/+r6WEdU4jV8FVlg4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cghHMKLL; 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="cghHMKLL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32507C4CEED; Fri, 22 Aug 2025 16:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878543; bh=g18f6lCKHaqo3CftMfNu40NLHa62rJgpsUszown+Jk4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cghHMKLLcC5LH/2ORUqX73rVB1nsxvSR7cNtXIVk2e74jbvmeDwZoL7X3Kgip3bER PTHLmz+HrI7NPfSDYodXITDgDnZYhPhZEM9CLz8041VvP4eCgwt0M9gjSajyaZIrhT /9ppxAPyikMIcOL4Cgt4ol7APmHMIwZ4gQXPG5uk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38653: proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al Date: Fri, 22 Aug 2025 18:01:01 +0200 Message-ID: <2025082238-CVE-2025-38653-35ba@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=2990; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3bJCIp0Zt96y/csfmAMHcswtWEJTaUrFkxwUIrZUleQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpqhduHN7i+6PNUdZSqtY/K0+r1ERecYZsLje2aWAu 9Vx7bd7HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRifMZFsyID2nNVjGb9Pm0 dgrX5/veN1h0eBjmWadXLEpRLenq37SdfQ1XqNJ0+4AvAA== 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: proc: use the same treatment to check proc_lseek as ones for proc_read_iter et.al Check pde->proc_ops->proc_lseek directly may cause UAF in rmmod scenario. It's a gap in proc_reg_open() after commit 654b33ada4ab("proc: fix UAF in proc_get_inode()"). Followed by AI Viro's suggestion, fix it in same manner. The Linux kernel CVE team has assigned CVE-2025-38653 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 3f61631d47f115b83c935d0039f95cb68b0c8ab7 and fixed in 6.1.148 with commit c35b0feb80b48720dfbbf4e33759c7be3faaebb6 Issue introduced in 6.0 with commit 3f61631d47f115b83c935d0039f95cb68b0c8ab7 and fixed in 6.6.102 with commit 33c778ea0bd0fa62ff590497e72562ff90f82b13 Issue introduced in 6.0 with commit 3f61631d47f115b83c935d0039f95cb68b0c8ab7 and fixed in 6.12.42 with commit fc1072d934f687e1221d685cf1a49a5068318f34 Issue introduced in 6.0 with commit 3f61631d47f115b83c935d0039f95cb68b0c8ab7 and fixed in 6.15.10 with commit d136502e04d8853a9aecb335d07bbefd7a1519a8 Issue introduced in 6.0 with commit 3f61631d47f115b83c935d0039f95cb68b0c8ab7 and fixed in 6.16.1 with commit 1fccbfbae1dd36198dc47feac696563244ad81d3 Issue introduced in 6.0 with commit 3f61631d47f115b83c935d0039f95cb68b0c8ab7 and fixed in 6.17-rc1 with commit ff7ec8dc1b646296f8d94c39339e8d3833d16c05 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-38653 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/proc/generic.c fs/proc/inode.c fs/proc/internal.h include/linux/proc_fs.h 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/c35b0feb80b48720dfbbf4e33759c7be3faaebb6 https://git.kernel.org/stable/c/33c778ea0bd0fa62ff590497e72562ff90f82b13 https://git.kernel.org/stable/c/fc1072d934f687e1221d685cf1a49a5068318f34 https://git.kernel.org/stable/c/d136502e04d8853a9aecb335d07bbefd7a1519a8 https://git.kernel.org/stable/c/1fccbfbae1dd36198dc47feac696563244ad81d3 https://git.kernel.org/stable/c/ff7ec8dc1b646296f8d94c39339e8d3833d16c05