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 62B7E217704 for ; Mon, 20 Oct 2025 15:27:29 +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=1760974049; cv=none; b=k7edpgPSUbO6J0bG3C2b1iB6/Gv4JddffQnGafWR+E87nV00CJVE3JGdkdakmWgIh/qGvFCXSeAcoDZ1H8iAJzfhmLcDRTYw7Hk5ztt0ky9QsYeNNuJxRtE95Z96gqG1/xY4GMTV/+KcCXmib68TGEIjZqI6wGMuIZlCE1xvZ3U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760974049; c=relaxed/simple; bh=AcK0t+WV7kzzmLdzkFo+dsEO8SjkylkFkRLQsqLSUYY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h5sN7PKwjMB0h4jsW/B6tTOqnIof4vIP5z9wsCBwGsWloIsGpFrX27PAQ9026aEx1Eiq9kR1jO9LQh1gkLAtfZRghIRarxCNcYzAoVb1wk7+k3uSnYcDfAcEDt5069Ae1pG9TX5BmOUmhT5CgfGK+6Jux8RbeYtnrnC9oy1Wtlw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ubcEXMjm; 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="ubcEXMjm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFFBFC4CEF9; Mon, 20 Oct 2025 15:27:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760974049; bh=AcK0t+WV7kzzmLdzkFo+dsEO8SjkylkFkRLQsqLSUYY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ubcEXMjmGXLLXTZD+FaohjNyebz0mfcvfpOG3VC1mY2A690yPo44MBtX1OEbtpntr z5Pl4tV1cuLKHjLtaZ0JrcpSUNw59+gavd7m/t/bFL1JglMPrajW8m1oJB4r6gmhoM eypX4QvttsZveA2xt1gwgjErCZuJVcZwencZGzC0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40010: afs: Fix potential null pointer dereference in afs_put_server Date: Mon, 20 Oct 2025 17:27:06 +0200 Message-ID: <2025102002-CVE-2025-40010-5f54@gregkh> X-Mailer: git-send-email 2.51.1.dirty 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=2641; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5UjG/f2/OCuIt/+bdWs2W9EaPF5wO9JeHvgx54swJ2Y=; b=kA0DAAIRMUfUDdst+ykByyZiAGj2VMagl/fuqg48kJpf3sIFhMnYbekoBesMlK8cbSRQ1wrG9 IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmj2VMYACgkQMUfUDdst+yl4QwCdFt/q VN90h63PvUq1INLtTJH4eOsAn3EKe3Rg0EMGZkuPokjeEaNIPspV 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: afs: Fix potential null pointer dereference in afs_put_server afs_put_server() accessed server->debug_id before the NULL check, which could lead to a null pointer dereference. Move the debug_id assignment, ensuring we never dereference a NULL server pointer. The Linux kernel CVE team has assigned CVE-2025-40010 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 2757a4dc184997c66ef1de32636f73b9f21aac14 and fixed in 6.1.155 with commit 7b8381f3c405b864a814d747e526e078c3ef4bc2 Issue introduced in 6.0 with commit 2757a4dc184997c66ef1de32636f73b9f21aac14 and fixed in 6.6.109 with commit cab278cead49a547ac84c3e185f446f381303eae Issue introduced in 6.0 with commit 2757a4dc184997c66ef1de32636f73b9f21aac14 and fixed in 6.12.50 with commit a13dbc5e20c7284b82afe6f08debdecf51d2ca04 Issue introduced in 6.0 with commit 2757a4dc184997c66ef1de32636f73b9f21aac14 and fixed in 6.16.10 with commit 41782c44bb8431c43043129ae42f2ba614938479 Issue introduced in 6.0 with commit 2757a4dc184997c66ef1de32636f73b9f21aac14 and fixed in 6.17 with commit 9158c6bb245113d4966df9b2ba602197a379412e 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-40010 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/afs/server.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/7b8381f3c405b864a814d747e526e078c3ef4bc2 https://git.kernel.org/stable/c/cab278cead49a547ac84c3e185f446f381303eae https://git.kernel.org/stable/c/a13dbc5e20c7284b82afe6f08debdecf51d2ca04 https://git.kernel.org/stable/c/41782c44bb8431c43043129ae42f2ba614938479 https://git.kernel.org/stable/c/9158c6bb245113d4966df9b2ba602197a379412e