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 880EB23F422 for ; Thu, 3 Apr 2025 07:19:50 +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=1743664790; cv=none; b=MdZnycQ1lmmIyf+XcJmIGsIPmNjtov2sn8KpErgehoSO1tXDH//CShkiYQJ4sMEC2ciZdHT6ILcfXY6Mi7LixQmvSgkIIMaQ0o0onV1MtrQszns/KhRvsfptONeWZ5lSh9krUjpSyRTWS2UaEybfBRiAOBwhm33urs2/bLYZL/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743664790; c=relaxed/simple; bh=cBoxT+8XsfQ8YVNZSCcVVOVE+z0L58ABkgE5CxnyGds=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S7tHKdMrG1cKDg2n3rZ+tjBVsdzj3MPy7218Ee1fOZnZ76xovHBTBQ9JfSeWzfiqWnQ1fY1byvVz73HJoMJgnL5g+FjUx5sHglAMM2cjGpIj0eLQn8UBmDlWCPDB+T1HXgxAadmzkzei/4ZU+oCttqS3O9/LJkXaxWAVVvTiWng= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZGXyESUD; 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="ZGXyESUD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2159FC4CEE3; Thu, 3 Apr 2025 07:19:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743664790; bh=cBoxT+8XsfQ8YVNZSCcVVOVE+z0L58ABkgE5CxnyGds=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZGXyESUDBCsboJJnOrheWXR/wTGHhaJEjM10EQowcEDSC7qyEg7hdt5dIUbnkIb1w jYfbZDGXvA5kogljpK8QnnBKkchOLzxr+kEhc/VDXflXMwMYt6nbcheFsT1Vx/5Hyw RVvvpv7Mcz1lt4NtCsTWdnqJBqaa/pPDaHSAH4xQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22004: net: atm: fix use after free in lec_send() Date: Thu, 3 Apr 2025 08:17:56 +0100 Message-ID: <2025040349-CVE-2025-22004-64f9@gregkh> X-Mailer: git-send-email 2.49.0 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=2538; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cBoxT+8XsfQ8YVNZSCcVVOVE+z0L58ABkgE5CxnyGds=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnvzGQdZH5qvrcrKDzyx7JyXz6HjOCT97kh7isnxKlNX Xqo71RTRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkyW2GBdsvMLBFqVUbWb9d z6ulsGm5vo/BO4a5All65S7R29Ubdk6d3sWz96TFtZA+AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: net: atm: fix use after free in lec_send() The ->send() operation frees skb so save the length before calling ->send() to avoid a use after free. The Linux kernel CVE team has assigned CVE-2025-22004 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.132 with commit 51e8be9578a2e74f9983d8fd8de8cafed191f30c Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.85 with commit 9566f6ee13b17a15d0a47667ad1b1893c539f730 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.21 with commit 326223182e4703cde99fdbd36d07d0b3de9980fb Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.13.9 with commit f3271f7548385e0096739965961c7cbf7e6b4762 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.14 with commit f3009d0d6ab78053117f8857b921a8237f4d17b3 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-22004 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/lec.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/51e8be9578a2e74f9983d8fd8de8cafed191f30c https://git.kernel.org/stable/c/9566f6ee13b17a15d0a47667ad1b1893c539f730 https://git.kernel.org/stable/c/326223182e4703cde99fdbd36d07d0b3de9980fb https://git.kernel.org/stable/c/f3271f7548385e0096739965961c7cbf7e6b4762 https://git.kernel.org/stable/c/f3009d0d6ab78053117f8857b921a8237f4d17b3