cveboard Feed RSS

CVE-2025-40096

CVE.org · Publicado

Histórico de CVEsJSONInstruções para IA

Status do registro
Publicado
Ano do identificador (não é o ano de publicação)
2025
Publicação na fonte
Atualização na fonte
Importado pelo cveboard
Snapshot da fonte
cve_2026-10-24_midnight_baseline ·

Texto simples

Texto da CNA em inglês

drm/sched: Fix potential double free in drm_sched_job_add_resv_dependencies

In the Linux kernel, the following vulnerability has been resolved: drm/sched: Fix potential double free in drm_sched_job_add_resv_dependencies When adding dependencies with drm_sched_job_add_dependency(), that function consumes the fence reference both on success and failure, so in the latter case the dma_fence_put() on the error path (xarray failed to expand) is a double free. Interestingly this bug appears to have been present ever since commit ebd5f74255b9 ("drm/sched: Add dependency tracking"), since the code back then looked like this: drm_sched_job_add_implicit_dependencies(): ... for (i = 0; i < fence_count; i++) { ret = drm_sched_job_add_dependency(job, fences[i]); if (ret) break; } for (; i < fence_count; i++) dma_fence_put(fences[i]); Which means for the failing 'i' the dma_fence_put was already a double free. Possibly there were no users at that time, or the test cases were insufficient to hit it. The bug was then only noticed and fixed after commit 9c2ba265352a ("drm/scheduler: use new iterator in drm_sched_job_add_implicit_dependencies v2") landed, with its fixup of commit 4eaf02d6076c ("drm/scheduler: fix drm_sched_job_add_implicit_dependencies"). At that point it was a slightly different flavour of a double free, which commit 963d0b356935 ("drm/scheduler: fix drm_sched_job_add_implicit_dependencies harder") noticed and attempted to fix. But it only moved the double free from happening inside the drm_sched_job_add_dependency(), when releasing the reference not yet obtained, to the caller, when releasing the reference already released by the former in the failure case. As such it is not easy to identify the right target for the fixes tag so lets keep it simple and just continue the chain. While fixing we also improve the comment and explain the reason for taking the reference and not dropping it.

Fatos de produtos e versões por escopo

Dados de correção desconhecidos; nenhuma versão corrigida é deduzida aqui. Dados ausentes não comprovam ausência de correção.

Exploração desconhecida; este catálogo não avalia exploração.

Linux

Fornecedor
Linux
Produto
Linux
Plataformas
Desconhecido
Status padrão
unaffected
Linux · Fatos de produtos e versões por escopo
Versão (version)Status (status)Esquema de versões (versionType)Fim exclusivo (lessThan)Fim inclusivo (lessThanOrEqual)Mudanças de status (at → status)
963d0b3569354230f6e2c36a286ef270a8901878affectedgit4c38a63ae12ecc9370a7678077bde2d61aa80e9cIndisponívelNenhuma listada
963d0b3569354230f6e2c36a286ef270a8901878affectedgit57239762aa90ad768dac055021f27705dae73344IndisponívelNenhuma listada
963d0b3569354230f6e2c36a286ef270a8901878affectedgite5e3eb2aff92994ee81ce633f1c4e73bd4b87e11IndisponívelNenhuma listada
963d0b3569354230f6e2c36a286ef270a8901878affectedgitfdfb47e85af1e11ec822c82739dde2dd8dff5115IndisponívelNenhuma listada
963d0b3569354230f6e2c36a286ef270a8901878affectedgit5801e65206b065b0b2af032f7f1eef222aa2fd83IndisponívelNenhuma listada

Linux

Fornecedor
Linux
Produto
Linux
Plataformas
Desconhecido
Status padrão
affected
Linux · Fatos de produtos e versões por escopo
Versão (version)Status (status)Esquema de versões (versionType)Fim exclusivo (lessThan)Fim inclusivo (lessThanOrEqual)Mudanças de status (at → status)
5.16affectedIndisponívelIndisponívelIndisponívelNenhuma listada
0unaffectedsemver5.16IndisponívelNenhuma listada
6.1.158unaffectedsemverIndisponível6.1.*Nenhuma listada
6.6.114unaffectedsemverIndisponível6.6.*Nenhuma listada
6.12.55unaffectedsemverIndisponível6.12.*Nenhuma listada
6.17.5unaffectedsemverIndisponível6.17.*Nenhuma listada
6.18unaffectedoriginal_commit_for_fixIndisponível*Nenhuma listada