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 A4CE42BB17 for ; Fri, 25 Jul 2025 15:30:20 +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=1753457420; cv=none; b=FFOXjUiMHEJEOKay9PORODhBUpuad6bWQqdxJ4QMJ8SOSU5GRn40OiAgKPPHU3dMO1vLsPgoXOmuAeA9xQYwpK7AqlcpMGlNjwVQNO8tM/LCuxm9bTCpF67fgPR/S6Hxh4up/8FpZQLAbnxe1SM6l97kmmOPnYCDKlTD3jrWCQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753457420; c=relaxed/simple; bh=CkLHTeCEub7XLTlQSSWrsu+qvS/AA8VF6Gwblmt8C4k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=arXzgrmGZft5h4BlyQm9l3V+IcOmr+8ujReLaiwA2mYrwPS2nMYPEix4/6auQjZWMDhs8+xeEquPPIdpPBloeMob+yj7LPrHFvX2isbjgOwoK0C1XAspm+OYMFPBGNDbvb1z5kD9utzxZuU5l+Ly8R3wipYBFF8BOSuXgybMBiM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=10Yy27oj; 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="10Yy27oj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12BADC4CEE7; Fri, 25 Jul 2025 15:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753457420; bh=CkLHTeCEub7XLTlQSSWrsu+qvS/AA8VF6Gwblmt8C4k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=10Yy27ojYW5cLj206TFFeBuA8ch9Olwtevei+9HSnbNfwW/ea/qr9Aj9vJ/5ut01i DlAqmxXak94PbNyGdPba7OLM5wPOmCnzAKb5uHcOiXyeuDi98HPSj2gMlT97Km77vI Hs18qBCbyfDjVqGIn9u4xE1bcVJ+2nLY1tngaTJU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38460: atm: clip: Fix potential null-ptr-deref in to_atmarpd(). Date: Fri, 25 Jul 2025 17:28:22 +0200 Message-ID: <2025072507-CVE-2025-38460-40fb@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=3527; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=p17fxkDvmOX0R2Ce8fSNLgXADlRmtOqRADGVm4KF9Hw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNi9rjz3zdPXvjGemscLuENJG+Roeyx4ZfnXbK8+2aU jJTo6CoI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYS8ZdhwQWe1rli/GYz3uU8 E/19ryj/dezqPoYFTR+6DE/v5VW9ysMnwqRcGdqmnfkBAA== 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: atm: clip: Fix potential null-ptr-deref in to_atmarpd(). atmarpd is protected by RTNL since commit f3a0592b37b8 ("[ATM]: clip causes unregister hang"). However, it is not enough because to_atmarpd() is called without RTNL, especially clip_neigh_solicit() / neigh_ops->solicit() is unsleepable. Also, there is no RTNL dependency around atmarpd. Let's use a private mutex and RCU to protect access to atmarpd in to_atmarpd(). The Linux kernel CVE team has assigned CVE-2025-38460 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.4.296 with commit a4c5785feb979cd996a99cfaad8bf353b2e79301 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.240 with commit 70eac9ba7ce25d99c1d99bbf4ddb058940f631f9 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.189 with commit 3251ce3979f41bd228f77a7615f9dd616d06a110 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.146 with commit ee4d9e4ddf3f9c4ee2ec0a3aad6196ee36d30e57 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.99 with commit 06935c50cfa3ac57cce80bba67b6d38ec1406e92 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.39 with commit 36caab990b69ef4eec1d81c52a19f080b7daa059 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.15.7 with commit f58e4270c73e7f086322978d585ea67c8076ce49 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.16-rc6 with commit 706cc36477139c1616a9b2b96610a8bb520b7119 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-38460 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/atm/clip.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/a4c5785feb979cd996a99cfaad8bf353b2e79301 https://git.kernel.org/stable/c/70eac9ba7ce25d99c1d99bbf4ddb058940f631f9 https://git.kernel.org/stable/c/3251ce3979f41bd228f77a7615f9dd616d06a110 https://git.kernel.org/stable/c/ee4d9e4ddf3f9c4ee2ec0a3aad6196ee36d30e57 https://git.kernel.org/stable/c/06935c50cfa3ac57cce80bba67b6d38ec1406e92 https://git.kernel.org/stable/c/36caab990b69ef4eec1d81c52a19f080b7daa059 https://git.kernel.org/stable/c/f58e4270c73e7f086322978d585ea67c8076ce49 https://git.kernel.org/stable/c/706cc36477139c1616a9b2b96610a8bb520b7119