Description
In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Fix possible use-after-free when freeing device BO When the DRM file descriptor is closed, amdxdna_client_cleanup() frees the client structure. If device BOs are still alive, freeing them may access abo->client and result in a use-after-free. Move amdxdna_gem_heap_free(), which accesses abo->client, before clearing abo->client in the BO close callback. Also track the heap BOs referenced by device BOs so they can be accessed without dereferencing abo->client.
Affected products and versions
Linux Linuxdbc8fd7a03cbc0704e8e558a448015f620547a02 – < c5b28fa97ba089db6a892e2af4bc6200ce451723 · dbc8fd7a03cbc0704e8e558a448015f620547a02 – < 6a1f6cb7593aebcdb4f9022410622128fb23b1a1 · 3f63f071bf82b44b9847b28ee9f3d98d973d327e · 6.18.57 – < 6.19Fixed in: c5b28fa97ba089db6a892e2af4bc6200ce451723 · 6a1f6cb7593aebcdb4f9022410622128fb23b1a1 · 6.19
Linux Linux7.2Fixed in: 7.3.6 · 7.4-rc1
References
- git.kernel.org/stable/c/c5b28fa97ba089db6a892e2af4bc6200ce451723
- git.kernel.org/stable/c/6a1f6cb7593aebcdb4f9022410622128fb23b1a1
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.