CVE Vulnerabilities

CVE-2024-27297

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: Mar 11, 2024 | Modified: Mar 12, 2024
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

Nix is a package manager for Linux and other Unix systems. A fixed-output derivations on Linux can send file descriptors to files in the Nix store to another program running on the host (or another fixed-output derivation) via Unix domain sockets in the abstract namespace. This allows to modify the output of the derivation, after Nix has registered the path as valid and immutable in the Nix database. In particular, this allows the output of fixed-output derivations to be modified from their expected content. This issue has been addressed in versions 2.3.18 2.18.2 2.19.4 and 2.20.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness

The product checks the state of a resource before using that resource, but the resource’s state can change between the check and the use in a way that invalidates the results of the check. This can cause the product to perform invalid actions when the resource is in an unexpected state.

Affected Software

Name Vendor Start Version End Version
Guix Ubuntu mantic *
Guix Ubuntu upstream *
Nix Ubuntu devel *
Nix Ubuntu esm-apps/jammy *
Nix Ubuntu esm-apps/noble *
Nix Ubuntu jammy *
Nix Ubuntu mantic *
Nix Ubuntu noble *
Nix Ubuntu oracular *
Nix Ubuntu upstream *

Potential Mitigations

References