# CVE-2026-99521: rapidio: mport\_cdev: fix use-after-free in mport\_mm\_close()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-28)
- **Published:** 2026-11-19T14:44:28.194Z
- **Modified:** 2026-11-23T08:17:54.450Z

## Who should check

- Anyone running Linux \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 4fd7df6e7040fad99fee8989783748afefcee6ce; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 1c66d8e8fc67f2471675e361b16200d419e40ef3; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 40f37f710ef220286600bae75456977f3629629f; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 3dc409ad1865d68f884611f7503c409071499067; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< df3008607f2c3343f7ad34001af656a185c123ee; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 48157350b24ac0343374ee3fa34188d7ff30be81; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< a0aaf59e7a86312c0272e36f19fb507f91405209; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 0f2cd84858e67cf8e02438bf28243bcdc67aa49a
- Anyone running Linux 4.6

## 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.

## Affected and fixed versions

- Linux: \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 4fd7df6e7040fad99fee8989783748afefcee6ce; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 1c66d8e8fc67f2471675e361b16200d419e40ef3; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 40f37f710ef220286600bae75456977f3629629f; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 3dc409ad1865d68f884611f7503c409071499067; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< df3008607f2c3343f7ad34001af656a185c123ee; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 48157350b24ac0343374ee3fa34188d7ff30be81; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< a0aaf59e7a86312c0272e36f19fb507f91405209; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 0f2cd84858e67cf8e02438bf28243bcdc67aa49a (cvelist)
- Linux: 4.6 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 0f2cd84858e67cf8e02438bf28243bcdc67aa49a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99521. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99521.md
Affected: Linux >= e8de370188d098bb49483c287b44925957c3c9b6, < 4fd7df6e7040fad99fee8989783748afefcee6ce; >= e8de370188d098bb49483c287b44925957c3c9b6, < 1c66d8e8fc67f2471675e361b16200d419e40ef3; >= e8de370188d098bb49483c287b44925957c3c9b6, < 40f37f710ef220286600bae75456977f3629629f; >= e8de370188d098bb49483c2…
Fixed in: Linux 4fd7df6e7040fad99fee8989783748afefcee6ce, Linux 1c66d8e8fc67f2471675e361b16200d419e40ef3, Linux 40f37f710ef220286600bae75456977f3629629f, Linux 3dc409ad1865d68f884611f7503c409071499067, Linux 48157350b24ac0343374ee3fa34188d7ff30be81, Linux 0f2cd84858e67cf8e02438bf28243bcdc67aa49a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99521 being exploited?

There is no confirmed exploitation: CVE-2026-99521 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-99521?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-99521?

Linux \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 4fd7df6e7040fad99fee8989783748afefcee6ce; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 1c66d8e8fc67f2471675e361b16200d419e40ef3; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 40f37f710ef220286600bae75456977f3629629f; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 3dc409ad1865d68f884611f7503c409071499067; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< df3008607f2c3343f7ad34001af656a185c123ee; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 48157350b24ac0343374ee3fa34188d7ff30be81; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< a0aaf59e7a86312c0272e36f19fb507f91405209; \>= e8de370188d098bb49483c287b44925957c3c9b6, \< 0f2cd84858e67cf8e02438bf28243bcdc67aa49a; Linux 4.6.

### Is there a fix for CVE-2026-99521?

Yes. Fixed in Linux 4fd7df6e7040fad99fee8989783748afefcee6ce, Linux 1c66d8e8fc67f2471675e361b16200d419e40ef3, Linux 40f37f710ef220286600bae75456977f3629629f, Linux 3dc409ad1865d68f884611f7503c409071499067, Linux 48157350b24ac0343374ee3fa34188d7ff30be81, Linux 0f2cd84858e67cf8e02438bf28243bcdc67aa49a. Upgrade Linux to 0f2cd84858e67cf8e02438bf28243bcdc67aa49a or later.

### How do I check if I'm affected by CVE-2026-99521?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/4fd7df6e7040fad99fee8989783748afefcee6ce>
- other: <https://git.kernel.org/stable/c/1c66d8e8fc67f2471675e361b16200d419e40ef3>
- other: <https://git.kernel.org/stable/c/40f37f710ef220286600bae75456977f3629629f>
- other: <https://git.kernel.org/stable/c/3dc409ad1865d68f884611f7503c409071499067>
- other: <https://git.kernel.org/stable/c/df3008607f2c3343f7ad34001af656a185c123ee>
- other: <https://git.kernel.org/stable/c/48157350b24ac0343374ee3fa34188d7ff30be81>
- other: <https://git.kernel.org/stable/c/a0aaf59e7a86312c0272e36f19fb507f91405209>
- other: <https://git.kernel.org/stable/c/0f2cd84858e67cf8e02438bf28243bcdc67aa49a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99521>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-99521> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99521>
