Bugzilla – Bug 965794
VUL-0: CVE-2016-0617: kernel: hugetlbfs: fix bugs in hugetlb_vmtruncate_list()
Last modified: 2018-07-03 21:06:24 UTC
Quoting from OSS-sec: "There was a bug in the linux kernel's hugetlbfs handling of punching holes in huegtlbfs files with either truncate or fallocate. The problem was introduced in 1bfad99ab (" hugetlbfs: hugetlb_vmtruncate_list() needs to take a range", 4.3-rc1) and, I think, fixed in 9aacdd354d19 ("fs/hugetlbfs/inode.c: fix bugs in hugetlb_vmtruncate_list(), 4.5-rc1). This issue was assigned CVE-2016-0617. jch" References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-0617 http://seclists.org/oss-sec/2016/q1/295 http://people.canonical.com/~ubuntu-security/cve/2016/CVE-2016-0617.html
Introduced: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1bfad99ab42569807d0ca1698449cae5e8c0334a Fixed: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=9aacdd354d197ad64685941b36d28ea20ab88757 Given the time of introduction of that feature, its possible that this does not affect us. Looks like a local DoS.
bugbot adjusting priority
The commit 1bfad99ab (" hugetlbfs: hugetlb_vmtruncate_list() needs to take a range", 4.3-rc1) doesn't seem to be present in any SLE12 or SLE12-SP1 if I can trust our patch headers. Michal can you please recheck? (I'll be on vacation next week). SLE12-SP2 will need the fix, but that's not urgent so I can do it when I return. Thanks.
(In reply to Vlastimil Babka from comment #4) > The commit 1bfad99ab (" hugetlbfs: hugetlb_vmtruncate_list() > needs to take a range", 4.3-rc1) doesn't seem to be present in any SLE12 or > SLE12-SP1 if I can trust our patch headers. Michal can you please recheck? > (I'll be on vacation next week). SLE12-SP2 will need the fix, but that's not > urgent so I can do it when I return. Thanks. Yes we are indeed safe here because we do not have punch hole code in SLE12{-SP1}. This all has been merged in 4.3-rc1 as pointed out above and we haven't backported it. The truncation code makes sure to purge the whole mapping. This means that none of our branches is affected. Bouncing back to the security team.
forgot about SLE12, will push it there.
sent pull request as users/mhocko/SLE12-SP2/for-next branch No we should be done for real...
released