AZL-115648: CVE-2026-99753 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
drm/loongson: Fix double free on BO initialization failure
If ttmboinitvalidate() fails, it drops the buffer object's reference and cleans it up through the supplied destroy callback. lsdcbodestroy() releases the GEM object and frees the enclosing lsdcbo, so freeing it again in lsdcbocreate() causes a double free on a synchronous failure path.
Let TTM own the cleanup after initialization has started and return the error directly. Keep the explicit free on drmgemobjectinit() failure, which occurs before ownership is passed to TTM.
Tested on LS7A2000 by making drmvmaoffsetadd() return -ENOSPC for one selected dumb-buffer creation. The error reached userspace, the destroy callback ran once, and no handle was published or tracked BO retained. Normal buffer creation, zeroing, mapping, readback and release passed.
AI assistance was used for the ownership analysis, fix, fault-injection tools, build and test execution.