Revert "drm/prime: Use dma_buf from GEM object instance"
In the Linux kernel, the following vulnerability has been resolved: Revert "drm/prime: Use dma_buf from GEM object instance" This reverts commit f83a9b8c7fd0557b0c50784bfdc1bbe9140c9bf8. The dma_buf field in struct drm_gem_object is not stable over the object instance's lifetime. The field becomes NULL when user space releases the final GEM handle on the buffer object. This resulted in a NULL-pointer deref. Workarounds in commit 5307dce878d4 ("drm/gem: Acquire references on GEM handles for framebuffers") and commit f6bfc9afc751 ("drm/framebuffer: Acquire internal references on GEM handles") only solved the problem partially. They especially don't work for buffer objects without a DRM framebuffer associated. Hence, this revert to going back to using .import_attach->dmabuf. v3: - cc stable
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.15.9
- CVEs
- CVE-2025-38674
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:33 UTC · Revision 1
Source evidence
Revert "drm/prime: Use dma_buf from GEM object instance"
core-osv · Original sourcePublished 22 Aug 2025, 16:03 UTC
In the Linux kernel, the following vulnerability has been resolved: Revert "drm/prime: Use dma_buf from GEM object instance" This reverts commit f83a9b8c7fd0557b0c50784bfdc1bbe9140c9bf8. The dma_buf field in struct drm_gem_object is not stable over the object instance's lifetime. The field becomes NULL when user space releases the final GEM handle on the buffer object. This resulted in a NULL-pointer deref. Workarounds in commit 5307dce878d4 ("drm/gem: Acquire references on GEM handles for framebuffers") and commit f6bfc9afc751 ("drm/framebuffer: Acquire internal references on GEM handles") only solved the problem partially. They especially don't work for buffer objects without a DRM framebuffer associated. Hence, this revert to going back to using .import_attach->dmabuf. v3: - cc stable
osv:CVE-2025-38674
Kernel
Fixed versions: 6.15.9
Complete source record
{
"id": "2a23543138002b7fa7c59d719c60dd3bcff3fd9f750bfa3e08909e573011b027",
"url": "https://osv.dev/vulnerability/CVE-2025-38674",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Revert \"drm/prime: Use dma_buf from GEM object instance\"",
"summary": "In the Linux kernel, the following vulnerability has been resolved: Revert \"drm/prime: Use dma_buf from GEM object instance\" This reverts commit f83a9b8c7fd0557b0c50784bfdc1bbe9140c9bf8. The dma_buf field in struct drm_gem_object is not stable over the object instance's lifetime. The field becomes NULL when user space releases the final GEM handle on the buffer object. This resulted in a NULL-pointer deref. Workarounds in commit 5307dce878d4 (\"drm/gem: Acquire references on GEM handles for framebuffers\") and commit f6bfc9afc751 (\"drm/framebuffer: Acquire internal references on GEM handles\") only solved the problem partially. They especially don't work for buffer objects without a DRM framebuffer associated. Hence, this revert to going back to using .import_attach->dmabuf. v3: - cc stable",
"evidence": "osv:CVE-2025-38674",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.15.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-38674",
"aliases": [
"CVE-2025-38674"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "f83a9b8c7fd0557b0c50784bfdc1bbe9140c9bf8"
},
{
"fixed": "5f05d83ce689a8930a70dfa73f879604aef8cc03"
},
{
"fixed": "fb4ef4a52b79a22ad382bfe77332642d02aef773"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38674.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.15.0"
},
{
"fixed": "6.15.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38674.json"
}
}
],
"modified": "2026-10-28T02:30:23.739968561Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/5f05d83ce689a8930a70dfa73f879604aef8cc03",
"https://git.kernel.org/stable/c/fb4ef4a52b79a22ad382bfe77332642d02aef773",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38674.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38674",
"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/2025/38xxx/CVE-2025-38674.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38674",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489908,
"published_at": "2025-08-22T16:03:04.418+00:00"
}