{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99521",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.419Z",
        "datePublished": "2026-11-19T14:44:28.194Z",
        "dateUpdated": "2026-11-23T08:03:49.571Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:03:49.571Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/rapidio/devices/rio_mport_cdev.c"
                    ],
                    "versions": [
                        {
                            "version": "e8de370188d098bb49483c287b44925957c3c9b6",
                            "lessThan": "4fd7df6e7040fad99fee8989783748afefcee6ce",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e8de370188d098bb49483c287b44925957c3c9b6",
                            "lessThan": "1c66d8e8fc67f2471675e361b16200d419e40ef3",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e8de370188d098bb49483c287b44925957c3c9b6",
                            "lessThan": "40f37f710ef220286600bae75456977f3629629f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e8de370188d098bb49483c287b44925957c3c9b6",
                            "lessThan": "3dc409ad1865d68f884611f7503c409071499067",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "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"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/rapidio/devices/rio_mport_cdev.c"
                    ],
                    "versions": [
                        {
                            "version": "4.6",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.6",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.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"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "6.18.61"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "7.3.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.6",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/4fd7df6e7040fad99fee8989783748afefcee6ce"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1c66d8e8fc67f2471675e361b16200d419e40ef3"
                },
                {
                    "url": "https://git.kernel.org/stable/c/40f37f710ef220286600bae75456977f3629629f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3dc409ad1865d68f884611f7503c409071499067"
                },
                {
                    "url": "https://git.kernel.org/stable/c/df3008607f2c3343f7ad34001af656a185c123ee"
                },
                {
                    "url": "https://git.kernel.org/stable/c/48157350b24ac0343374ee3fa34188d7ff30be81"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a0aaf59e7a86312c0272e36f19fb507f91405209"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0f2cd84858e67cf8e02438bf28243bcdc67aa49a"
                }
            ],
            "title": "rapidio: mport_cdev: fix use-after-free in mport_mm_close()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}