Report forwarded
to guix-patches@gnu.org: bug#25993; Package guix-patches.
(Mon, 06 Mar 2017 03:32:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Leo Famulari <leo@famulari.name>:
New bug report received and forwarded. Copy sent to guix-patches@gnu.org.
(Mon, 06 Mar 2017 03:32:02 GMT) (full text, mbox, link).
This fixes CVE-2016-10243:
"The TeX system allows for calling external programs from within the
TeX source code (called \write18). This has been restricted to a
small set of programs since a long time ago.
Unfortunately it turned out that one program in the list, mpost
(also shipped with TeX Live), allows in turn to specify other
programs to be run, which allows arbitrary code execution when
compiling a TeX document."
source:
http://seclists.org/oss-sec/2017/q1/555
This patch prevents the POC described in blog post:
https://scumjr.github.io/2016/11/28/pwning-coworkers-thanks-to-latex/
On Mon, Mar 06, 2017 at 10:02:06AM +0100, Ricardo Wurmus wrote:
> Is this sufficient? I see here that two files need this change:
>
> https://www.tug.org/svn/texlive?view=revision&revision=42605
>
> Should “trunk/Build/source/texk/kpathsea/texmf.cnf” also be patched?
I inspected the built output of texlive, texlive-bin, and texlive-texmf,
and none of them include the texmf.cnf file for kpathsea.
That file does exist in the source.
AFAICT, the only .cnf file in our built package that whitelists mpost is
the one I patched.
Leo Famulari <leo@famulari.name> writes:
> On Mon, Mar 06, 2017 at 10:02:06AM +0100, Ricardo Wurmus wrote:
>> Is this sufficient? I see here that two files need this change:
>>
>> https://www.tug.org/svn/texlive?view=revision&revision=42605
>>
>> Should “trunk/Build/source/texk/kpathsea/texmf.cnf” also be patched?
>
> I inspected the built output of texlive, texlive-bin, and texlive-texmf,
> and none of them include the texmf.cnf file for kpathsea.
>
> That file does exist in the source.
>
> AFAICT, the only .cnf file in our built package that whitelists mpost is
> the one I patched.
Thank you for confirming this. The patch looks good to me!
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net
Information forwarded
to guix-patches@gnu.org: bug#25993; Package guix-patches.
(Mon, 06 Mar 2017 21:50:01 GMT) (full text, mbox, link).
On Mon, Mar 06, 2017 at 10:32:04PM +0100, Ricardo Wurmus wrote:
>
> Leo Famulari <leo@famulari.name> writes:
>
> > On Mon, Mar 06, 2017 at 10:02:06AM +0100, Ricardo Wurmus wrote:
> >> Is this sufficient? I see here that two files need this change:
> >>
> >> https://www.tug.org/svn/texlive?view=revision&revision=42605
> >>
> >> Should “trunk/Build/source/texk/kpathsea/texmf.cnf” also be patched?
> >
> > I inspected the built output of texlive, texlive-bin, and texlive-texmf,
> > and none of them include the texmf.cnf file for kpathsea.
> >
> > That file does exist in the source.
> >
> > AFAICT, the only .cnf file in our built package that whitelists mpost is
> > the one I patched.
>
> Thank you for confirming this. The patch looks good to me!
Thanks for your review!
Pushed as e20784e65efa7c783792e8a830d4b4aaf35750d5
By the way, I'd normally adjust the patch to use the default patch-level
of 'p1', and to include another, more descriptive, link about the bug.
But I lack the disk space to rebuild texlive again. Building it before
and after the bug-fix, for testing, used ~12 GB.
Added tag(s) fixed.
Request was from Ricardo Wurmus <rekado@elephly.net>
to control@debbugs.gnu.org.
(Thu, 09 Mar 2017 08:07:02 GMT) (full text, mbox, link).
Reply sent
to Ricardo Wurmus <rekado@elephly.net>:
You have taken responsibility.
(Thu, 09 Mar 2017 08:15:02 GMT) (full text, mbox, link).
Notification sent
to Leo Famulari <leo@famulari.name>:
bug acknowledged by developer.
(Thu, 09 Mar 2017 08:15:02 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the
GNU Public License version 2. The current version can be
obtained from https://bugs.debian.org/debbugs-source/.