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 0434F20B7E2 for ; Tue, 1 Apr 2025 15:42:13 +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=1743522133; cv=none; b=fIww+nO47q4gSFwFSgZbmXF2TwGf09ZZyD3jR0G22uWiQBJq3dGvAQWhWaqPvShKkCrI+pXw3tu70p05sJouRK7eK6ZR7uwrZCkG2eWpquoxZxMZviaxyDT8kxF4xv780Bo/BQT/88pSY29etqqssEcYUrAWTRZRkPicknPRxCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522133; c=relaxed/simple; bh=JnDUhTH6ZPvDKV7BGdaEPcTaeD+vSGrfHaMzYRDrb3o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YmbLoaJJT8NFdPe9bK0vCjvSD3SiYVSWHjGF+Jw0UX3YETDnBe9Uffi8a+zpil8TAllOIxsA4uLiVHuouiHl9fUfYh+vv5DuwhllYqC6KnuK+vvJ9TJ3jayTOxaMY0RDUUBKMTFtDmvIRtL3/lLr1rh+zTscWBEtDF9v3HWQFTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2NwSzooO; 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="2NwSzooO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90765C4CEE4; Tue, 1 Apr 2025 15:42:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522132; bh=JnDUhTH6ZPvDKV7BGdaEPcTaeD+vSGrfHaMzYRDrb3o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2NwSzooOtMmygtFiE9wiN3mgDPWDI4I7x4UY6msHFI3TTrpb/ShMNmNyPowgMtonx UuXIRHb8GYZ0ROzsXOIqGA/q5NhfLz/+BflSwL4DBWEFWqYNMo6ysslfONH2VgH+In hJr+S3uOWRFZ50lPGCjevZroxdCNkFsR2GsreFss= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21935: rapidio: add check for rio_add_net() in rio_scan_alloc_net() Date: Tue, 1 Apr 2025 16:39:59 +0100 Message-ID: <2025040134-CVE-2025-21935-4288@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=3310; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JnDUhTH6ZPvDKV7BGdaEPcTaeD+vSGrfHaMzYRDrb3o=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOLZ9tHa7y1hf6iNzsP7c4cdn18VXGeXsWFKSGh3Mf XCOSu6FjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI7RMMC5auFVQqNT6i4O0k XvG7PG2rOLNzKcOC01uv2Me8vvLneUNZgoBhk2vkhDMKAA== 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: rapidio: add check for rio_add_net() in rio_scan_alloc_net() The return value of rio_add_net() should be checked. If it fails, put_device() should be called to free the memory and give up the reference initialized in rio_add_net(). The Linux kernel CVE team has assigned CVE-2025-21935 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 5.4.291 with commit 6d22953c4a183d0b7fdf34d68c5debd16da6edc5 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 5.10.235 with commit 4f3509cfcc02e9d757f2714bb7dbbeec35de6fa7 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 5.15.179 with commit 181d4daaefb3bceeb2f2635ba9f3781eeda9e550 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.1.131 with commit ad82be4298a89a9ae46f07128bdf3d8614bce745 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.6.83 with commit e6411c3b9512dba09af7d014d474516828c89706 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.12.19 with commit c332f3e2df0fcae5a45fd55cc18902fb1e4825ca Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.13.7 with commit a0d069ccc475abaaa79c6368ee27fc0b5912bea8 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.14 with commit e842f9a1edf306bf36fe2a4d847a0b0d458770de 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-21935 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: drivers/rapidio/rio-scan.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/6d22953c4a183d0b7fdf34d68c5debd16da6edc5 https://git.kernel.org/stable/c/4f3509cfcc02e9d757f2714bb7dbbeec35de6fa7 https://git.kernel.org/stable/c/181d4daaefb3bceeb2f2635ba9f3781eeda9e550 https://git.kernel.org/stable/c/ad82be4298a89a9ae46f07128bdf3d8614bce745 https://git.kernel.org/stable/c/e6411c3b9512dba09af7d014d474516828c89706 https://git.kernel.org/stable/c/c332f3e2df0fcae5a45fd55cc18902fb1e4825ca https://git.kernel.org/stable/c/a0d069ccc475abaaa79c6368ee27fc0b5912bea8 https://git.kernel.org/stable/c/e842f9a1edf306bf36fe2a4d847a0b0d458770de