CVE-2022-2787
Linux Debian vulnerability analysis and mitigation

Overview

Schroot before version 1.6.13 contained a vulnerability (CVE-2022-2787) related to overly permissive rules on chroot or session names. The vulnerability was discovered by Julian Gilbey and publicly disclosed in August 2022. This security issue affected the schroot utility, which is a tool allowing users to execute commands in a chroot environment (Debian LTS, Debian Security).

Technical details

The vulnerability stemmed from broad rules implemented in commit 8c1c9370 regarding the allowed characters in chroot or session names. Some of these permitted characters could break schroot's internal state or cause issues in various backends. The fix implemented stricter character limitations, allowing only letters and digits at the start of names, and additionally permitting dots, dashes, and underscores in subsequent positions (Codeberg Commit).

Impact

The vulnerability could allow an attacker to cause a denial of service on the schroot service, affecting all users who have permission to start a schroot session. This impact would affect the system's ability to execute commands in chroot environments (Gentoo Security, Ubuntu Security).

Mitigation and workarounds

The issue was fixed in schroot version 1.6.13. System administrators can check for problematic session and chroot names before upgrading using the command: schroot --list --all | LCALL=C grep -vE '^[a-z]+:[a-zA-Z0-9][a-zA-Z0-9.-]*$'. The upgrade process includes checks for existing chroots and sessions, and will abort if any invalid names are detected (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59030HIGH7.5
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-59029MEDIUM5.3
  • Linux DebianLinux Debian
  • pdns-recursor
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesDec 09, 2025

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