Description
The lxc-sshd template (templates/lxc-sshd.in) in LXC before 1.0.0.beta2 uses read-write permissions when mounting /sbin/init, which allows local users to gain privileges by modifying the init file.
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 | lxc | 1.0.0-1 | — |
| Debian 13 | lxc | 1.0.0-1 | — |
| Debian 12 | lxc | 1.0.0-1 | — |
| Debian 6.0 | lxc | 0.7.2-1+deb6u1 | DLA-442-1 |
Advisories 1
- DLA-442-1 lxc - security update Debian Security (DSA / DLA) · Mar 9, 2026