{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99521","id":"CVE-2026-99521","title":"Linux RapidIO use-after-free in memory mapping cleanup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: mport_cdev: fix use-after-free in mport_mm_close()\n\nA use-after-free vulnerability was identified in mport_mm_close() in\ndrivers/rapidio/devices/rio_mport_cdev.c, identical to the pattern\npreviously addressed in dma_req_free().\n\nThis is observable from userspace when an application creates an mmap\nmapping via the RapidIO","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: mport_cdev: fix use-after-free in mport_mm_close()\n\nA use-after-free vulnerability was identified in mport_mm_close() in\ndrivers/rapidio/devices/rio_mport_cdev.c, identical to the pattern\npreviously addressed in dma_req_free().\n\nThis is observable from userspace when an application creates an mmap\nmapping via the RapidIO character device and subsequently unmaps it (or\nterminates, triggering exit_mmap()).  During munmap, mport_mm_close() is\ninvoked and drops the mapping reference via kref_put().\n\nIf kref_put() drops the last reference, mport_release_mapping() is called,\nwhich frees the underlying rio_mport_mapping structure.  The subsequent\nmutex_unlock() then dereferences map->md to unlock buf_mutex, leading to a\nuse-after-free:\n\n   mport_mm_close()\n     -> mutex_lock(&map->md->buf_mutex);\n     ...\n     -> kref_put(&map->ref, mport_release_mapping); /* map is freed */\n     -> mutex_unlock(&map->md->buf_mutex);          /* UAF: map used */\n\nFix this by caching map->md before kref_put() and using the cached pointer\nfor mutex unlocking, ensuring that freed memory is not accessed.","published":"2026-11-19T14:44:28.194Z","updated":"2026-11-19T14:44:28.194Z","reserved":"2026-09-25T10:25:14.419Z","status":"PUBLISHED","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"df3008607f2c3343f7ad34001af656a185c123ee","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"48157350b24ac0343374ee3fa34188d7ff30be81","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"a0aaf59e7a86312c0272e36f19fb507f91405209","status":"affected","versionType":"git"},{"version":"e8de370188d098bb49483c287b44925957c3c9b6","lessThan":"0f2cd84858e67cf8e02438bf28243bcdc67aa49a","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","lessThan":"4.6","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/df3008607f2c3343f7ad34001af656a185c123ee","tags":[]},{"url":"https://git.kernel.org/stable/c/48157350b24ac0343374ee3fa34188d7ff30be81","tags":[]},{"url":"https://git.kernel.org/stable/c/a0aaf59e7a86312c0272e36f19fb507f91405209","tags":[]},{"url":"https://git.kernel.org/stable/c/0f2cd84858e67cf8e02438bf28243bcdc67aa49a","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99521","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99521","ok":false,"note":"not found"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99521","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99521","ok":false,"note":"no score yet"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}