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 123632C21F6 for ; Sat, 16 Aug 2025 11:22:53 +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=1755343374; cv=none; b=BZmXBTPq7mYhiwjbpRC6GA2Ok9g1EQAOpSzaYcMfXe/1cVeZJcx9JYJDeAFb3DbNFV7ICZ9FPMUqlDFJAXF1xzhca9V+DFSbtjfcM2hezYZ/1mR+2ALYMDU0Rs/wGVYYfeIIEcXSsAyaiJ5ygUOOWZprkiHKUk2onbocB8NADQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755343374; c=relaxed/simple; bh=5snpz1W2MevN6dChpM5DO4xdKzr+C7ADE3pGHOiPXGg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rmdgh3a3p54PLLZbkinfZGlydbEGqktuWcdhXgFIUg1qZcsgi0IcUTI+zp4qdHelyMV3i4VfF2Of9BlFgr9pcbyQt8s0Uw9IZlaY+vvPQMopkA54NLE6DcAOhsVTjEMUnvxOL7sfDgdcCiOEtmhDC2ZqOFW7yKOpQqs3ERn9B8Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pwPGFiVj; 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="pwPGFiVj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A016C4CEEF; Sat, 16 Aug 2025 11:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755343373; bh=5snpz1W2MevN6dChpM5DO4xdKzr+C7ADE3pGHOiPXGg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pwPGFiVjsOFhoToD2FrMWAsqIVKYNr84PT8KEEQq3Qyj2JpBol2B0t9RXGcq0PPsX GWTTElFh6AHFY7mnf2vgWjhMMmYYF242/UQCRZo+drM+1p366OsVdL5mr41RJBBErD sc/JQnOyP6CItTUro4Q1X6wQrl3zljQFhm7JnRKc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38546: atm: clip: Fix memory leak of struct clip_vcc. Date: Sat, 16 Aug 2025 13:22:32 +0200 Message-ID: <2025081627-CVE-2025-38546-f8fa@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=3571; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=D9uvAdCZAFZPXc8fetQ6nVpgs28EBAOicINCNv4lNhQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLMj/3HM6Kumt6tKup3F4/eGVi+F2uWe+7+jdEJWdud +Cx+SrWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMxfsYwvyg5WPZ+z+28Fb9f uKimVW0MKb6znmF+ul8v17/qxZcXqm3cH++Utj7udZUoAA== 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 memory leak of struct clip_vcc. ioctl(ATMARP_MKIP) allocates struct clip_vcc and set it to vcc->user_back. The code assumes that vcc_destroy_socket() passes NULL skb to vcc->push() when the socket is close()d, and then clip_push() frees clip_vcc. However, ioctl(ATMARPD_CTRL) sets NULL to vcc->push() in atm_init_atmarp(), resulting in memory leak. Let's serialise two ioctl() by lock_sock() and check vcc->push() in atm_init_atmarp() to prevent memleak. The Linux kernel CVE team has assigned CVE-2025-38546 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.4.296 with commit 2fb37ab3226606cbfc9b2b6f9e301b0b735734c5 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.240 with commit 9e4dbeee56f614e3f1e166e5d0655a999ea185ef Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.189 with commit 1c075e88d5859a2c6b43b27e0e46fb281cef8039 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.146 with commit 0c17ff462d98c997d707ee5cf4e4a9b1b52b9d90 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.99 with commit 1fb9fb5a4b5cec2d56e26525ef8c519de858fa60 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.39 with commit 9f771816f14da6d6157a8c30069091abf6b566fb Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.15.7 with commit cb2e4a2f8f268d8fba6662f663a2e57846f14a8d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.16 with commit 62dba28275a9a3104d4e33595c7b3328d4032d8d 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-38546 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/2fb37ab3226606cbfc9b2b6f9e301b0b735734c5 https://git.kernel.org/stable/c/9e4dbeee56f614e3f1e166e5d0655a999ea185ef https://git.kernel.org/stable/c/1c075e88d5859a2c6b43b27e0e46fb281cef8039 https://git.kernel.org/stable/c/0c17ff462d98c997d707ee5cf4e4a9b1b52b9d90 https://git.kernel.org/stable/c/1fb9fb5a4b5cec2d56e26525ef8c519de858fa60 https://git.kernel.org/stable/c/9f771816f14da6d6157a8c30069091abf6b566fb https://git.kernel.org/stable/c/cb2e4a2f8f268d8fba6662f663a2e57846f14a8d https://git.kernel.org/stable/c/62dba28275a9a3104d4e33595c7b3328d4032d8d