Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100511; b=VofMaa5F+JbNf655RYXgrDVlxzhK1KMXeGZXmSaWIcjzcIIvpai3DzPtZvTCsUWoN9rw QDVYs+FX7Pby4zHgX4gNqeb+MWwImt2MW4dl/goBuazXwwyQ0SkiPNtRhBpCRSzCnf1rQ m4YaRFTuS9GR8YHiAAv7oSsWWP6ps3lhkDAjMYIaRGdqN2HXaKV4OKzKWcrnotk7ZuSPF Rqn6FPzqRo/rIwCzst/bNt5HuPkml4ZblxnJinrawvE5kpxLOSxjr8T38oxCl1U9+gSJM 8hqMeMJnhrVruBW8Qw6+WzDE+JfT5gP8m6SvNfRLVaFZZMlbu1kd2zaOpxqXsjBtW4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100511; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=Uzei3/cl9gupUnNMf1VtSeyd33/01Daqy3DV/X+vMCE=; b=ZggtIYOVfA050T1ql7X4Toi0dHCXGlxx1ALACDsMctUTSleyebtkxYv251cw+Jj/MoSl c2ShK5Mvzv1BEnMTprRFq+NNY62wOy5+kBuHPGv39UnDnMnR46qfAj8Um95D7Xx1XK7+O hXdLIjG9x8xb95hXfAtOnDbR2RswgS8tRjWRoy1Zb+FF20QPJXhqyMKqyLPAkuk+H8rug /OAitCaNtd9SXmFrACnErvvJ5hjAv9Yf4GICe2TBLNQ/Wiga4Q0wxUH6O60UeAFPJ4Z/o hcUFp2FHwTeeHMeSDxBdwqTucepwTphdR5YOq5XaQlxMmJlvYD3gP1Y2h9fB4uWHCMw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Ci+wTvU5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5724D606A324 for ; Thu, 19 Nov 2026 15:01:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=Ci+wTvU5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 429D41F000C5; Thu, 19 Nov 2026 15:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100511; bh=Uzei3/cl9gupUnNMf1VtSeyd33/01Daqy3DV/X+vMCE=; h=From:To:Cc:Subject:Date:Reply-To; b=Ci+wTvU5M1p7nT2LSe5z48AbY1rW56Sx0ZFQMm7sZPNGpc+2aDeAsEt4waGfme8aT bSmizOCReJopwvi05w2eS2fPgKiXj5Bw3vbmwVWsJPiyV5dYf88ueQ5QU+RCqFVrsu YOOWIy5a6wVxA1r5vq/DRbZwLK6TLWvKPkBk9h7c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99521: rapidio: mport_cdev: fix use-after-free in mport_mm_close() Date: Thu, 19 Nov 2026 15:26:59 +0100 Message-ID: <2026111920-CVE-2026-99521-c74a@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3302; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ylnExzchB5/4zDgyEJV3iUv9VXbQNF5ciJzImd+kJKs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2aZU23md39o51YQ5+dzz/N+Ps5fmmsa186tMKYv8d 2f2CbuojlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIfi/Dgnnf/ppc5i6aWPOn 9OLHvNfpd9KkpjEsmPakOX376SulW73OftjrfeLhvU33JQE= 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: mport_cdev: fix use-after-free in mport_mm_close() A use-after-free vulnerability was identified in mport_mm_close() in drivers/rapidio/devices/rio_mport_cdev.c, identical to the pattern previously addressed in dma_req_free(). This is observable from userspace when an application creates an mmap mapping via the RapidIO character device and subsequently unmaps it (or terminates, triggering exit_mmap()). During munmap, mport_mm_close() is invoked and drops the mapping reference via kref_put(). If kref_put() drops the last reference, mport_release_mapping() is called, which frees the underlying rio_mport_mapping structure. The subsequent mutex_unlock() then dereferences map->md to unlock buf_mutex, leading to a use-after-free: mport_mm_close() -> mutex_lock(&map->md->buf_mutex); ... -> kref_put(&map->ref, mport_release_mapping); /* map is freed */ -> mutex_unlock(&map->md->buf_mutex); /* UAF: map used */ Fix this by caching map->md before kref_put() and using the cached pointer for mutex unlocking, ensuring that freed memory is not accessed. The Linux kernel CVE team has assigned CVE-2026-99521 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit e8de370188d098bb49483c287b44925957c3c9b6 and fixed in 6.12.117 with commit df3008607f2c3343f7ad34001af656a185c123ee Issue introduced in 4.6 with commit e8de370188d098bb49483c287b44925957c3c9b6 and fixed in 6.18.61 with commit 48157350b24ac0343374ee3fa34188d7ff30be81 Issue introduced in 4.6 with commit e8de370188d098bb49483c287b44925957c3c9b6 and fixed in 7.3.2 with commit a0aaf59e7a86312c0272e36f19fb507f91405209 Issue introduced in 4.6 with commit e8de370188d098bb49483c287b44925957c3c9b6 and fixed in 7.4-rc1 with commit 0f2cd84858e67cf8e02438bf28243bcdc67aa49a 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-99521 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/devices/rio_mport_cdev.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/df3008607f2c3343f7ad34001af656a185c123ee https://git.kernel.org/stable/c/48157350b24ac0343374ee3fa34188d7ff30be81 https://git.kernel.org/stable/c/a0aaf59e7a86312c0272e36f19fb507f91405209 https://git.kernel.org/stable/c/0f2cd84858e67cf8e02438bf28243bcdc67aa49a