Hide Forgot
File position is not controlled, it may lead to overwrites of arbitrary kernel memory. Also the code may kfree() the same pointer multiple times. http://lkml.org/lkml/2011/1/20/348 Acknowledgements: Red Hat would like to thank Vasiliy Kulikov of Openwall for reporting this issue.
Introduced in a1a541d8 (v2.6.33-rc1). *ppos cannot be controlled, but we need to make sure that the (1) buf is not accessed out of bounds, and (2) that *ppos + count will not wrap before copying a buffer from the userspace.
Statement: The Linux kernel as shipped with Red Hat Enterprise Linux 4, 5, and 6 are not affected by this issue as they did not backport the upstream commit a1a541d8 that introduced the issue. A future kernel update in Red Hat Enterprise MRG may address this flaw.
commit 2949ad50711cc161721cf788711722eeeca33764 upstream