Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 613300 (CVE-2017-2636) - kernel: local privilege escalation flaw in n_hdlc
Summary: kernel: local privilege escalation flaw in n_hdlc
Alias: CVE-2017-2636
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Security
Depends on: 613446
  Show dependency tree
Reported: 2017-03-20 11:19 UTC by kuzetsa CatSwarm (kuza for short)
Modified: 2022-03-25 22:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description kuzetsa CatSwarm (kuza for short) 2017-03-20 11:19:25 UTC
Race condition in drivers/tty/n_hdlc.c in the Linux kernel through 4.10.1 allows local users to gain privileges or cause a denial of service (double free) by setting the HDLC line discipline.
Comment 1 kuzetsa CatSwarm (kuza for short) 2017-03-20 11:22:19 UTC
Original upstream patch on the 4.11 tree (still in RC status)

I haven't had the time to confirm which 4.9.x / 4.10.x versions are still vulnerable (as well as older kernels with longterm branches) but for sys-kernel/ck-sources I'm planning to identify and remove older versions which still contain this flaw.
Comment 2 dwfreed 2017-03-20 11:49:25 UTC
(fwiw, the referenced fixing commit exists in 4.9.15 and 4.10.3)
Comment 3 kuzetsa CatSwarm (kuza for short) 2017-03-20 12:09:33 UTC
(In reply to dwfreed from comment #2)
> (fwiw, the referenced fixing commit exists in 4.9.15 and 4.10.3)

Thanks, sure enough those versions do have upstream-backported fixes for v4.9.15 and v4.10.3 respectively:

As for decisions about other versions / branches, I'm opting to leave that to interested parties (I'm only qualified to comment on sys-kernel/ck-sources, which only has the latest branch, and latest longterm branch)

These two versions are already in the portage tree for sys-kernel/ck-sources so I'll drop the (vulnerable) older versions when I have a minute.
Comment 4 Yury German Gentoo Infrastructure gentoo-dev 2017-03-24 06:26:20 UTC
Even though security does not track kernel vulnerabilities, assigning CVE for compliance.
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-03-25 22:59:17 UTC
Fixed in 4.9.15, 4.11