{"cve":{"cve_id":"CVE-2026-52951","is_kev":false,"kev_date_added":null,"kev_vendor_project":null,"kev_product":null,"kev_vulnerability_name":null,"kev_short_description":null,"kev_required_action":null,"kev_due_date":null,"kev_known_ransomware":null,"kev_notes":null,"kev_cwes":null,"epss_score":null,"epss_percentile":null,"epss_as_of":null,"description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/xe/dma-buf: handle empty bo and UAF races\n\nThere look to be some nasty races here when triggering the\ninvalidate_mappings hook:\n\n1) We do xe_bo_alloc() followed by the attach, before the actual full bo\n   init step in xe_dma_buf_init_obj(). However the bo is visible on the\n   attachments list after the attach.  This is bad since exporter driver,\n   say amdgpu, can at any time call back into our invalidate_mappings hook,\n   with an empty/bogus bo, leading to potential bugs/crashes.\n\n2) Similar to 1) but here we get a UAF, when the invalidate_mappings\n   hook is triggered. For example, we get as far as xe_bo_init_locked()\n   but this fails in some way. But here the bo will be freed on error, but\n   we still have it attached from dma-buf pov, so if the\n   invalidate_mappings is now triggered then the bo we access is gone and\n   we trigger UAF and more bugs/crashes.\n\nTo fix this, move the attach step until after we actually have a fully\nset up buffer object. Note that the bo is not published to userspace\nuntil later, so not sure what the comment \"Don't publish the bo\nuntil we have a valid attachment\", is referring to.\n\nWe have at least two different customers reporting hitting a NULL ptr\nderef in evict_flags when importing something from amdgpu, followed by\ntriggering the evict flow. Hit rate is also pretty low, which would\nhint at some kind of race, so something like 1) or 2) might explain\nthis.\n\nv2:\n  - Shuffle the order of the ops slightly (no functional change)\n  - Improve the comment to better explain the ordering (Matt B)\n\n(cherry picked from commit af1f2ad0c59fe4e2f924c526f66e968289d77971)","published_at":"2026-06-24T16:28:34.351000Z","last_modified_at":null,"cvss_v3_score":7.8,"cvss_v3_vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvss_v3_severity":"HIGH","cvss_v4_score":null,"cvss_v4_vector":null,"cvss_v4_severity":null,"ssvc_decision":null,"ssvc_exploitation":null,"ssvc_automatable":null,"ssvc_technical_impact":null,"cwes":null,"nvd_references":["https://git.kernel.org/stable/c/9894731e513019df22a29e5c52f1c98890355ff1","https://git.kernel.org/stable/c/20a99ea1e2fd720856d6ba497ff26b82c604751f","https://git.kernel.org/stable/c/c473ae25421fddc3dde247ba7b85225b10641d09","https://git.kernel.org/stable/c/981bedbbe61364fcc3a3b87ebaf648a66cd07108"],"vuln_status":null,"trending_score":null,"is_trending":false,"has_trended":false,"trended_number_one":false,"trending_peak_score":null,"trending_peak_rank":null,"started_trending_at":null,"trended_number_one_at":null,"summary_generated":null,"summary_generated_at":null,"summary_model":null,"created_at":"2026-06-28T17:55:22.518073Z","updated_at":"2026-06-28T23:30:49.890169Z"},"effective_severity":"HIGH","badges":[],"impact_analysis":[],"cvss_v3_decoded":{"version":"3.1","metrics":[{"metric":"AV","name":"Attack Vector","value":"L","value_label":"Local"},{"metric":"AC","name":"Attack Complexity","value":"L","value_label":"Low"},{"metric":"PR","name":"Privileges Required","value":"L","value_label":"Low"},{"metric":"UI","name":"User Interaction","value":"N","value_label":"None"},{"metric":"S","name":"Scope","value":"U","value_label":"Unchanged"},{"metric":"C","name":"Confidentiality","value":"H","value_label":"High"},{"metric":"I","name":"Integrity","value":"H","value_label":"High"},{"metric":"A","name":"Availability","value":"H","value_label":"High"}]},"cvss_v4_decoded":{"version":null,"metrics":[]},"affected":[{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"dd08ebf6c3525a7ea2186e636df064ea47281987","version_start_inclusive":true,"version_end":"9894731e513019df22a29e5c52f1c98890355ff1","version_end_inclusive":false,"cpe23_uri":"cve5:linux:linux:dd08ebf6c3525a7ea2186e636df064ea47281987:9894731e513019df22a29e5c52f1c98890355ff1"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"dd08ebf6c3525a7ea2186e636df064ea47281987","version_start_inclusive":true,"version_end":"20a99ea1e2fd720856d6ba497ff26b82c604751f","version_end_inclusive":false,"cpe23_uri":"cve5:linux:linux:dd08ebf6c3525a7ea2186e636df064ea47281987:20a99ea1e2fd720856d6ba497ff26b82c604751f"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"dd08ebf6c3525a7ea2186e636df064ea47281987","version_start_inclusive":true,"version_end":"c473ae25421fddc3dde247ba7b85225b10641d09","version_end_inclusive":false,"cpe23_uri":"cve5:linux:linux:dd08ebf6c3525a7ea2186e636df064ea47281987:c473ae25421fddc3dde247ba7b85225b10641d09"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"dd08ebf6c3525a7ea2186e636df064ea47281987","version_start_inclusive":true,"version_end":"981bedbbe61364fcc3a3b87ebaf648a66cd07108","version_end_inclusive":false,"cpe23_uri":"cve5:linux:linux:dd08ebf6c3525a7ea2186e636df064ea47281987:981bedbbe61364fcc3a3b87ebaf648a66cd07108"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"6.8","version_start_inclusive":true,"version_end":"6.8","version_end_inclusive":true,"cpe23_uri":"cve5:linux:linux:6.8:6.8"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"0","version_start_inclusive":true,"version_end":"6.8","version_end_inclusive":false,"cpe23_uri":"cve5:linux:linux:0:6.8"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"6.12.91","version_start_inclusive":true,"version_end":"6.12.*","version_end_inclusive":true,"cpe23_uri":"cve5:linux:linux:6.12.91:6.12.*"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"6.18.33","version_start_inclusive":true,"version_end":"6.18.*","version_end_inclusive":true,"cpe23_uri":"cve5:linux:linux:6.18.33:6.18.*"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"7.0.10","version_start_inclusive":true,"version_end":"7.0.*","version_end_inclusive":true,"cpe23_uri":"cve5:linux:linux:7.0.10:7.0.*"},{"vendor_slug":"linux","vendor_name":"Linux","product_slug":"linux","product_name":"Linux","version_start":"7.1","version_start_inclusive":true,"version_end":"*","version_end_inclusive":true,"cpe23_uri":"cve5:linux:linux:7.1:*"}],"exploit_refs":[],"news":[],"references":[{"url":"https://git.kernel.org/stable/c/9894731e513019df22a29e5c52f1c98890355ff1","source_type":"MISC","tags":[]},{"url":"https://git.kernel.org/stable/c/20a99ea1e2fd720856d6ba497ff26b82c604751f","source_type":"MISC","tags":[]},{"url":"https://git.kernel.org/stable/c/c473ae25421fddc3dde247ba7b85225b10641d09","source_type":"MISC","tags":[]},{"url":"https://git.kernel.org/stable/c/981bedbbe61364fcc3a3b87ebaf648a66cd07108","source_type":"MISC","tags":[]}],"timeline":[{"type":"published","at":"2026-06-24T16:28:34.351000Z","label":"CVE published","source":null}]}