From mboxrd@z Thu Jan 1 00:00:00 1970 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 C9D501494D9 for ; Thu, 27 Feb 2025 02:09:03 +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=1740622143; cv=none; b=NQtDyHUtHjVYGECoi19HsdLQCzA/2RkAhhHg51M58xpH408bKER+jP0UlZGMQ0pcmeygXODbJSHWuPw6CyplWmfbRIKQZ/e+XF80oe6e6KbyOAbRSucn1+q5FyvZjpV/dhRCSb1eVVcwetQ95JLtPM9Hq9vx9ezIgiuK7H/VyHg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622143; c=relaxed/simple; bh=DLu2MNve7ZJqKUku2JhUhbLWwiYj+tFM7VOzp7ghz3A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qLHnDjSqYm+nAIse01T59UEEYqJ4dQZQssRk8Gntk9CEZlG1rEtKqoyKWdsPL/S5KTJ4ktEDWZffP7zCnvC3Sg8243CJxDc7nzW4Scj9uq+omScLdYm48CgBuTYmHd6acrKPS82/mAwgYa6u7lO6y4flOXOzXWncdncKqqYnpHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zNF4EbLr; 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="zNF4EbLr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 442AFC4CED6; Thu, 27 Feb 2025 02:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622143; bh=DLu2MNve7ZJqKUku2JhUhbLWwiYj+tFM7VOzp7ghz3A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zNF4EbLrTgski7uCGitckCrT48lVxje3RabTRdhARY7NKnntY/T+X5Ki/Xz53fkpH NDPN7LtpD+cXSXFepGEqm4/1qhyDX3+Kz5ZNuTXgC+fWRD2g3yWIrmx2wg/N3Ph5/B s4hLXy8z4ROr8Hsfkalzytf6tVPf5s/2is3XyyEg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21711: net/rose: prevent integer overflows in rose_setsockopt() Date: Wed, 26 Feb 2025 18:06:06 -0800 Message-ID: <2025022644-CVE-2025-21711-9e79@gregkh> X-Mailer: git-send-email 2.48.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=2833; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DLu2MNve7ZJqKUku2JhUhbLWwiYj+tFM7VOzp7ghz3A=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T1R0fd74I33vZYPWMywBAqc7twfH1bnYRJdkzt67U XuRaLhERywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk7WuG+Tm9SYk/Qp/l/D36 1EyvebusaPL2BQzznX8a3z7GemjyvdStPb8X3BOwqXM7AQA= 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/rose: prevent integer overflows in rose_setsockopt() In case of possible unpredictably large arguments passed to rose_setsockopt() and multiplied by extra values on top of that, integer overflows may occur. Do the safest minimum and fix these issues by checking the contents of 'opt' and returning -EINVAL if they are too large. Also, switch to unsigned int and remove useless check for negative 'opt' in ROSE_IDLE case. The Linux kernel CVE team has assigned CVE-2025-21711 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.129 with commit 9bdee49ad6bbd26ab5e13cc6731e54fb1b6c1dca Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.76 with commit 352daa50946c3bbb662432e8daf54d6760796589 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.13 with commit d08f4074f9c69f7e95502587eb1b258a965ba7f0 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.13.2 with commit e5338930a29d0ab2a5af402f5f664aeba0d1a676 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.14-rc1 with commit d640627663bfe7d8963c7615316d7d4ef60f3b0b 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-21711 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/rose/af_rose.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/9bdee49ad6bbd26ab5e13cc6731e54fb1b6c1dca https://git.kernel.org/stable/c/352daa50946c3bbb662432e8daf54d6760796589 https://git.kernel.org/stable/c/d08f4074f9c69f7e95502587eb1b258a965ba7f0 https://git.kernel.org/stable/c/e5338930a29d0ab2a5af402f5f664aeba0d1a676 https://git.kernel.org/stable/c/d640627663bfe7d8963c7615316d7d4ef60f3b0b