CVE-2026-99521

rapidio: mport_cdev: fix use-after-free in mport_mm_close()

No CVSS score yet EPSS 0.22%

Published 19 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99521

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99521 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.0% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 4fd7df6e7040fad99fee8989783748afefcee6ce
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 1c66d8e8fc67f2471675e361b16200d419e40ef3
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 40f37f710ef220286600bae75456977f3629629f
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 3dc409ad1865d68f884611f7503c409071499067
affected from e8de370188d098bb49483c287b44925957c3c9b6, before df3008607f2c3343f7ad34001af656a185c123ee
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 48157350b24ac0343374ee3fa34188d7ff30be81
affected from e8de370188d098bb49483c287b44925957c3c9b6, before a0aaf59e7a86312c0272e36f19fb507f91405209
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 0f2cd84858e67cf8e02438bf28243bcdc67aa49a
Other versions: unaffected
Linux
affected 4.6
unaffected before 4.6
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.61 up to and including 6.18.*
unaffected from 7.3.2 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99521 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99521

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-99521
trivy image --scanners vuln IMAGE | grep CVE-2026-99521

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-99521 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.