CVE-2016-2779

NameCVE-2016-2779
Descriptionrunuser in util-linux allows local users to escape to the parent session via a crafted TIOCSTI ioctl call, which pushes characters to the terminal's input buffer.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs815922

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
util-linux (PTS)jessie, jessie (lts)2.26.2+really2.25.2-6+deb8u2vulnerable
stretch (security)2.29.2-1+deb9u1vulnerable
stretch (lts), stretch2.29.2-1+deb9u3vulnerable
buster (security), buster, buster (lts)2.33.1-0.1+deb10u1fixed
bullseye (security), bullseye2.36.1-8+deb11u2fixed
bookworm2.38.1-5+deb12u2fixed
bookworm (security)2.38.1-5+deb12u1fixed
sid, trixie2.40.2-11fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
util-linuxsourcesqueeze(not affected)
util-linuxsourcewheezy(not affected)
util-linuxsource(unstable)2.31.1-0.1815922

Notes

[stretch] - util-linux <no-dsa> (Minor issue)
[jessie] - util-linux <no-dsa> (Minor issue)
[wheezy] - util-linux <not-affected> (runuser[.c] not yet present)
[squeeze] - util-linux <not-affected> (runuser[.c] not yet present)
Restricting ioctl on the kernel side seems the better approach, patches have been posted to kernel-hardening list
https://www.openwall.com/lists/oss-security/2016/02/27/1
https://marc.info/?l=util-linux-ng&m=145694736107128&w=2
2.31 introduces a new --pty option to separate privileged and unprivileged
shells (not enabled by default and the cli switch is necessary).

Search for package or bug name: Reporting problems