Description
The capsh program in libcap before 2.22 does not change the current working directory when the --chroot option is specified, which allows local users to bypass the chroot restrictions via unspecified vectors.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libcap2 | 1:2.22-1 | — |
| Debian 13 | libcap2 | 1:2.22-1 | — |
| Debian 12 | libcap2 | 1:2.22-1 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | libcap +1 | 2.16-5.5.el6 | RHSA-2011:1694 |
Advisories 1
- RHSA-2011:1694 Red Hat Security Advisory: libcap security and bug fix update Red Hat Security Advisories (RHSA) · Jun 26, 2026