← VULNERABILITIES

DHI-6lxn-nt5a-t565-2nrj

When an application reads an interned value's fields or uses that value as an input to a tracked function, Salsa must…

Unscored
CVSS
—
EPSS
—
Published
2026-11-25
Age
3d old
Modified
2026-11-27
Product
rustc

Description

When an application reads an interned value's fields or uses that value as an input to a tracked function, Salsa must ensure that reusable storage has been validated for the current database revision. This prevents the value's fields and associated cached function results from being freed while in use. Affected versions checked this invariant only with `debug_assert!` when reading fields, and did not check it when using an interned value to access a tracked function's cached result. Bugs in Salsa's dependency tracking, or an application-provided `Eq` implementation that incorrectly treats a changed query result as unchanged, can cause Salsa to reuse cached results containing stale interned values. If the application accesses these values and then interns additional values, Salsa can free the old fields or cached function results while references to them are still in use. This causes use-after-free through safe Rust APIs. Depending on the consuming application, attacker-controlled input may expose process memory or permit arbitrary code execution. The fix asserts that an interned value's reusable storage has been validated for the current database revision before allowing an applica

Sources

  • OSV · first seen 3d ago · CC-BY 4.0

References

JSON