[v2.6] kernel: shmem: fix faulting into a hole while it's punched (CVE-2014-4171)
mm/shmem.c in the Linux kernel through 3.15.1 does not properly implement the interaction between range notification and hole punching, which allows local users to cause a denial of service (i_mutex hold) by using the mmap system call to access a hole, as demonstrated by interfering with intended shmem activity by blocking completion of (1) an MADV_REMOVE madvise call or (2) an FALLOC_FL_PUNCH_HOLE fallocate call.
Commit that fixes the issue is attached. Seems to be the same for kernels 3.6.y, 3.10.y, 3.14.y. Please see the parent issue for details.
(from redmine: issue id 3176, created on 2014-07-17, closed on 2017-09-05)
- Relations:
- parent #3174