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 742F93E314C for ; Fri, 8 May 2026 13:14:06 +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=1778246046; cv=none; b=ruUnC5uGrn9fGoAXuQEwGf1xU86l2G4PGc/4jLTv+SSgz4gbdwMPwxgPWBs6M/im9wo/I5h6B56qTOYYkt6AA0WvkygCrgjXMr7PfjKfPrSMmyS3s+doXllfnUiQ6WqjVYtTBJZJG0Sy1+CoqvFGlbXD20UiKxOwNbgps6iCRMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778246046; c=relaxed/simple; bh=YXTib8fwbz0DdT1PZ8PS3v7CRCZ8I41X3qSUrZRpySE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V8rbNjhKwfMNeuBPXdU3+aSsak8uTbmZGLYUYxxRR5ceJAchpB2yK5yMTR0GBSXzG+E3Q/ol83wOmcKRbNB9PFUPI7ba+Mk5cetyBEGQY7boSZVrvUBwl61nRtTFowTmW2v/y94Yj53ro2yFzgk8O4jXchL9BJ/U4kNHaoyf4cw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tiAr76yv; 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="tiAr76yv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7729C2BCB8; Fri, 8 May 2026 13:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778246046; bh=YXTib8fwbz0DdT1PZ8PS3v7CRCZ8I41X3qSUrZRpySE=; h=From:To:Cc:Subject:Date:Reply-To:From; b=tiAr76yvOn6JaeT+En0DVScCq/ci981RymEjWZ8czjkFB53nJ+ROOiootpQxlTkrD +oBV63Xl8xmP3pQE6YvLbV5QElwiZrqI3uv0xxQRkd7zZ7xpAdbdiEwgTJ4/3CwD3N DL1bNRoaiACIBFeG1EcQTcMT7nbQYO5gWulpBPWg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43295: rapidio: replace rio_free_net() with kfree() in rio_scan_alloc_net() Date: Fri, 8 May 2026 15:12:00 +0200 Message-ID: <2026050854-CVE-2026-43295-f6c5@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3323; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q6vxYk2LphpPn4jCDkqSymI0sNRzMqLDaXtSfeMNJjE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/H0rt2rpUeEpJx6WNdWL1D19aH0h+Ljk/t6rj0M2N8 7IObfxb0xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATcd/AsODStxUsSUlOry/V J7+WDD+V+67m01+G+SlPy531PrYo2W6r/vy9Yl78i5+hUQA= 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: rapidio: replace rio_free_net() with kfree() in rio_scan_alloc_net() When idtab allocation fails, net is not registered with rio_add_net() yet, so kfree(net) is sufficient to release the memory. Set mport->net to NULL to avoid dangling pointer. The Linux kernel CVE team has assigned CVE-2026-43295 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 5.10.252 with commit 83e579c2f7f6b1706323d744833b26470049dcc2 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 5.15.202 with commit 34a4f233df5eef5f1f113b2196142c0568b387f8 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.1.165 with commit fecf292c6691970897396190855aa38826b7104e Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.6.128 with commit 649c2e853608cad0b0cba545555d168e67f094b3 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.12.75 with commit 87272e3e70ec4b666885bd520ff77463c11444ef Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.18.16 with commit e5a732bfe29451e16abf9c6f07ce5948b22f3d59 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 6.19.6 with commit 78812c4fb7ed242d5961bf1337a49070d6487c94 Issue introduced in 4.6 with commit e6b585ca6e81badeb3d42db3cc408174f2826034 and fixed in 7.0 with commit 666183dcdd9ad3b8156a1df7f204f728f720380f 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-2026-43295 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/83e579c2f7f6b1706323d744833b26470049dcc2 https://git.kernel.org/stable/c/34a4f233df5eef5f1f113b2196142c0568b387f8 https://git.kernel.org/stable/c/fecf292c6691970897396190855aa38826b7104e https://git.kernel.org/stable/c/649c2e853608cad0b0cba545555d168e67f094b3 https://git.kernel.org/stable/c/87272e3e70ec4b666885bd520ff77463c11444ef https://git.kernel.org/stable/c/e5a732bfe29451e16abf9c6f07ce5948b22f3d59 https://git.kernel.org/stable/c/78812c4fb7ed242d5961bf1337a49070d6487c94 https://git.kernel.org/stable/c/666183dcdd9ad3b8156a1df7f204f728f720380f