{"id":"AZL-115022","summary":"CVE-2026-99521 affecting package kernel 6.6.161.1-1","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(&map-\u003emd-\u003ebuf_mutex);\n     ...\n     -\u003e kref_put(&map-\u003eref, mport_release_mapping); /* map is freed */\n     -\u003e mutex_unlock(&map-\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.","modified":"2026-11-20T14:17:30.837205845Z","published":"2026-11-19T15:18:07Z","upstream":["CVE-2026-99521"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99521"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-115022.json"}}],"schema_version":"1.9.2"}