{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99753","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.432Z","datePublished":"2026-11-20T05:51:22.976Z","dateUpdated":"2026-11-22T11:10:00.075Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:10:00.075Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/loongson: Fix double free on BO initialization failure\n\nIf ttm_bo_init_validate() fails, it drops the buffer object's reference\nand cleans it up through the supplied destroy callback. lsdc_bo_destroy()\nreleases the GEM object and frees the enclosing lsdc_bo, so freeing it\nagain in lsdc_bo_create() causes a double free on a synchronous failure\npath.\n\nLet TTM own the cleanup after initialization has started and return the\nerror directly. Keep the explicit free on drm_gem_object_init() failure,\nwhich occurs before ownership is passed to TTM.\n\nTested on LS7A2000 by making drm_vma_offset_add() return -ENOSPC for one\nselected dumb-buffer creation. The error reached userspace, the destroy\ncallback ran once, and no handle was published or tracked BO retained.\nNormal buffer creation, zeroing, mapping, readback and release passed.\n\nAI assistance was used for the ownership analysis, fix, fault-injection\ntools, build and test execution."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - lsdc_bo_create() double-frees the lsdc_bo when ttm_bo_init_validate() fails, reached from DRM_IOCTL_MODE_CREATE_DUMB through drm_mode_create_dumb_ioctl() and lsdc_dumb_create(), with width, height, and bpp supplied by the local ioctl caller.\nAC:L - That caller, as DRM master, pins a dumb BO of ldev->vram_size/2 via lsdc_plane_prepare_fb() and a cursor BO, so a later lsdc_dumb_create() of vram_size/2 fails in ttm_range_man_alloc() inside ttm_bo_validate(); ttm_bo_put() runs lsdc_bo_destroy() and lsdc_bo_create() kfree()s the same object.\nPR:L - DRM_IOCTL_MODE_CREATE_DUMB is registered with flags 0, so drm_ioctl_permit() does not require CAP_SYS_ADMIN or DRM_AUTH; a local session user who can open /dev/dri/card0 reaches lsdc_dumb_create(), and the DRM master used to pin VRAM is that logged-in session.\nUI:N - The attacker opens /dev/dri/card0 and issues DRM_IOCTL_MODE_CREATE_DUMB and the atomic commit that pins the BO through lsdc_plane_prepare_fb().\nS:U - The double-freed object is the host kernel lsdc_bo in the loongson DRM driver, so the resulting privilege escalation stays in the same security authority.\nC:H - ttm_bo_release() calls lsdc_bo_destroy(), which kfree()s the lsdc_bo, and lsdc_bo_create() kfree()s that pointer again; the slab double-free can alias a later allocation and disclose the reused kernel object.\nI:H - The second kfree() of the lsdc_bo corrupts the slab freelist so a later allocation can alias that slot, giving a kernel heap write that can hijack control flow.\nA:H - kfree() of the lsdc_bo in lsdc_bo_create() after lsdc_bo_destroy() has already freed it corrupts slab metadata and oopses or panics the kernel when that slot is next allocated or freed."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/loongson/lsdc_ttm.c"],"versions":[{"version":"f39db26c54281da6a785259498ca74b5e470476f","lessThan":"6ad25544f1dd24ac512e4d03b5613f4d6d40576d","status":"affected","versionType":"git"},{"version":"f39db26c54281da6a785259498ca74b5e470476f","lessThan":"dd76e36520a9553a4416412aa114217541218f97","status":"affected","versionType":"git"},{"version":"f39db26c54281da6a785259498ca74b5e470476f","lessThan":"c8da4789c0c916fed4d546a2b07423151e5f9d59","status":"affected","versionType":"git"},{"version":"f39db26c54281da6a785259498ca74b5e470476f","lessThan":"f086dbdeb6e56510e158a853d752c6d8ed9e0674","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/loongson/lsdc_ttm.c"],"versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.3.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.4-rc2"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/6ad25544f1dd24ac512e4d03b5613f4d6d40576d"},{"url":"https://git.kernel.org/stable/c/dd76e36520a9553a4416412aa114217541218f97"},{"url":"https://git.kernel.org/stable/c/c8da4789c0c916fed4d546a2b07423151e5f9d59"},{"url":"https://git.kernel.org/stable/c/f086dbdeb6e56510e158a853d752c6d8ed9e0674"}],"title":"drm/loongson: Fix double free on BO initialization failure","x_generator":{"engine":"bippy-1.2.0"}}}}