A specially crafted user space application may exploit a bug in handle_to_path to copy additional data to a target application. This defect is caused by the kernel incorrectly assuming that the arguments provided do not change. This is problematic since the kernel does size verifications only after the first read, so if the number of extra bytes changes in userspace between the first and second calls, we'll have an incoherent view of file_handle. The fix is to read the size once, and copy that over to the final structure referencing it from that point rather than the value from the application which may change. The patch is not yet present in official kernel tree: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/fs/fhandle.c Proposed Patch: http://marc.info/?l=linux-kernel&m=142247707318982&w=2
Statement: This problem does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5. This issue affects the Linux kernel packages as shipped with Red Hat Enterprise Linux 6, 7 and Red Hat Enterprise MRG-2 kernels. This has been rated as having Low security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.
This original issue was introduced in commit becfd1f37544798cbdfd788f32c827160fab98c1. This commit was introduced in Red Hat Enterprise Linux 6 and included in Red Hat Enterprise Linux 7 kernel, Red Hat Enterprise Linux 7 kernel-rt and MRG-2 kernels. This does not affect Red Hat Enterprise Linux 5 as it does not contain the commit that introduced the issue.
Created kernel tracking bugs for this issue: Affects: fedora-all [bug 1227417]
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=161f873b89136eb1e69477c847d5a5033239d9ba
kernel-4.0.5-200.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
kernel-4.0.5-300.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.