CVE-2017-12940 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-12940): libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the EncodeFileName::Decode call within the Archive::ReadHeader15 function. CVE-2017-12941 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-12941): libunrar.a in UnRAR before 5.5.7 has an out-of-bounds read in the Unpack::Unpack20 function. CVE-2017-12942 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-12942): libunrar.a in UnRAR before 5.5.7 has a buffer overflow in the Unpack::LongLZ function.
It is currently not clear if these bugs are already fixed in latest upstream release rar-5.5.0.
Vulnerabilities appear to be fixed in >=app-arch/rar-5.5.0_p20170811, PoCs don't work anymore/are now handled as expected. @ Arches, please test and mark stable: =app-arch/rar-5.5.0_p20170811
amd64 & x86 stable
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ce6fd017dfc8fb475d680d63d6d8264226ddc1f commit 8ce6fd017dfc8fb475d680d63d6d8264226ddc1f Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2017-09-25 17:40:44 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2017-09-25 17:40:44 +0000 app-arch/rar: Security cleanup Bug: https://bugs.gentoo.org/628184 Package-Manager: Portage-2.3.10, Repoman-2.3.3 app-arch/rar/Manifest | 9 --- app-arch/rar/rar-5.5.0_beta4_p20170628.ebuild | 109 -------------------------- app-arch/rar/rar-5.5.0_beta5_p20170706.ebuild | 109 -------------------------- app-arch/rar/rar-5.5.0_beta6_p20170725.ebuild | 109 -------------------------- 4 files changed, 336 deletions(-)}
This issue was resolved and addressed in GLSA 201709-24 at https://security.gentoo.org/glsa/201709-24 by GLSA coordinator Aaron Bauman (b-man).