GHSA-2P4Q-79H9-PWGV
Vulnerability from github – Published: 2026-11-19 15:31 – Updated: 2026-11-19 15:31In 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": [],
"aliases": [
"CVE-2026-99521"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-19T15:18:07Z",
"severity": null
},
"details": "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-\u003emd to unlock buf_mutex, leading to a\nuse-after-free:\n\n mport_mm_close()\n -\u003e mutex_lock(\u0026map-\u003emd-\u003ebuf_mutex);\n ...\n -\u003e kref_put(\u0026map-\u003eref, mport_release_mapping); /* map is freed */\n -\u003e mutex_unlock(\u0026map-\u003emd-\u003ebuf_mutex); /* UAF: map used */\n\nFix this by caching map-\u003emd before kref_put() and using the cached pointer\nfor mutex unlocking, ensuring that freed memory is not accessed.",
"id": "GHSA-2p4q-79h9-pwgv",
"modified": "2026-11-19T15:31:27Z",
"published": "2026-11-19T15:31:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99521"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/0f2cd84858e67cf8e02438bf28243bcdc67aa49a"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/48157350b24ac0343374ee3fa34188d7ff30be81"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/a0aaf59e7a86312c0272e36f19fb507f91405209"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/df3008607f2c3343f7ad34001af656a185c123ee"
}
],
"schema_version": "1.4.0",
"severity": []
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.