CVE-2020-24330
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-24330 affects TrouSerS through version 0.3.14. The vulnerability was discovered in 2020 and involves a privilege escalation issue where if the tcsd daemon is started with root privileges instead of by the tss user, it fails to drop the root gid privilege when no longer needed (NVD, OSS Security).

Technical details

The vulnerability occurs in the privilege dropping mechanism of the tcsd daemon. When started with root privileges, the daemon only drops the root uid via setuid() but not the root group id, allowing it to continue running with root group privileges that exceed what it actually requires. This issue is present in the main() function where setgid() is missing from the privilege dropping sequence (OSS Security). The vulnerability has been assigned a CVSS v3.1 base score of 7.8 HIGH with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The retained root group privileges could potentially allow privilege escalations when combined with other attack vectors. This means a compromised tcsd process could leverage these excessive privileges to perform actions beyond its intended scope (OSS Security).

Exploitability

The vulnerability requires local access and can be exploited when the tcsd daemon is started with root privileges via systemd or similar mechanisms, as was the case in SUSE and Fedora Linux distributions at the time of discovery (OSS Security).

Mitigation and workarounds

The recommended mitigation is to run the tcsd daemon directly as the tss:tss user and group instead of relying on the privilege drop logic. This requires setting appropriate permissions for /var/lib/tpm and the /dev/tpm0 device via udev rules. For systems that must start tcsd as root, patches have been released that add the missing setgid() call to drop root group privileges (OSS Security, SUSE).

Community reactions

The vulnerability was initially reported to IBM (the upstream maintainer) in February 2020. After reaching the 90-day disclosure deadline without a response, it was publicly disclosed in May 2020. Major Linux distributions including SUSE and Red Hat have released security updates to address the vulnerability (OSS Security, Red Hat).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-34191CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-32327CRITICAL9.1
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34502HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2026-34501HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026
CVE-2025-49506HIGH7.5
  • NixOS logoNixOS
  • apr-util
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management