In the Linux kernel, the following vulnerability has been resolved:
drm/xe: Fix dma-buf attachment leak in xegemprimeimport()
When xedmabufinitobj() fails, the attachment from dmabufdynamicattach() is not detached. Add dmabufdetach() before returning the error. Note: we cannot use goto outerr here because xedmabufinitobj() already frees bo on failure, and outerr would double-free it.
(cherry picked from commit a828eb185aac41800df8eae4b60501ccc0dbbe51)