llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · github.com/dragonflyoss/dragonfly

GHSA-P229-JCCG-XVMJ

Vertex.DeleteInEdges and Vertex.DeleteOutEdges functions are not thread safe

Texto original en inglés · Ver en español

Sin parche publicado
Descargar PNG JSON
CVSS
—
low
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición429 dDesde la divulgación, 17 sept 2025, 1:10 a. m.
Detección427 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Monitoreo
Detectada +1
17 sept 25
18 nov 26
21 nov 26
17 sept 25
2 ene 26
20 abr 26
5 ago 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-P229-JCCG-XVMJ divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

### Impact
The Vertex.DeleteInEdges and Vertex.DeleteOutEdges functions are not thread safe, and may cause inconsistent states if they are called at the same time as other functions.

// DeleteInEdges deletes inedges of vertex.
func (v *Vertex[T]) DeleteInEdges() {
       for _, parent := range v.Parents.Values() {
             parent.Children.Delete(v)
       }
       v.Parents = set.NewSafeSet[*Vertex[T]]()
}

The for loop iterates through the vertex’s parents, deleting the corresponding entry in their Children sets. After the for loop, the vertex’s Parents set is assigned to be the empty set. However, if a parent is added to the vertex (on another thread) in between these two operations, the state will be inconsistent. The parent will have the vertex in its Children set, but the vertex will not have the parent in its Parents set.
The same problem happens in Vertex.DeleteOutEdges method, since its code is essentially the same, but with Parents swapped with Children in all occurrences.
It is undetermined what exploitable problems this bug can cause.

Patches
  • Dragonfy v2.1.0 and above.
Workarounds

There are no effective workarounds, beyond upgrading.

References

A third party security audit was performed by Trail of Bits, you can see the full report https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf.

If you have any questions or comments about this advisory, please email us at [dragonfly-maintainers@googlegroups.com](mailto:dragonfly-maintainers@googlegroups.com).

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
github.com/dragonflyoss/dragonfly< 2.1.0
v0.4.1
2.1.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogithub.com/dragonflyoss/dragonfly
Sin parche — — v0.4.1 afectada
Versiones corregidas2.1.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-p229-jccg-xvmj

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.