CVE-2016-0723: Infoleak
A flaw was discovered in the linux kernel tty subsystem which allows for disclosure of uncontrolled memory location and possible kernel panic. The information leak is caused by a race condition when attempting to set and read the tty line discipline. An attacker can use the TIOCSETD (via ttysetldisc ) to switch to a new line discipline, a concurrent call to with a TIOCGETD ioctl performs a read on a given tty may be able to access memory previously allocated. Up to 4 bytes may leaked when querying the line discipline.
The problematic code:
case TIOCGETD: return putuser(tty->ldisc->ops->num, (int user )p);
The flaw is triggered when ldisc's address is loaded before the new address is set and the access is performed after the old is freed, which results to crash due to the kernel accessing an invalid address. If an attacker prepares the kernel slab by setting up the ldisc struct at the correct offset they can effectively read 4 bytes from any kernel memory.
Invalid data at the ldisc address may also panic the machine if it is not pointing to valid mappable memory.
Upstream fix: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5c17c861a357e9458001f021a7afa7aab9937439
Original proposed fix: https://bugzilla.redhat.com/attachment.cgi?id=1112221&action=diff
Other sources
Race condition in the ttyioctl function in drivers/tty/ttyio.c in the Linux kernel through 4.4.1 allows local users to obtain sensitive information from kernel memory or cause a denial of service (use-after-free and system crash) by making a TIOCGETD ioctl call during processing of a TIOCSETD ioctl call.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 3.13.0-83.127 - Upgrade
Upgrade
ubuntu/linux-lts-utopicto a version that resolves this vulnerability.Fixed in 3.16.0-69.89~14.04.1 - Upgrade
Upgrade
ubuntu/linux-lts-vividto a version that resolves this vulnerability.Fixed in 3.19.0-56.62~14.04.1 - Upgrade
Upgrade
ubuntu/linux-lts-wilyto a version that resolves this vulnerability.Fixed in 4.2.0-34.39~14.04.1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 3.2.73-2+deb7u3Fixed in 3.16.7-ckt20-1+deb8u3Fixed in 4.3.3-6 - Upgrade
Upgrade
debian/linux-2.6to a version that resolves this vulnerability.Fixed in 2.6.32-48squeeze19
Event History
Frequently Asked Questions
What is CVE-2016-0723?
CVE-2016-0723 is a vulnerability in the Linux kernel that allows local users to obtain sensitive information from kernel memory or cause a denial of service.
How severe is CVE-2016-0723?
CVE-2016-0723 has a severity rating of medium.
Which software versions are affected by CVE-2016-0723?
The affected software versions include linux-armadaxp (3.2.0-1665.90), linux-armadaxp (4.5~), linux-aws (4.5~), linux-flo (4.5~), linux-gke (4.5~), linux-goldfish (4.5~), linux-grouper (4.5~), linux-hwe (4.5~), linux-hwe-edge (4.5~), linux-linaro-vexpress (4.5~), linux-lts-quantal (4.5~), linux-lts-raring (4.5~), linux-lts-saucy (4.5~), linux-lts-trusty (3.13.0-83.127~), linux-lts-trusty (4.5~), linux-lts-utopic (4.5~), linux-lts-vivid (4.5~), linux-lts-wily (4.5~), linux-lts-xenial (4.5~), linux-maguro (4.5~), linux-mako (4.5~), linux-manta (4.5~), linux-qcm-msm (4.5~), linux-raspi2 (4.5~), linux-raspi2 (4.2.0-1027.35), linux-snapdragon (4.5~), linux-ti-omap4 (4.5~), linux-ti-omap4 (3.2.0-1480.106), linux (4.5~), linux (3.2.0-102.142), linux (3.13.0-83.127), linux (4.2.0-34.39), linux-fsl-imx51 (4.5~), linux-linaro-omap (4.5~), linux-linaro-shared (4.5~), and linux (4.19.249-2, 4.19.289-2, 5.10.178-3, 5.10.191-1, 6.1.38-1, 6.1.52-1, 6.5.3-1).
How can I fix CVE-2016-0723?
To fix CVE-2016-0723, you should update the affected software versions to the specified remedy versions (e.g., linux-armadaxp 4.5~).
Are there any references for CVE-2016-0723?
Yes, you can find references for CVE-2016-0723 at the following links: [Link to SecurityTracker](http://www.securitytracker.com/id/1035695), [Link to SecurityFocus](http://www.securityfocus.com/bid/82950), [Link to Debian Security Advisory](http://www.debian.org/security/2016/dsa-3448).