drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() When xe_dma_buf_init_obj() fails, the attachment from dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before returning the error. Note: we cannot use goto out_err here because xe_dma_buf_init_obj() already frees bo on failure, and out_err would double-free it. (cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.90, 6.18.32, 7.0.9
- CVEs
- CVE-2026-46201
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 16:40 UTC · Revision 1
Source evidence
drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
core-osv · Original sourcePublished 28 May 2026, 09:40 UTC
In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() When xe_dma_buf_init_obj() fails, the attachment from dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before returning the error. Note: we cannot use goto out_err here because xe_dma_buf_init_obj() already frees bo on failure, and out_err would double-free it. (cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)
osv:CVE-2026-46201
Kernel
Fixed versions: 6.12.90, 6.18.32, 7.0.9
Complete source record
{
"id": "38fa35fe26caa61a2921cd394e4c73369a6befd1323227e7a1d3f8d3a1486710",
"url": "https://osv.dev/vulnerability/CVE-2026-46201",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import() When xe_dma_buf_init_obj() fails, the attachment from dma_buf_dynamic_attach() is not detached. Add dma_buf_detach() before returning the error. Note: we cannot use goto out_err here because xe_dma_buf_init_obj() already frees bo on failure, and out_err would double-free it. (cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)",
"evidence": "osv:CVE-2026-46201",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.90",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.32",
"evidence": "/affected/1/ranges"
},
{
"value": "7.0.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2026-46201",
"aliases": [
"CVE-2026-46201"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "dd08ebf6c3525a7ea2186e636df064ea47281987"
},
{
"fixed": "d394669e194936d7ce15284a24a5ae334c4c5b74"
},
{
"fixed": "0afa8b1ef582ecf6fb04097fd356f8741e5005ed"
},
{
"fixed": "eea1e10f8d99c0f04deef707c99705b94bba3b78"
},
{
"fixed": "111ab678471bf1f90d078d5513bb086b70596c3c"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46201.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.8.0"
},
{
"fixed": "6.12.90"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.32"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.0.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46201.json"
}
}
],
"modified": "2026-10-28T02:30:44.346519433Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0afa8b1ef582ecf6fb04097fd356f8741e5005ed",
"https://git.kernel.org/stable/c/111ab678471bf1f90d078d5513bb086b70596c3c",
"https://git.kernel.org/stable/c/d394669e194936d7ce15284a24a5ae334c4c5b74",
"https://git.kernel.org/stable/c/eea1e10f8d99c0f04deef707c99705b94bba3b78",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46201.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-46201",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46201.json"
}
},
"related_cves": [
{
"value": "CVE-2026-46201",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 512431,
"published_at": "2026-05-28T09:40:17.964+00:00"
}